drm/bridge: it6505: Setup links in it6505_irq_hpd
authorPin-yen Lin <treapking@chromium.org>
Thu, 13 Oct 2022 11:04:09 +0000 (19:04 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 24 Oct 2022 08:08:48 +0000 (10:08 +0200)
commit5827b1e1c20514fe36b2bb92fab28df088cc2499
tree74d9102d33e76f35aca78d11512afd08966cb69f
parente577d4b13064c337b83fe7edecb3f34e87144821
drm/bridge: it6505: Setup links in it6505_irq_hpd

Move the DPCD read and link setup steps to HPD IRQ handler to remove
an unnecessary dependency between .detect callback and the HPD IRQ
handler before registering it6505 as a DRM bridge. This is safe because
there is always a .detect call after each HPD IRQ handler triggered by
the drm_helper_hpd_irq_event call.

Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221013110411.1674359-3-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c