]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: add support for new GENET PHY revision scheme
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 3 Dec 2014 17:56:59 +0000 (09:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 02:33:29 +0000 (21:33 -0500)
commit7dc98f0455adfc6e1f952d2097d0b23c08b3317b
tree1b47528e4549c4235c439161283372e65ae8fd5d
parent520aed4091937ed9d61277f39aa11b541defd7f3
net: bcmgenet: add support for new GENET PHY revision scheme

Starting with GPHY revision G0, the GENET register layout has changed to
use the same numbering scheme as the Starfighter 2 switch. This means
that GPHY major revision is in bits 15:12, minor in bits 11:8 and patch
level is in bits 7:4.

Introduce a small heuristic which checks for the old scheme first, tests
for the new scheme and finally attempts to catch reserved values and
aborts.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c