drm/bridge/synopsys: dsi: move phy_ops callbacks around panel enablement
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Mon, 9 Dec 2019 14:31:26 +0000 (15:31 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 16 Dec 2019 11:02:06 +0000 (12:02 +0100)
commit89bddff6be745fd688bbdd53773f5eb3136051eb
treeaae8bba1fb7c66ec5a5353fb912b2b13ef60bf90
parent25ed8aeb9c396475f48c13abdaf76a2e6e6b117b
drm/bridge/synopsys: dsi: move phy_ops callbacks around panel enablement

If implementation-specific phy_ops need to be defined they probably
should be enabled before trying to talk to the panel and disabled only
after the panel was disabled.

Right now they are enabled last and disabled first, so might make it
impossible to talk to some panels - example for this being the px30
with an external Innosilicon dphy that needs the phy to be enabled
to transfer commands to the panel.

So move the calls appropriately.

changed in v5:
- rebased on top of 5.5-rc1
- merged with dsi timing change to prevent ordering conflicts

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Yannick Fertre <yannick.fertre@st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191209143130.4553-3-heiko@sntech.de
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c