drm/bridge: use drm_bridge_get_edid() instead of using ->get_edid directly
Subsystems (3)
PATCH 1/2 drm/bridge: use drm_bridge_get_edid() instead of using ->get_edid directly
Make drm_bridge_get_edid() the one place to call the hook.
--- drivers/gpu/drm/drm_bridge_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +1 -1
@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,if (status != connector_status_connected) goto no_edid; - edid = bridge->funcs->get_edid (bridge, connector); + edid =drm_bridge_get_edid (bridge, connector);if (!drm_edid_is_valid (edid)) {kfree (edid); goto no_edid;
Signature · 1 line
2.39.2
PATCH 2/2 drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly
Make drm_bridge_get_edid() the one place to call the hook.
---
UNTESTED
--- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/lontium-lt9611uxc.c +1 -1
@@ -296,7 +296,7 @@ static int lt9611uxc_connector_get_modes(struct drm_connector *connector)unsigned int count;struct edid *edid; - edid = lt9611uxc->bridge.funcs->get_edid (<9611uxc->bridge, connector); + edid =drm_bridge_get_edid (<9611uxc->bridge, connector);drm_connector_update_edid_property (connector, edid); count =drm_add_edid_modes (connector, edid);kfree (edid);
Signature · 1 line
2.39.2
Re: [PATCH 2/2] drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly
Hi Jani,
Quoted 10 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 3 lines
---
UNTESTED
I can't test this either, but it looks fine.
Quoted 17 lines
--- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/lontium-lt9611uxc.c +1
-1@@ -296,7 +296,7 @@ static int lt9611uxc_connector_get_modes(struct drm_connector *connector)unsigned int count;struct edid *edid; - edid = lt9611uxc->bridge.funcs->get_edid (<9611uxc->bridge, connector); + edid =drm_bridge_get_edid (<9611uxc->bridge, connector);drm_connector_update_edid_property (connector, edid); count =drm_add_edid_modes (connector, edid);kfree (edid);
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 2/2] drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly
Quoted 13 lines · Laurent Pinchart
Hi Jani,
Quoted 10 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 5 lines
Quoted 3 lines
---
UNTESTED
I can't test this either, but it looks fine.
Thanks. Are you okay with merging the two with review only?
BR,
Jani.
Quoted 20 lines
Reviewed-by Laurent Pinchart <[email protected]>Quoted 17 lines
--- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/lontium-lt9611uxc.c +1
-1@@ -296,7 +296,7 @@ static int lt9611uxc_connector_get_modes(struct drm_connector *connector)unsigned int count;struct edid *edid; - edid = lt9611uxc->bridge.funcs->get_edid (<9611uxc->bridge, connector); + edid =drm_bridge_get_edid (<9611uxc->bridge, connector);drm_connector_update_edid_property (connector, edid); count =drm_add_edid_modes (connector, edid);kfree (edid);
Signature · 1 line
Jani Nikula, Intel
Laurent Pinchart
reviewerRe: [PATCH 2/2] drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Laurent Pinchart
Quoted 10 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
---
UNTESTED
I can't test this either, but it looks fine.
Thanks. Are you okay with merging the two with review only?
The changes are trivial, if we can't get anyone to test them, then I'm OK merging them.
Quoted 19 lines
Quoted 19 lines
Reviewed-by Laurent Pinchart <[email protected]>Quoted 17 lines
--- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/lontium-lt9611uxc.c +1
-1@@ -296,7 +296,7 @@ static int lt9611uxc_connector_get_modes(struct drm_connector *connector)unsigned int count;struct edid *edid; - edid = lt9611uxc->bridge.funcs->get_edid (<9611uxc->bridge, connector); + edid =drm_bridge_get_edid (<9611uxc->bridge, connector);drm_connector_update_edid_property (connector, edid); count =drm_add_edid_modes (connector, edid);kfree (edid);
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 2/2] drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using ->get_edid directly
Quoted 15 lines · Laurent Pinchart
Quoted 14 lines · Jani Nikula
Quoted 13 lines · Laurent Pinchart
Quoted 12 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>---
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
UNTESTED
I can't test this either, but it looks fine.
Thanks. Are you okay with merging the two with review only?
The changes are trivial, if we can't get anyone to test them, then I'm OK merging them.
Thanks, pushed to drm-misc-next.
BR,
Jani.
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Reviewed-by Laurent Pinchart <[email protected]>Quoted 17 lines
--- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/lontium-lt9611uxc.c +1
-1@@ -296,7 +296,7 @@ static int lt9611uxc_connector_get_modes(struct drm_connector *connector)unsigned int count;struct edid *edid; - edid = lt9611uxc->bridge.funcs->get_edid (<9611uxc->bridge, connector); + edid =drm_bridge_get_edid (<9611uxc->bridge, connector);drm_connector_update_edid_property (connector, edid); count =drm_add_edid_modes (connector, edid);kfree (edid);
Signature · 1 line
Jani Nikula, Intel
Ping?
Quoted 26 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/drm_bridge_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_bridge_connector.c +1
-1@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,if (status != connector_status_connected) goto no_edid; - edid = bridge->funcs->get_edid (bridge, connector); + edid =drm_bridge_get_edid (bridge, connector);if (!drm_edid_is_valid (edid)) {kfree (edid); goto no_edid;
Signature · 1 line
Jani Nikula, Intel
Hi Jani,
Thank you for the patch.
Quoted 9 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/drm_bridge_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_bridge_connector.c +1
-1@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,if (status != connector_status_connected) goto no_edid; - edid = bridge->funcs->get_edid (bridge, connector); + edid =drm_bridge_get_edid (bridge, connector);if (!drm_edid_is_valid (edid)) {kfree (edid); goto no_edid;
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 15 lines · Laurent Pinchart
Hi Jani,
Thank you for the patch.
Quoted 9 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 1 line
Reviewed-by Laurent Pinchart <[email protected]>
Thanks Laurent, does that cover patch 2/2 as well, or just 1/2?
BR,
Jani.
Quoted 18 lines
Quoted 18 lines
--- drivers/gpu/drm/drm_bridge_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_bridge_connector.c +1
-1@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,if (status != connector_status_connected) goto no_edid; - edid = bridge->funcs->get_edid (bridge, connector); + edid =drm_bridge_get_edid (bridge, connector);if (!drm_edid_is_valid (edid)) {kfree (edid); goto no_edid;
Signature · 1 line
Jani Nikula, Intel
Laurent Pinchart
reviewerQuoted 12 lines · Jani Nikula
Quoted 11 lines · Laurent Pinchart
Quoted 9 lines · Jani Nikula
Make
drm_bridge_get_edid()the one place to call the hook.Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Robert Foss <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 3 lines
Quoted 1 line
Reviewed-by Laurent Pinchart <[email protected]>Thanks Laurent, does that cover patch 2/2 as well, or just 1/2?
Just 1/2, I hadn't looked at 2/2. I've now reviewed it too.
Quoted 20 lines
Quoted 17 lines
Quoted 17 lines
--- drivers/gpu/drm/drm_bridge_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_bridge_connector.c +1
-1@@ -238,7 +238,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,if (status != connector_status_connected) goto no_edid; - edid = bridge->funcs->get_edid (bridge, connector); + edid =drm_bridge_get_edid (bridge, connector);if (!drm_edid_is_valid (edid)) {kfree (edid); goto no_edid;Signature · 1 line
Jani Nikula, Intel
Signature · 3 lines
Regards, Laurent Pinchart