drm/msm/dsi: initialize postdiv_lock before use for 10nm pll
PATCH 1/1 drm/msm/dsi: initialize postdiv_lock before use for 10nm pll
postdiv_lock spinlock was used before initialization for 10nm pll. It causes following spin_bug:
"BUG: spinlock bad magic on CPU#0".
Initialize spinlock before its usage.
Signed-off-by Rajesh Yadav <[email protected]>
--- drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c +2 -0
@@ -798,6 +798,8 @@ struct msm_dsi_pll *msm_dsi_pll_10nm_init(struct platform_device *pdev, int id)return ERR_PTR (-ENOMEM ); } +spin_lock_init (&pll_10nm->postdiv_lock); + pll = &pll_10nm->base; pll->min_rate =1000000000UL ; pll->max_rate =3500000000UL ;
Signature · 7 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project _______________________________________________ Freedreno mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/freedreno