On 2/26/2024 2:34 PM, Dmitry Baryshkov wrote:
The function dp_wait_hpd_asserted() uses pm_runtime_get_sync() and
doesn't care about the return value. Potentially this can lead to
unclocked access if for some reason resuming of the DP controller fails.

Change the function to use pm_runtime_resume_and_get() and return an
error if resume fails.

Fixes: e2969ee30252 ("drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()")
Signed-off-by: Dmitry Baryshkov <dmitry.barysh...@linaro.org>
---
  drivers/gpu/drm/msm/dp/dp_aux.c | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)


Reviewed-by: Abhinav Kumar <quic_abhin...@quicinc.com>

Reply via email to