linux_old1/drivers/gpu/drm/msm/dsi
Archit Taneja a18a0ea009 drm/msm/dsi: Use correct pm_runtime_put variant during host_init
The DSI runtime PM suspend/resume callbacks check whether
msm_host->cfg_hnd is non-NULL before trying to enable the bus clocks.
This is done to accommodate early calls to these functions that may
happen before the bus clocks are even initialized.

Calling pm_runtime_put_autosuspend() in dsi_host_init() can result in
racy behaviour since msm_host->cfg_hnd is set very soon after. If the
suspend callback happens too late, we end up trying to disable clocks
that were never enabled, resulting in a bunch of WARN_ON splats.

Use pm_runtime_put_sync() so that the suspend callback is called
immediately.

Reported-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-10-12 12:59:46 -04:00
..
phy drm/msm/dsi: Set up runtime PM for DSI 2017-08-02 07:53:46 -04:00
pll drm/msm/dsi: Add PHY/PLL for 8x96 2017-02-06 11:28:45 -05:00
dsi.c drm/msm/dsi: Implement RPM suspend/resume callbacks 2017-08-02 07:53:46 -04:00
dsi.h drm/msm/dsi: Implement RPM suspend/resume callbacks 2017-08-02 07:53:46 -04:00
dsi.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
dsi_cfg.c drm/msm/dsi: Add 8x96 info in dsi_cfg 2017-02-06 11:28:44 -05:00
dsi_cfg.h drm/msm/dsi: Add 8x96 info in dsi_cfg 2017-02-06 11:28:44 -05:00
dsi_host.c drm/msm/dsi: Use correct pm_runtime_put variant during host_init 2017-10-12 12:59:46 -04:00
dsi_manager.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
mmss_cc.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
sfpb.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00