android_kernel_oneplus_msm8998/drivers/gpu/drm/imx
Philipp Zabel 137bd12493 drm/imx: Match imx-ipuv3-crtc components using device node in platform data
commit 310944d148e3600dcff8b346bee7fa01d34903b1 upstream.

The component master driver imx-drm-core matches component devices using
their of_node. Since commit 950b410dd1ab ("gpu: ipu-v3: Fix imx-ipuv3-crtc
module autoloading"), the imx-ipuv3-crtc dev->of_node is not set during
probing. Before that, of_node was set and caused an of: modalias to be
used instead of the platform: modalias, which broke module autoloading.

On the other hand, if dev->of_node is not set yet when the imx-ipuv3-crtc
probe function calls component_add, component matching in imx-drm-core
fails. While dev->of_node will be set once the next component tries to
bring up the component master, imx-drm-core component binding will never
succeed if one of the crtc devices is probed last.

Add of_node to the component platform data and match against the
pdata->of_node instead of dev->of_node in imx-drm-core to work around
this problem.

Fixes: 950b410dd1ab ("gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Lothar Waßmann <LW@KARO-electronics.de>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-06-07 18:14:37 -07:00
..
dw_hdmi-imx.c drm/imx: hdmi: fix HDMI setup to allow modes larger than FullHD 2015-10-30 17:13:54 +01:00
imx-drm-core.c drm/imx: Match imx-ipuv3-crtc components using device node in platform data 2016-06-07 18:14:37 -07:00
imx-drm.h drm/imx: switch to universal planes 2015-11-19 12:51:38 +01:00
imx-ldb.c drm/imx: imx-ldb: allow to determine bus format from the connected panel 2015-03-31 12:44:50 +02:00
imx-tve.c drm: imx: imx-tve: Fix module autoload for OF platform driver 2015-11-30 22:24:38 +01:00
ipuv3-crtc.c drm/imx: Match imx-ipuv3-crtc components using device node in platform data 2016-06-07 18:14:37 -07:00
ipuv3-plane.c drm/imx: switch to universal planes 2015-11-19 12:51:38 +01:00
ipuv3-plane.h drm/imx: switch to universal planes 2015-11-19 12:51:38 +01:00
Kconfig drm/imx: imx-ldb: add drm_panel support 2015-03-31 12:44:49 +02:00
Makefile drm: imx: imx-hdmi: move imx-hdmi to bridge/dw_hdmi 2015-01-07 18:31:56 +01:00
parallel-display.c drm/imx: parallel-display: allow to determine bus format from the connected panel 2015-11-24 11:29:21 +01:00