mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
net: dsa: mv88e6xxx: Fix writing to a PHY page.
[ Upstream commitc309b15809] After changing to the needed page, actually write the value to the register! Fixes:09cb7dfd3f("net: dsa: mv88e6xxx: describe PHY page and SerDes") Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6797a427f8
commit
6436e7900c
@@ -110,6 +110,9 @@ int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy,
|
||||
err = mv88e6xxx_phy_page_get(chip, phy, page);
|
||||
if (!err) {
|
||||
err = mv88e6xxx_phy_write(chip, phy, MV88E6XXX_PHY_PAGE, page);
|
||||
if (!err)
|
||||
err = mv88e6xxx_phy_write(chip, phy, reg, val);
|
||||
|
||||
mv88e6xxx_phy_page_put(chip, phy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user