OSDN Git Service

drm/vc4: hdmi: Restore cec physical address on reconnect
authorDom Cobley <popcornmix@gmail.com>
Mon, 11 Jan 2021 14:22:59 +0000 (15:22 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 28 Jan 2021 09:28:19 +0000 (10:28 +0100)
commitb06eecb5158e5f3eb47b9d05aea8c259985cc5f7
tree421dbfc03dff452c91c38849b5b731fbd5a886b8
parent303085bc11bb7aebeeaaf09213f99fd7aa539a34
drm/vc4: hdmi: Restore cec physical address on reconnect

Currently we call cec_phys_addr_invalidate on a hotplug deassert.
That may be due to a TV power cycling, or an AVR being switched
on (and switching edid).

This makes CEC unusable since our controller wouldn't have a physical
address anymore.

Set it back up again on the hotplug assert.

Fixes: 15b4511a4af6 ("drm/vc4: add HDMI CEC support")
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111142309.193441-6-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c