diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-12-03 09:57:00 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-08 21:33:29 -0500 |
commit | 60efff0c3da9e2d9ae9f6fcdcf34061419687ab3 (patch) | |
tree | 06b24b57237fbd930e3b711f6105814553611d86 | |
parent | b04a2f5b9ff5460a0bfbc97c9d6dd0017ad0cbe5 (diff) | |
download | op-kernel-dev-60efff0c3da9e2d9ae9f6fcdcf34061419687ab3.zip op-kernel-dev-60efff0c3da9e2d9ae9f6fcdcf34061419687ab3.tar.gz |
net: phy: bcm7xxx: add an explicit version check for GPHY rev G0
GPHY revision G0 has its version rolled over to 0x10, introduce an
explicit check for that revision and invoke the proper workaround
function for it.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/bcm7xxx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c index 7a53af4..974ec45 100644 --- a/drivers/net/phy/bcm7xxx.c +++ b/drivers/net/phy/bcm7xxx.c @@ -252,6 +252,8 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev) break; case 0xe0: case 0xf0: + /* Rev G0 introduces a roll over */ + case 0x10: ret = bcm7xxx_28nm_e0_plus_afe_config_init(phydev); break; default: |