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)
commiteca4bad73409aedc6ff22f823c18b67a4f08c851
treee5f2bbe1fee77b86daf5c6384cf45c36188b6dbd
parent1ad3d225e5a40ca6c586989b4baaca710544c15a
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: b04a2f5b9ff5 ("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