drm/exynos: dpi: fix hotplug fail issue
authorInki Dae <inki.dae@samsung.com>
Tue, 1 Apr 2014 10:45:28 +0000 (19:45 +0900)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:04 +0000 (02:07 +0900)
When connector is created, if connector->polled is
DRM_CONNECTOR_POLL_CONNECT then drm_kms_helper_hotplug_event
function isn't called at drm_helper_hpd_irq_event because the
function will be called only in case of DRM_CONNECTOR_POLL_HPD.

So this patch sets always DRM_CONNECTOR_POLL_HPD flag to
connector->polled of parallel panel driver at connector creation.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dpi.c

index f5503af521482ea98959fd347309a6107d739a28..782d301fa9bb25afa90601800c2541eda0aba87c 100644 (file)
@@ -116,10 +116,7 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display,
 
        ctx->encoder = encoder;
 
-       if (ctx->panel_node)
-               connector->polled = DRM_CONNECTOR_POLL_CONNECT;
-       else
-               connector->polled = DRM_CONNECTOR_POLL_HPD;
+       connector->polled = DRM_CONNECTOR_POLL_HPD;
 
        ret = drm_connector_init(encoder->dev, connector,
                                 &exynos_dpi_connector_funcs,