Skip to content

Commit 8d40b03

Browse files
popcornmixpelwell
authored andcommitted
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>
1 parent 4968b02 commit 8d40b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vc4/vc4_hdmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ static irqreturn_t vc4_hdmi_hpd_irq_thread(int irq, void *priv)
29102910
struct drm_connector *connector = &vc4_hdmi->connector;
29112911
struct drm_device *dev = connector->dev;
29122912

2913-
if (dev && dev->registered)
2913+
if (dev && dev->registered && !force_hotplug)
29142914
drm_connector_helper_hpd_irq_event(connector);
29152915

29162916
return IRQ_HANDLED;

0 commit comments

Comments
 (0)