From: Ajay Kumar Date: Tue, 20 Jan 2015 16:38:48 +0000 (+0530) Subject: drm/bridge: ptn3460: probe connector at the end of bridge attach X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1899953c031aba0467b5fa0b63dd9b594aa658e;p=linux-beck.git drm/bridge: ptn3460: probe connector at the end of bridge attach Force bridge connector detection at the end of the bridge attach. This is needed to detect the bridge connector early. Signed-off-by: Ajay Kumar Acked-by: Inki Dae Tested-by: Rahul Sharma Tested-by: Javier Martinez Canillas Tested-by: Gustavo Padovan Tested-by: Sjoerd Simons Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/bridge/ptn3460.c b/drivers/gpu/drm/bridge/ptn3460.c index e6d5ae741a41..9f800a1ab385 100644 --- a/drivers/gpu/drm/bridge/ptn3460.c +++ b/drivers/gpu/drm/bridge/ptn3460.c @@ -281,6 +281,7 @@ int ptn3460_bridge_attach(struct drm_bridge *bridge) return -ENODEV; } + ptn_bridge->connector.polled = DRM_CONNECTOR_POLL_HPD; ret = drm_connector_init(bridge->dev, &ptn_bridge->connector, &ptn3460_connector_funcs, DRM_MODE_CONNECTOR_LVDS); if (ret) { @@ -296,6 +297,8 @@ int ptn3460_bridge_attach(struct drm_bridge *bridge) if (ptn_bridge->panel) drm_panel_attach(ptn_bridge->panel, &ptn_bridge->connector); + drm_helper_hpd_irq_event(ptn_bridge->connector.dev); + return ret; }