]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: fix usage of new MMD modifying helpers
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 10 Feb 2019 18:58:49 +0000 (19:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Feb 2019 20:53:18 +0000 (12:53 -0800)
commitd83defee70694492f76a672f64b346b9a4e67a41
treecbb3d6f5b2c8f54922850507a0c40983e8967625
parentfedd37d9ae5a69cc4f2b6db5833f21daa4f3b606
net: phy: marvell10g: fix usage of new MMD modifying helpers

When replacing mv3310_modify() with phy_modify_mmd() we missed that
they behave differently, mv3310_modify() returns 1 on a changed
register value whilst phy_modify_mmd() returns 0. Fix this by replacing
phy_modify_mmd() with phy_modify_mmd_changed() where needed.

Fixes: d41333cb5027 ("net: phy: make use of new MMD accessors")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
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/marvell10g.c