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)
commitb06d8e5a5dcc21063a0a84658b7106f40aa400e4
treecbb3d6f5b2c8f54922850507a0c40983e8967625
parentb8554d4f7288f86fb278e0bc7b5b19579bf16b69
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: b52c018ddccf ("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