Skip to content

Commit b195058

Browse files
cataliniiHeyMeco
authored andcommitted
Fix CEC on rk356X on tv restart (torvalds#149)
1 parent 98881cf commit b195058

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ static void handle_plugged_change(struct dw_hdmi *hdmi, bool plugged)
364364
{
365365
if (hdmi->plugged_cb && hdmi->codec_dev)
366366
hdmi->plugged_cb(hdmi->codec_dev, plugged);
367+
if (plugged && hdmi->ddc) {
368+
struct edid *edid = drm_get_edid(&hdmi->connector, hdmi->ddc);
369+
if (edid) {
370+
if (hdmi->cec_notifier)
371+
cec_notifier_set_phys_addr_from_edid(
372+
hdmi->cec_notifier, edid);
373+
kfree(edid);
374+
}
375+
}
367376
}
368377

369378
int dw_hdmi_set_plugged_cb(struct dw_hdmi *hdmi, hdmi_codec_plugged_cb fn,

0 commit comments

Comments
 (0)