MLK-18177-1: drm/panel: Move the DSI init into enable stage
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 12 Apr 2018 13:29:21 +0000 (16:29 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit65200e2bd3f72c51eb306994a7aae9053f89f2e0
tree6a9e4b0326d6f5608404dd502eb8e691fb4ade48
parentbea64746746fefc8ad07cf3bf407a3512c31449d
MLK-18177-1: drm/panel: Move the DSI init into enable stage

Currently, the DSI panel init sequence is made in the prepare function,
right after the reset pin is asserted. This implies that at this moment,
the DSI host needs to be enabled. If the DSI host is enabled during
panel prepare, there will be DSI signal on the DSI lanes during the
panel reset, which is wrong.

In order to not to have any signal on the DSI data lanes during reset,
the reset sequence must be separated from the init sequence, so move the
init into enable function and leave the reset into the prepare function.

Also:
- removed the calls to panel_disable and panel_unprepare from
  panel_remove, since the panel should be already disabled when this call
  is made
- fixed the call ordering to panel_disable and panel_unprepare from
  rad_panel_shutdown function

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
drivers/gpu/drm/panel/panel-raydium-rm67191.c