]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: fix reading hw revision on db410c platform
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 25 Nov 2022 00:02:13 +0000 (02:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:18 +0000 (13:32 +0100)
commit0a362b90f536f636f1a9bcde85b7232701706b77
tree6ede0a99afc8aec16c03932fcf6dc29e7bf849d9
parent6aa73b57f2d00344cf163698fdc64a76f5c62fd2
drm/msm/mdp5: fix reading hw revision on db410c platform

[ Upstream commit 5c43c686b15bfd4b2294f3950518a060d5bf8bc4 ]

Since the commit commit 1eae9f2ee797 ("drm/msm/mdp5: stop overriding
drvdata") reading the MDP5 hw revision on db410c will crash the board
as the MDSS_GDSC is not enabled. Revert a part of the offending commit
(moving rpm enablement) and set priv->kms earlier. This make it possible
to use pm_runtime_get_sync() during read_mdp_hw_revision(), which will
power up both the MDP5 and MDSS devices.

Fixes: 1eae9f2ee797 ("drm/msm/mdp5: stop overriding drvdata")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/512985/
Link: https://lore.kernel.org/r/20221125000213.252115-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c