]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: reserved phy revisions must be checked first
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:45 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commitb78a955c3749d540bb8bc18cd0abf984058125d1
treee5f2bbe1fee77b86daf5c6384cf45c36188b6dbd
parent720b9ac800ea493f3d12a2ef6cce3e325ccb5582
net: bcmgenet: reserved phy revisions must be checked first

The reserved gphy_rev value of 0x01ff must be tested before the old
or new scheme for GPHY major versioning are tested, otherwise it will
be treated as 0xff00 according to the old scheme.

Fixes: 7dc98f0455ad ("net: bcmgenet: add support for new GENET PHY revision scheme")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c