net: mdio: Rework scanning of bus ready for quirks
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Jan 2023 10:01:36 +0000 (11:01 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jan 2023 15:23:19 +0000 (16:23 +0100)
commitd41e127757f37d0d47ccda4af2fe74c32533f798
tree0707c5939933184c6a9f040f0f2e2e3737de7892
parent81d874e7c84e16427cbe9f2bb03e0dc2684e44cf
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>
drivers/net/ethernet/marvell/pxa168_eth.c
drivers/net/phy/mdio_bus.c
include/linux/phy.h