]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Don't call HPD registration operations recursively
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 30 May 2018 15:49:48 +0000 (18:49 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:29 +0000 (16:13 +0300)
commitdc27a5cd6fe1ee928acbf0d66a2f12a70236be7e
tree8ff15fc93638323033366a6571c04c72d441e1ff
parentf9014ec6ef6479dd10024bbbdbe24ff561a9576d
drm/omap: Don't call HPD registration operations recursively

Instead of calling the hot-plug detection callback registration
operations (.register_hpd_cb() and .unregister_hpd_cb()) recursively
from the display device back to the first device that provides hot plug
detection support, iterate over the devices manually in the DRM
connector code. This moves the complexity to a single central location
and simplifies the logic in omap_dss_device drivers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c
drivers/gpu/drm/omapdrm/omap_connector.c