OSDN Git Service

drm: omapdrm: displays: Get connector source at connect time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Feb 2018 13:07:39 +0000 (15:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:09:10 +0000 (09:09 +0200)
commitb47e6dcb58becb3e5b0b4f3e05ff3626d5b77437
tree29914fa5653402010862de7096c5319f18587161
parent6b06df832f82946825aa1d81e1e64041d33570f0
drm: omapdrm: displays: Get connector source at connect time

The connector drivers need a handle to the source they are connected to
in order to control the source.

All drivers get that handle at probe time, resulting in probe deferral
when the source hasn't been probed yet. However they don't need the
handle until their connect handler is called.

Move retrieval of the source handle to the connect handler to avoid
probe deferrals.

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-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c