]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx7625: Make hpd workqueue freezable
authorPi-Hsun Shih <pihsun@chromium.org>
Tue, 15 Jun 2021 03:29:24 +0000 (11:29 +0800)
committerRobert Foss <robert.foss@linaro.org>
Fri, 18 Jun 2021 12:23:15 +0000 (14:23 +0200)
commitd2317b9d9f3ac111f68e26864a6532f0d363de90
tree2cb33594df7ce86d9fc10fef050be4dad3485487
parent88a231f2f61a1c91fe43075648d0c867b634c39b
drm/bridge: anx7625: Make hpd workqueue freezable

There were still a race condition between hpd work and suspend, since
the workqueue work can still be run after anx7625 had powered off in
suspend.

Since we never want hpd work to run while suspending, and there's no
harm to delay them to be run after resume, mark the workqueue as
WQ_FREEZABLE so all works won't run while suspending.

Fixes: 0230e39f20b5 ("drm/bridge: anx7625: add suspend / resume hooks")
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210615032937.2328468-1-pihsun@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c