[PATCH net-next 04/14] net: bcmgenet: BCM7712 is GENETv5 compatible

Doug Berger posted 14 patches 11 months, 1 week ago
[PATCH net-next 04/14] net: bcmgenet: BCM7712 is GENETv5 compatible
Posted by Doug Berger 11 months, 1 week ago
The major revision of the GENET core in the BCM7712 SoC was bumped
to 7 but it is compatible with the GENETv5 implementation. This
commit maps the version accordingly to avoid a warning.

Signed-off-by: Doug Berger <opendmb@gmail.com>
---
 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index 48830942afa8..e6b2a0499edb 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -3825,7 +3825,7 @@ static void bcmgenet_set_hw_params(struct bcmgenet_priv *priv)
 	/* Read GENET HW version */
 	reg = bcmgenet_sys_readl(priv, SYS_REV_CTRL);
 	major = (reg >> 24 & 0x0f);
-	if (major == 6)
+	if (major == 6 || major == 7)
 		major = 5;
 	else if (major == 5)
 		major = 4;
-- 
2.34.1
Re: [PATCH net-next 04/14] net: bcmgenet: BCM7712 is GENETv5 compatible
Posted by Florian Fainelli 11 months, 1 week ago
On 3/6/25 11:26, Doug Berger wrote:
> The major revision of the GENET core in the BCM7712 SoC was bumped
> to 7 but it is compatible with the GENETv5 implementation. This
> commit maps the version accordingly to avoid a warning.
> 
> Signed-off-by: Doug Berger <opendmb@gmail.com>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>

-- 
Florian