]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fix wrong mask to phy_modify()
authorIngo van Lil <inguin@gmx.de>
Mon, 12 Feb 2018 11:02:52 +0000 (12:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2018 16:42:48 +0000 (11:42 -0500)
commita61b53643fcd9ffe106538df07533668ce18158a
treeaed020873e3b61aebaf5a5f7347cde3486b1f628
parent71854fc63a5ce4f390ad953285487838297bd78e
net: phy: fix wrong mask to phy_modify()

When forcing a specific link mode, the PHY driver must clear the
existing speed and duplex bits in BMCR while preserving some other
control bits. This logic was accidentally inverted with the introduction
of phy_modify().

Fixes: ee4cdfa46d22 ("net: phy: convert read-modify-write to phy_modify()")
Signed-off-by: Ingo van Lil <inguin@gmx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c