diff mbox series

[v4,22/27] drm/panel: panel-simple: Remove extra call: drm_connector_update_edid_property()

Message ID 20210416153909.v4.22.Icb581b0273d95cc33ca38676c61ae6d7d2e75357@changeid
State Superseded
Headers show
Series drm: Fix EDID reading on ti-sn65dsi86; solve some chicken-and-egg problems | expand

Commit Message

Doug Anderson April 16, 2021, 10:39 p.m. UTC
As of commit 5186421cbfe2 ("drm: Introduce epoch counter to
drm_connector") the drm_get_edid() function calls
drm_connector_update_edid_property() for us. There's no reason for us
to call it again.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
As Laurent pointed out [1] this is actually a pretty common
problem. His suggestion to do this more broadly is a good idea but
this series is probably a bit ambitious already so I would suggest
that be taken up separately.

[1] https://lore.kernel.org/r/YGphgcESWsozCi1y@pendragon.ideasonboard.com

(no changes since v1)

 drivers/gpu/drm/panel/panel-simple.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bjorn Andersson April 23, 2021, 3:15 p.m. UTC | #1
On Fri 16 Apr 17:39 CDT 2021, Douglas Anderson wrote:

> As of commit 5186421cbfe2 ("drm: Introduce epoch counter to

> drm_connector") the drm_get_edid() function calls

> drm_connector_update_edid_property() for us. There's no reason for us

> to call it again.

> 


Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>


> Signed-off-by: Douglas Anderson <dianders@chromium.org>

> ---

> As Laurent pointed out [1] this is actually a pretty common

> problem. His suggestion to do this more broadly is a good idea but

> this series is probably a bit ambitious already so I would suggest

> that be taken up separately.

> 

> [1] https://lore.kernel.org/r/YGphgcESWsozCi1y@pendragon.ideasonboard.com

> 

> (no changes since v1)

> 

>  drivers/gpu/drm/panel/panel-simple.c | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c

> index 90a17ca79d06..c91e8aa108f7 100644

> --- a/drivers/gpu/drm/panel/panel-simple.c

> +++ b/drivers/gpu/drm/panel/panel-simple.c

> @@ -512,7 +512,6 @@ static int panel_simple_get_modes(struct drm_panel *panel,

>  	if (p->ddc) {

>  		struct edid *edid = drm_get_edid(connector, p->ddc);

>  

> -		drm_connector_update_edid_property(connector, edid);

>  		if (edid) {

>  			num += drm_add_edid_modes(connector, edid);

>  			kfree(edid);

> -- 

> 2.31.1.368.gbe11c130af-goog

>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 90a17ca79d06..c91e8aa108f7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -512,7 +512,6 @@  static int panel_simple_get_modes(struct drm_panel *panel,
 	if (p->ddc) {
 		struct edid *edid = drm_get_edid(connector, p->ddc);
 
-		drm_connector_update_edid_property(connector, edid);
 		if (edid) {
 			num += drm_add_edid_modes(connector, edid);
 			kfree(edid);