net: phy: Decide on C45 capabilities based on presence of method
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Jan 2023 10:01:39 +0000 (11:01 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jan 2023 15:23:19 +0000 (16:23 +0100)
commitfbfe97597c777cca6a91804f3f6ce046acb98860
tree03a5d5562139938e8bdcca6daaa4edd0f884fe0b
parent1a136ca2e089d91df8eec0a796a324171373ffd8
net: phy: Decide on C45 capabilities based on presence of method

Some PHYs provide invalid IDs in C22 space. If C45 is supported on the
bus an attempt can be made to get the IDs from the C45 space. Decide
on this based on the presence of the C45 read method in the bus
structure. This will allow the unreliable probe_capabilities to be
removed.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy_device.c