]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: fix the PHY id mask
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Tue, 28 Nov 2017 13:26:30 +0000 (14:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 15:30:38 +0000 (10:30 -0500)
commit2fcb280cddf0034a8ee81b87ca8c8bcff94806aa
tree94d2da5a32aa21a96e15382afb317d57364b8fcb
parent7b127b00cbd76b95046e661c8409f3fd4538d9cf
net: phy: marvell10g: fix the PHY id mask

The Marvell 10G PHY driver supports different hardware revisions, which
have their bits 3..0 differing. To get the correct revision number these
bits should be ignored. This patch fixes this by using the already
defined MARVELL_PHY_ID_MASK (0xfffffff0) instead of the custom
0xffffffff mask.

Fixes: e9f556036ea4 ("net: phy: add Marvell Alaska X 88X3310 10Gigabit PHY support")
Suggested-by: Yan Markman <ymarkman@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c