Message ID | 20250306192643.2383632-5-opendmb@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 59a97b8184eff53997ea6a96b6dd2ec65b8bba1e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: bcmgenet: revise suspend/resume | expand |
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>
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;
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(-)