42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From b33cf10743aaf0d528d44fc47f6ad03495a9093e Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <[email protected]>
|
|
Date: Fri, 1 Sep 2023 00:59:08 +0200
|
|
Subject: drm: bridge: dw-hdmi: Report HDMI hotplug events
|
|
|
|
Signed-off-by: Ondrej Jirman <[email protected]>
|
|
---
|
|
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 10 ++++++++--
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
index 7053b98e55dc..b785a5278b69 100644
|
|
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
@@ -2458,7 +2458,13 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi)
|
|
enum drm_connector_status result;
|
|
|
|
result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data);
|
|
- hdmi->last_connector_result = result;
|
|
+
|
|
+ if (result != hdmi->last_connector_result) {
|
|
+ dev_info(hdmi->dev, "read_hpd result: %d", result);
|
|
+ handle_plugged_change(hdmi,
|
|
+ result == connector_status_connected);
|
|
+ hdmi->last_connector_result = result;
|
|
+ }
|
|
|
|
return result;
|
|
}
|
|
@@ -3134,7 +3140,7 @@ static irqreturn_t dw_hdmi_irq(int irq, void *dev_id)
|
|
}
|
|
|
|
if (status != connector_status_unknown && !hdmi->extcon) {
|
|
- dev_dbg(hdmi->dev, "EVENT=%s\n",
|
|
+ dev_info(hdmi->dev, "EVENT=%s\n",
|
|
status == connector_status_connected ?
|
|
"plugin" : "plugout");
|
|
|
|
--
|
|
2.35.3
|
|
|