]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: jh057n00900: Move panel DSI init to enable()
authorGuido Günther <agx@sigxcpu.org>
Fri, 26 Jul 2019 13:14:36 +0000 (15:14 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 26 Jul 2019 18:39:33 +0000 (20:39 +0200)
commit9e5e804dd867c009004812b2934e6661f61d75c2
treea3a621816e3a3212f6e736f9958ce23880a28cf6
parent8af406c475661baa5e9d8c6adabab60e56c5bac0
drm/panel: jh057n00900: Move panel DSI init to enable()

If the panel is wrapped in a panel_bridge it gets prepar()ed before the
upstream DSI bridge which can cause hangs (e.g. with imx-nwl since clocks
are not enabled yet). To avoid this move the panel's first DSI access to
enable() so the upstream bridge can prepare the DSI host controller in
it's pre_enable().

This is also in line with other panel drivers.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/12c3495b234952aafe11980a9e06cfd246134660.1564146727.git.agx@sigxcpu.org
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c