]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: don't set autoneg if it's not supported
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 16 Apr 2019 21:54:00 +0000 (23:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Apr 2019 23:10:27 +0000 (16:10 -0700)
commit7dc082393e5f92cbc2b2d5db698c7c2185603ab6
tree1793b3dc22b414d24669b643ba7a4b60121a3a31
parent819e983a0431f15ce07bb42b9df14e75367277c0
net: phy: don't set autoneg if it's not supported

In phy_device_create() we set phydev->autoneg = 1. This isn't changed
even if the PHY doesn't support autoneg. This seems to affect very
few PHY's, and they disable phydev->autoneg in their config_init
callback. So it's more of an improvement, therefore net-next.
The patch also wouldn't apply to older kernel versions because the
link mode bitmaps have been introduced recently.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c