forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sunxi-6.10: Revert "drm/sun4i: hdmi: switch to struct drm_edid"
To make our patch work, we will return to the edid structure while it is safe.
- Loading branch information
1 parent
661b365
commit 9e52e52
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
.../archive/sunxi-6.10/patches.armbian/Revert-drm-sun4i-hdmi-switch-to-struct-drm_edid.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
From 1107808968f2ebbd7067998177637a7c03f78c6b Mon Sep 17 00:00:00 2001 | ||
From: The-going <[email protected]> | ||
Date: Mon, 9 Sep 2024 14:40:49 +0300 | ||
Subject: Revert "drm/sun4i: hdmi: switch to struct drm_edid" | ||
|
||
This reverts commit bd730c77fa37fe2dda4b6e23f6921ef8a9b1bb97. | ||
--- | ||
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 18 +++++++----------- | ||
1 file changed, 7 insertions(+), 11 deletions(-) | ||
|
||
diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | ||
index 245b34adca5a..2d1880c61b50 100644 | ||
--- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | ||
+++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | ||
@@ -214,24 +214,20 @@ sun4i_hdmi_connector_mode_valid(struct drm_connector *connector, | ||
static int sun4i_hdmi_get_modes(struct drm_connector *connector) | ||
{ | ||
struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector); | ||
- const struct drm_edid *drm_edid; | ||
+ struct edid *edid; | ||
int ret; | ||
|
||
- drm_edid = drm_edid_read_ddc(connector, hdmi->ddc_i2c ?: hdmi->i2c); | ||
- | ||
- drm_edid_connector_update(connector, drm_edid); | ||
- cec_s_phys_addr(hdmi->cec_adap, | ||
- connector->display_info.source_physical_address, false); | ||
- | ||
- if (!drm_edid) | ||
+ edid = drm_get_edid(connector, hdmi->ddc_i2c ?: hdmi->i2c); | ||
+ if (!edid) | ||
return 0; | ||
|
||
DRM_DEBUG_DRIVER("Monitor is %s monitor\n", | ||
connector->display_info.is_hdmi ? "an HDMI" : "a DVI"); | ||
|
||
- | ||
- ret = drm_edid_connector_add_modes(connector); | ||
- drm_edid_free(drm_edid); | ||
+ drm_connector_update_edid_property(connector, edid); | ||
+ cec_s_phys_addr_from_edid(hdmi->cec_adap, edid); | ||
+ ret = drm_add_edid_modes(connector, edid); | ||
+ kfree(edid); | ||
|
||
return ret; | ||
} | ||
-- | ||
2.35.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters