summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 06f8d9efbfaf..d0759fae10e9 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -1988,6 +1988,7 @@ static int hdmi_extcon_init(struct hdmi_context *hdata)
{
struct device *dev = hdata->dev;
struct extcon_dev *edev;
+ enum drm_connector_status plug;
int ret;
edev = devm_extcon_dev_allocate(dev, extcon_cable_list);
@@ -2000,6 +2001,11 @@ static int hdmi_extcon_init(struct hdmi_context *hdata)
hdata->edev = edev;
+ /* Notify the plugged state when hdmi is already connected */
+ plug = hdmi_detect(&hdata->connector, false);
+ if (plug == connector_status_connected)
+ extcon_set_cable_state(edev, "HDMI", 1);
+
return 0;
}