These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From d375fb2b01bd670c760da14db221cc11d9e7f9cd Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Tue, 23 Apr 2024 17:30:56 +0100
|
|
Subject: [PATCH] vc4/hdmi: Ignore hotplug interrupt with force_hotplug
|
|
|
|
The intention of the vc4.force_hotplug setting is to
|
|
ignore hotplug completely.
|
|
|
|
It can be used when a display toggles hotplug when
|
|
switching AV inputs, going into standby or changing a
|
|
KVM switch, and some side effect of that is unwanted.
|
|
|
|
It turns out while vc4.force_hotplug currently makes
|
|
hotplug always read as asserted, that isn't enough to
|
|
stop drm doing lots of stuff, including re-reading
|
|
the edid.
|
|
|
|
An example of what drm does with a hotplug deasert/assert
|
|
and vc4.force_hotplug=1 currently is:
|
|
|
|
https://paste.debian.net/hidden/dc07434b/
|
|
|
|
That is unwanted. Lets ignore the hotplug interrupt
|
|
completely so drm is blissfully unaware of the hotplug change.
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -2476,7 +2476,7 @@ static irqreturn_t vc4_hdmi_hpd_irq_thre
|
|
struct drm_connector *connector = &vc4_hdmi->connector;
|
|
struct drm_device *dev = connector->dev;
|
|
|
|
- if (dev && dev->registered)
|
|
+ if (dev && dev->registered && !force_hotplug)
|
|
drm_connector_helper_hpd_irq_event(connector);
|
|
|
|
return IRQ_HANDLED;
|