]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: hdmi4: Ensure the device is active during bind
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 10 Nov 2018 11:16:52 +0000 (13:16 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 12 Nov 2018 09:50:13 +0000 (11:50 +0200)
commitdd2d027af09499c722f69d059eb20384ef8813f6
tree2b17987e82bb173baa3b2412adf4d265aad4834a
parent61b9921aa125182054ad6c8ee8dbaa93d68f1b4d
drm/omap: hdmi4: Ensure the device is active during bind

The bind function performs hardware access (in hdmi4_cec_init()) and
thus requires the device to be active. Ensure this by surrounding the
bind function by hdmi_runtime_get() and hdmi_runtime_put() calls.

Fixes: 5dba2f2f9c96 ("drm/omap: dss: Acquire next dssdev at probe time")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181110111654.4387-3-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/omapdrm/dss/hdmi4.c