drm/msm: add shutdown support for display platform_driver
authorKrishna Manikandan <mkrishn@codeaurora.org>
Mon, 1 Jun 2020 11:03:22 +0000 (16:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:03:06 +0000 (19:03 +0200)
commit3d516e369e3a563e7da39c72b06d78c7f1b09b1e
tree7ff8ac17c0049db3256a2d0dd66b1ec03c2589a5
parent11519e7b9776cb27a008ccc1f3709b60c086ee3c
drm/msm: add shutdown support for display platform_driver

[ Upstream commit 9d5cbf5fe46e350715389d89d0c350d83289a102 ]

Define shutdown callback for display drm driver,
so as to disable all the CRTCS when shutdown
notification is received by the driver.

This change will turn off the timing engine so
that no display transactions are requested
while mmu translations are getting disabled
during reboot sequence.

Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Changes in v2:
- Remove NULL check from msm_pdev_shutdown (Stephen Boyd)
- Change commit text to reflect when this issue
  was uncovered (Sai Prakash Ranjan)

Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_drv.c