[Openchrome-devel] drm-openchrome: Branch 'drm-next-4.17' - 2 commits - drivers/gpu/drm

Kevin Brace kevinbrace at kemper.freedesktop.org
Thu Mar 8 22:48:25 UTC 2018


 drivers/gpu/drm/openchrome/via_analog.c |   30 ++++++++++++++++++++----------
 drivers/gpu/drm/openchrome/via_drv.h    |    4 ++--
 2 files changed, 22 insertions(+), 12 deletions(-)

New commits:
commit 0f18af7cdaddb1d83614e8b2f85f3df927fe57ac
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Thu Mar 8 14:47:55 2018 -0800

    drm/openchrome: Version bumped to 3.0.77
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/drivers/gpu/drm/openchrome/via_drv.h b/drivers/gpu/drm/openchrome/via_drv.h
index 787fec655475..2141edf4edf2 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR       "OpenChrome Project"
 #define DRIVER_NAME         "openchrome"
 #define DRIVER_DESC         "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE         "20180213"
+#define DRIVER_DATE         "20180308"
 
 #define DRIVER_MAJOR		3
 #define DRIVER_MINOR		0
-#define DRIVER_PATCHLEVEL	76
+#define DRIVER_PATCHLEVEL	77
 
 #include <linux/module.h>
 
commit adb11f21f95efcc2c76817eb85e776844955496d
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Thu Mar 8 14:42:53 2018 -0800

    drm/openchrome: Only recognize analog interface type EDID for analog (VGA)
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/drivers/gpu/drm/openchrome/via_analog.c b/drivers/gpu/drm/openchrome/via_analog.c
index 9eb8dff33923..9feec220a482 100644
--- a/drivers/gpu/drm/openchrome/via_analog.c
+++ b/drivers/gpu/drm/openchrome/via_analog.c
@@ -223,8 +223,6 @@ via_analog_detect(struct drm_connector *connector, bool force)
 
 	DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
-	drm_mode_connector_update_edid_property(connector, edid);
-
 	if (con->i2c_bus & VIA_I2C_BUS1) {
 		i2c_bus = via_find_ddc_bus(0x26);
 	} else {
@@ -234,10 +232,11 @@ via_analog_detect(struct drm_connector *connector, bool force)
 	if (i2c_bus) {
 		edid = drm_get_edid(&con->base, i2c_bus);
 		if (edid) {
-			drm_mode_connector_update_edid_property(connector,
-								edid);
+			if (!(edid->input & DRM_EDID_INPUT_DIGITAL)) {
+				ret = connector_status_connected;
+			}
+
 			kfree(edid);
-			ret = connector_status_connected;
 			goto exit;
 		}
 	}
@@ -251,10 +250,11 @@ via_analog_detect(struct drm_connector *connector, bool force)
 	if (i2c_bus) {
 		edid = drm_get_edid(&con->base, i2c_bus);
 		if (edid) {
-			drm_mode_connector_update_edid_property(connector,
-								edid);
+			if (!(edid->input & DRM_EDID_INPUT_DIGITAL)) {
+				ret = connector_status_connected;
+			}
+
 			kfree(edid);
-			ret = connector_status_connected;
 			goto exit;
 		}
 	}
@@ -291,7 +291,12 @@ static int via_analog_get_modes(struct drm_connector *connector)
 	if (i2c_bus) {
 		edid = drm_get_edid(&con->base, i2c_bus);
 		if (edid) {
-			count = drm_add_edid_modes(connector, edid);
+			if (!(edid->input & DRM_EDID_INPUT_DIGITAL)) {
+				drm_mode_connector_update_edid_property(connector,
+									edid);
+				count = drm_add_edid_modes(connector, edid);
+			}
+
 			kfree(edid);
 			goto exit;
 		}
@@ -306,7 +311,12 @@ static int via_analog_get_modes(struct drm_connector *connector)
 	if (i2c_bus) {
 		edid = drm_get_edid(&con->base, i2c_bus);
 		if (edid) {
-			count = drm_add_edid_modes(connector, edid);
+			if (!(edid->input & DRM_EDID_INPUT_DIGITAL)) {
+				drm_mode_connector_update_edid_property(connector,
+									edid);
+				count = drm_add_edid_modes(connector, edid);
+			}
+
 			kfree(edid);
 			goto exit;
 		}


More information about the Openchrome-devel mailing list