net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Oct 2019 17:45:47 +0000 (10:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Oct 2019 04:00:12 +0000 (21:00 -0700)
commitefb86fede98cdc70b674692ff617b1162f642c49
tree1d222795a508dc6e7b05a14bd5183b81bdc875ae
parentbad28d889caea00bc9415c59fa6a433a72eeaf5e
net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3

The RGMII_MODE_EN bit value was 0 for GENET versions 1 through 3, and
became 6 for GENET v4 and above, account for that difference.

Fixes: aa09677cba42 ("net: bcmgenet: add MDIO routines")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c