Since commit e2969ee30252 ("drm/msm/dp: move of_dp_aux_populate_bus() to
eDP probe()") the eDP AUX bus is populated at probe time with
devm_of_dp_aux_populate_bus(), but msm_dp_display_unbind() still
depopulates it. This frees the panel while dp->next_bridge keeps
pointing at it, and the first connector probe after a rebind crashes:

  Unable to handle kernel paging request at virtual address
  0000000800000000
  Workqueue: events output_poll_execute
   panel_edp_get_modes+0x1b8/0x480 [panel_edp]

Drop the depopulate and leave it to the devm action registered at probe
time.

Fixes: e2969ee30252 ("drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()")
Cc: [email protected]
Signed-off-by: Yuanjie Yang <[email protected]>
---
 drivers/gpu/drm/msm/dp/dp_display.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/dp/dp_display.c 
b/drivers/gpu/drm/msm/dp/dp_display.c
index c0c150e2c575..895174e04731 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -239,8 +239,6 @@ static void msm_dp_display_unbind(struct device *dev, 
struct device *master,
        struct msm_dp_display_private *dp = dev_get_dp_display_private(dev);
        struct msm_drm_private *priv = dev_get_drvdata(master);
 
-       of_dp_aux_depopulate_bus(dp->aux);
-
        msm_dp_aux_unregister(dp->aux);
        dp->drm_dev = NULL;
        dp->aux->drm_dev = NULL;

-- 
2.43.0

Reply via email to