]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/bridge: it6505: Check power state with it6505->powered in IRQ handler
authorPin-yen Lin <treapking@chromium.org>
Thu, 27 Jul 2023 10:01:10 +0000 (18:01 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:10 +0000 (12:00 +0100)
commit3910a0fe9f16d189cef05aa092846b47f110be18
tree3414a0d03119e4116c9b6495b4f5ea2b2d22fbde
parent68bf7526e74e989de156dcb502a62237dd126c2f
drm/bridge: it6505: Check power state with it6505->powered in IRQ handler

BugLink: https://bugs.launchpad.net/bugs/2038969
commit e9d699af3f65d62cf195f0e7a039400093ab2af2 upstream.

On system resume, the driver might call it6505_poweron directly if the
runtime PM hasn't been enabled. In such case, pm_runtime_get_if_in_use
will always return 0 because dev->power.runtime_status stays at
RPM_SUSPENDED, and the IRQ will never be handled.

Use it6505->powered from the driver struct fixes this because it always
gets updated when it6505_poweron is called.

Fixes: 5eb9a4314053 ("drm/bridge: it6505: Guard bridge power in IRQ handler")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230727100131.2338127-1-treapking@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/bridge/ite-it6505.c