Skip to content

Commit 9d5cbf5

Browse files
Krishna Manikandanrobclark
authored andcommitted
drm/msm: add shutdown support for display platform_driver
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>
1 parent 20925fe commit 9d5cbf5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/msm/msm_drv.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,13 @@ static int msm_pdev_remove(struct platform_device *pdev)
13201320
return 0;
13211321
}
13221322

1323+
static void msm_pdev_shutdown(struct platform_device *pdev)
1324+
{
1325+
struct drm_device *drm = platform_get_drvdata(pdev);
1326+
1327+
drm_atomic_helper_shutdown(drm);
1328+
}
1329+
13231330
static const struct of_device_id dt_match[] = {
13241331
{ .compatible = "qcom,mdp4", .data = (void *)KMS_MDP4 },
13251332
{ .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 },
@@ -1332,6 +1339,7 @@ MODULE_DEVICE_TABLE(of, dt_match);
13321339
static struct platform_driver msm_platform_driver = {
13331340
.probe = msm_pdev_probe,
13341341
.remove = msm_pdev_remove,
1342+
.shutdown = msm_pdev_shutdown,
13351343
.driver = {
13361344
.name = "msm",
13371345
.of_match_table = dt_match,

0 commit comments

Comments
 (0)