MLK-21472 drm: downgrade the drm/imx probe
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 16 Apr 2019 08:50:00 +0000 (16:50 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
commit48b9c21436028b4fcdf04c936690d02cc1bb996c
treea06dabeb848a309cfc6e2ec07c094c8816c17960
parent60f2d261b2a167c1cb8ccd37724aef954486cf7e
MLK-21472 drm: downgrade the drm/imx probe

Some driver under drm/imx depends on panel and bridge, but all these
driver use the same module_init() to register the driver, so the
default probe sequence will depends on the list in Makefile. Here
downgrade the drm/imx under the panel and bridge, otherwise will
meet the following during system boot:

 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
 [drm] No driver support for vblank timestamp query.
 imx-drm display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
 imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
 imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
 imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
 imx-drm display-subsystem: failed to bind 32e10000.mipi_dsi (ops imx_sec_dsim_ops): -517
 imx-drm display-subsystem: master bind failed: -517

This patch can make MIPI DSI panel probe successfully at the first
time, rather than depends on the PROBE_DEFER.
Besides, for the MIPI DSI panel used on imx8mm/imx8mq, the panel and
touch share one RST pin, touch need the panel do the RST first to wake
up the touch chip, so also need to make sure the MIPI DSI panel probe
successfully before touch.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Fancy Fang <chen.fang@nxp.com>
drivers/gpu/drm/Makefile