Skip to contentSkip to conversation

drm/msm: remove exra drm_kms_helper_poll_init() call

PATCH Applied Dmitry Baryshkov 2 participants 3 messages Nov 7, 2023 – Nov 21, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: remove exra drm_kms_helper_poll_init() call

It seems during rebases I have left a call to drm_kms_helper_poll_init() which is not guarded by the (priv->kms_init) check. This leads to the crash for the boards which don't have KMS output. Drop this call, as there is a correctly guarded one next to the one being removed.

Fixes 506efcba3129 ("drm/msm: carve out KMS code from msm_drv.c")
---
 drivers/gpu/drm/msm/msm_drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/msm/msm_drv.c +0 -2
index 2aae7d107f33..3f217b578293 100644
@@ -288,8 +288,6 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv)
 	if (ret)
 		goto err_msm_uninit;
 
-	drm_kms_helper_poll_init(ddev);
-
 	if (priv->kms_init) {
 		drm_kms_helper_poll_init(ddev);
 		msm_fbdev_setup(ddev);
Signature · 1 line
2.42.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Dmitry Baryshkov

It seems during rebases I have left a call to drm_kms_helper_poll_init() which is not guarded by the (priv->kms_init) check. This leads to the crash for the boards which don't have KMS output. Drop this call, as there is a correctly guarded one next to the one being removed.

Fixes 506efcba3129 ("drm/msm: carve out KMS code from msm_drv.c")

---

#2 lore raw
In reply to Dmitry Baryshkov
Quoted 6 lines · Dmitry Baryshkov

It seems during rebases I have left a call to drm_kms_helper_poll_init() which is not guarded by the (priv->kms_init) check. This leads to the crash for the boards which don't have KMS output. Drop this call, as there is a correctly guarded one next to the one being removed.

Applied, thanks!

[1/1] drm/msm: remove exra drm_kms_helper_poll_init() call

      https://gitlab.freedesktop.org/drm/msm/-/commit/3944e343e54b

Best regards,

Signature · 1 line
Abhinav Kumar <[email protected]>