summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/ptn3460.c
diff options
context:
space:
mode:
authorAjay Kumar <ajaykumar.rs@samsung.com>2015-01-20 22:08:48 +0530
committerThierry Reding <treding@nvidia.com>2015-01-28 08:47:29 +0100
commita1899953c031aba0467b5fa0b63dd9b594aa658e (patch)
treea3de4e52a88800d07a07cbd35a59ee4b90273e99 /drivers/gpu/drm/bridge/ptn3460.c
parent5bbb9a2ef87a9c62fc7ce89337a2aa90802be080 (diff)
downloadlinux-stable-a1899953c031aba0467b5fa0b63dd9b594aa658e.tar.gz
linux-stable-a1899953c031aba0467b5fa0b63dd9b594aa658e.tar.bz2
linux-stable-a1899953c031aba0467b5fa0b63dd9b594aa658e.zip
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 <ajaykumar.rs@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Tested-by: Rahul Sharma <rahul.sharma@samsung.com> Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Tested-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/bridge/ptn3460.c')
-rw-r--r--drivers/gpu/drm/bridge/ptn3460.c3
1 files changed, 3 insertions, 0 deletions
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;
}