[PATCH] drm/ast: Return value when do not get edid

ainux.wang at gmail.com ainux.wang at gmail.com
Fri Jul 16 09:55:22 UTC 2021


From: "Ainux.Wang" <ainux.wang at gmail.com>

There is should a status when do not get edid.

Signed-off-by: Ainux.Wang <ainux.wang at gmail.com>
---
 drivers/gpu/drm/ast/ast_mode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index e5996ae03c49..05df48b3d223 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -1231,8 +1231,10 @@ static int ast_get_modes(struct drm_connector *connector)
 		ret = drm_add_edid_modes(connector, edid);
 		kfree(edid);
 		return ret;
-	} else
+	} else {
 		drm_connector_update_edid_property(&ast_connector->base, NULL);
+		return -ENXIO;
+	}
 	return 0;
 }
 
-- 
2.18.1



More information about the dri-devel mailing list