diff options
| author | Stefan Wahren <[email protected]> | 2025-03-17 17:12:23 +0000 |
|---|---|---|
| committer | Dave Stevenson <[email protected]> | 2025-03-25 18:40:12 +0000 |
| commit | 34f051accedb642087fdcf19b3501fe150fbee49 (patch) | |
| tree | 0de16faf375d35dded723b8049b0fbde77d7e0a3 | |
| parent | drm/display: Update comment on hdmi hotplug helper (diff) | |
| download | kernel-34f051accedb642087fdcf19b3501fe150fbee49.tar.gz kernel-34f051accedb642087fdcf19b3501fe150fbee49.zip | |
drm/vc4: hdmi: Call HDMI hotplug helper on disconnect
drm_atomic_helper_connector_hdmi_hotplug() must be called
regardless of the connection status, otherwise the HDMI audio
disconnect event won't be notified.
Fixes: 2ea9ec5d2c20 ("drm/vc4: hdmi: use drm_atomic_helper_connector_hdmi_hotplug()")
Suggested-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Stefan Wahren <[email protected]>
Reviewed-by: Maxime Ripard <[email protected]>
Signed-off-by: David Turner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Dave Stevenson <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/vc4/vc4_hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 37238a12baa5..37a7d45695f2 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -372,13 +372,13 @@ static void vc4_hdmi_handle_hotplug(struct vc4_hdmi *vc4_hdmi, * the lock for now. */ + drm_atomic_helper_connector_hdmi_hotplug(connector, status); + if (status == connector_status_disconnected) { cec_phys_addr_invalidate(vc4_hdmi->cec_adap); return; } - drm_atomic_helper_connector_hdmi_hotplug(connector, status); - cec_s_phys_addr(vc4_hdmi->cec_adap, connector->display_info.source_physical_address, false); |
