drm/vc4_hdmi: Allow hotplug detect to be forced
authorDom Cobley <popcornmix@gmail.com>
Wed, 1 Jun 2022 14:43:51 +0000 (15:43 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 8 Jun 2022 20:26:33 +0000 (21:26 +0100)
commit6efdadb1106f8fa06330ba3a095649d2c6417d3f
tree4e27afc21099f91d4704b21624b6e6dc1c5b679a
parent6b945e6f05d5cb0a299dbbb9bdd285aff330a204
drm/vc4_hdmi: Allow hotplug detect to be forced

See: https://forum.libreelec.tv/thread/24783-tv-avr-turns-back-on-right-after-turning-them-off

While the kernel provides a :D flag for assuming device is connected,
it doesn't stop this function from being called and generating a cec_phys_addr_invalidate
message when hotplug is deasserted.

That message provokes a flurry of CEC messages which for many users results in the TV
switching back on again and it's very hard to get it to stay switched off.

It seems to only occur with an AVR and TV connected but has been observed across a
number of manufacturers.

The issue started with https://github.com/raspberrypi/linux/pull/4371
and this provides an optional way of getting back the old behaviour

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/gpu/drm/vc4/vc4_hdmi.c