OSDN Git Service

net: phy: bcm54140: fix phy_id_mask
authorMichael Walle <michael@walle.cc>
Tue, 28 Apr 2020 23:06:57 +0000 (01:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:55:49 +0000 (20:55 -0700)
commitafcecca56f0cd287c7895511dc380b95c633b1a2
tree16ba880d44c061c3f48f925217306c1455997d8a
parent86570d8a2f768485a515f646d702a37b34b27260
net: phy: bcm54140: fix phy_id_mask

Broadcom defines the bits for this PHY as follows:
  { oui[24:3], model[6:0], revision[2:0] }

Thus we have to mask the lower three bits only.

Fixes: 6937602ed3f9 ("net: phy: add Broadcom BCM54140 support")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm54140.c