diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-12 16:15:07 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-13 21:40:53 -0800 |
commit | 93641ecbaa1f2602c455842ad0b0fe066f5f1344 (patch) | |
tree | 684707636ab459a6170a09b5f911d419fa46e913 /drivers/net/mdio/mdio-thunder.c | |
parent | 9b7fe8046d7429ba776f962ad3b4b7ba2d6859c8 (diff) |
net: mdio: cavium: Separate C22 and C45 transactions
The cavium IP can perform both C22 and C45 transfers. Create separate
functions for each and register the C45 versions in both the octeon
and thunder bus driver.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mdio/mdio-thunder.c')
-rw-r--r-- | drivers/net/mdio/mdio-thunder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/mdio/mdio-thunder.c b/drivers/net/mdio/mdio-thunder.c index 822d2cdd2f35..3847ee92c109 100644 --- a/drivers/net/mdio/mdio-thunder.c +++ b/drivers/net/mdio/mdio-thunder.c @@ -93,8 +93,10 @@ static int thunder_mdiobus_pci_probe(struct pci_dev *pdev, bus->mii_bus->name = KBUILD_MODNAME; snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", r.start); bus->mii_bus->parent = &pdev->dev; - bus->mii_bus->read = cavium_mdiobus_read; - bus->mii_bus->write = cavium_mdiobus_write; + bus->mii_bus->read = cavium_mdiobus_read_c22; + bus->mii_bus->write = cavium_mdiobus_write_c22; + bus->mii_bus->read_c45 = cavium_mdiobus_read_c45; + bus->mii_bus->write_c45 = cavium_mdiobus_write_c45; err = of_mdiobus_register(bus->mii_bus, node); if (err) |