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:14:07 +0000 (19:14 +0200)
commit56ed34ea6cd73c2fd5384d03a9034e6f229a390a
treeeb30ee82884c1606b4362c98611fd3f9cb79bd85
parent87371d8581013aa6cf8987565a54c0ac3694774d
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