mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
net: mdio: Rework scanning of bus ready for quirks
Some C22 PHYs do bad things when there are C45 transactions on the bus. In order to handle this, the bus needs to be scanned first for C22 at all addresses, and then C45 scanned for all addresses. The Marvell pxa168 driver scans a specific address on the bus to find its PHY. This is a C22 only device, so update it to use the c22 helper. 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>
This commit is contained in:
@@ -464,7 +464,7 @@ static inline struct mii_bus *devm_mdiobus_alloc(struct device *dev)
|
||||
}
|
||||
|
||||
struct mii_bus *mdio_find_bus(const char *mdio_name);
|
||||
struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
|
||||
struct phy_device *mdiobus_scan_c22(struct mii_bus *bus, int addr);
|
||||
|
||||
#define PHY_INTERRUPT_DISABLED false
|
||||
#define PHY_INTERRUPT_ENABLED true
|
||||
|
||||
Reference in New Issue
Block a user