OSDN Git Service

net: phy: marvell10g: improve mv3310_config_aneg
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 Feb 2019 19:44:59 +0000 (20:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 04:18:51 +0000 (20:18 -0800)
commit30de65c3d5a3559abc80d4b508c646438c06790c
treee4f70aae638d9b2b61bdbba5ed24e5ddc7e8acd9
parent29f000f7751e3c7f4d26decfe5094090504fd8ba
net: phy: marvell10g: improve mv3310_config_aneg

Now that genphy_c45_pma_setup_forced() makes sure the "aneg enabled"
bit is cleared, the call to genphy_c45_an_disable_aneg() isn't needed
any longer. And the code pattern is now the same as in
genphy_config_aneg().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c