]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: let genphy_c45_read_link manage the devices to check
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 7 Feb 2019 20:41:46 +0000 (21:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:17:08 +0000 (18:17 -0800)
commit998a8a8387ff5f65da456d1fc448dbb926fb5d78
tree368d01c775890f2c614ae18fd6000af304019d91
parent71bd106d2567675668e253cba3960e3c4bf2e80e
net: phy: let genphy_c45_read_link manage the devices to check

Let genphy_c45_read_link manage the devices to check, this removes
overhead from callers. Add C22EXT to the list of excluded devices
because it doesn't implement the status register. According to the
802.3 clause 45 spec registers 29.0 - 29.4 are reserved.

At the moment we have very few clause 45 PHY drivers, so we are
lacking experience whether other drivers will have to exclude further
devices, or may need to check PHY XS. If we should figure out that
list of devices to check needs to be configurable, I think best will
be to add a device list member to struct phy_driver.

v2:
- adjusted commit message
- exclude also device C22EXT from link checking

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c
drivers/net/phy/phy-c45.c
include/linux/phy.h
include/uapi/linux/mdio.h