]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: phy: disable aneg in genphy_c45_pma_setup_forced
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 Feb 2019 19:44:16 +0000 (20:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 04:18:39 +0000 (20:18 -0800)
commit29f000f7751e3c7f4d26decfe5094090504fd8ba
treeb0b3df67dc5fee9e2f735a2ff3566291fbaea4d9
parent8e4c076ef2c35d1d2224e843cc4c0c499b710ef0
net: phy: disable aneg in genphy_c45_pma_setup_forced

When genphy_c45_pma_setup_forced() is called the "aneg enabled" bit may
still be set, therefore clear it. This is also in line with what
genphy_setup_forced() does for Clause 22.

v2:
- fix typo

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/phy-c45.c