OSDN Git Service

drm/bridge: anx7625: Synchronously run runtime suspend.
authorPi-Hsun Shih <pihsun@chromium.org>
Thu, 20 May 2021 06:44:52 +0000 (14:44 +0800)
committerRobert Foss <robert.foss@linaro.org>
Thu, 20 May 2021 10:27:20 +0000 (12:27 +0200)
commit3203e497eb769cdf3b2f835bdc92083fee2796a9
treeb9673f7ea38c628fd4f8d6a2c2b0f659f1e6c3d6
parent07775fc13878cbc2e9cda5ffac7c7289adee91cb
drm/bridge: anx7625: Synchronously run runtime suspend.

Originally when using pm_runtime_put, there's a chance that the runtime
suspend hook will be run after the following anx7625_bridge_mode_set
call, resulting in the display_timing_valid field to be cleared, and the
following power on fail.

Change all pm_runtime_put to pm_runtime_put_sync, so all power off
operations are guaranteed to be done after the call returns.

Fixes: 60487584a79a ("drm/bridge: anx7625: refactor power control to use runtime PM framework")
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Tzung-Bi Shih <tzungbi@google.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210520064508.3121211-1-pihsun@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c