]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: dw-mipi-dsi: allow commands in panel_disable
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:55 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:54 +0000 (14:48 -0500)
commit585b64e85f03f9cc8b1b1384304b7e2f4d759694
tree85e7d351200d3af6d2becb8ca60f7acde824d1cc
parent7d80afa5353ed76f4b91068949fc249f63bebd28
drm/rockchip: dw-mipi-dsi: allow commands in panel_disable

Panel drivers may want to sent commands during the disable function, for
example MIPI_DCS_SET_DISPLAY_OFF before the video signal ends.  In order
to send commands we need to write to registers, so pclk must be enabled.

While changing this, remove the unnecessary code after the panel
unprepare call which seems to be a workaround for a specific panel and
thus belongs in the panel driver.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-13-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c