mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #5800 from knaerzche/cec-fix-fix
Rockchip: linux: fix CEC-fix
This commit is contained in:
commit
db46878f2e
@ -3673,7 +3673,7 @@ depending on sink's implementation.
|
|||||||
Signed-off-by: Alex Bee <knaerzche@gmail.com>
|
Signed-off-by: Alex Bee <knaerzche@gmail.com>
|
||||||
---
|
---
|
||||||
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 16 ++++++++--------
|
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 16 ++++++++--------
|
||||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
1 file changed, 9 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
||||||
index 84cc52858ffb..3c20ef3bd3c1 100644
|
index 84cc52858ffb..3c20ef3bd3c1 100644
|
||||||
@ -3699,13 +3699,14 @@ index 84cc52858ffb..3c20ef3bd3c1 100644
|
|||||||
if (intr_stat & HDMI_IH_PHY_STAT0_HPD) {
|
if (intr_stat & HDMI_IH_PHY_STAT0_HPD) {
|
||||||
enum drm_connector_status status = phy_int_pol & HDMI_PHY_HPD
|
enum drm_connector_status status = phy_int_pol & HDMI_PHY_HPD
|
||||||
? connector_status_connected
|
? connector_status_connected
|
||||||
@@ -3061,6 +3054,13 @@ static irqreturn_t dw_hdmi_irq(int irq, void *dev_id)
|
@@ -3061,6 +3054,14 @@ static irqreturn_t dw_hdmi_irq(int irq, void *dev_id)
|
||||||
drm_helper_hpd_irq_event(hdmi->bridge.dev);
|
drm_helper_hpd_irq_event(hdmi->bridge.dev);
|
||||||
drm_bridge_hpd_notify(&hdmi->bridge, status);
|
drm_bridge_hpd_notify(&hdmi->bridge, status);
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ if (status == connector_status_disconnected &&
|
+ if (status == connector_status_disconnected &&
|
||||||
+ (phy_stat & HDMI_PHY_RX_SENSE)) {
|
+ (phy_stat & HDMI_PHY_RX_SENSE) &&
|
||||||
|
+ (phy_int_pol & HDMI_PHY_RX_SENSE)) {
|
||||||
+ mutex_lock(&hdmi->cec_notifier_mutex);
|
+ mutex_lock(&hdmi->cec_notifier_mutex);
|
||||||
+ cec_notifier_phys_addr_invalidate(hdmi->cec_notifier);
|
+ cec_notifier_phys_addr_invalidate(hdmi->cec_notifier);
|
||||||
+ mutex_unlock(&hdmi->cec_notifier_mutex);
|
+ mutex_unlock(&hdmi->cec_notifier_mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user