diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-09 16:30:51 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-11 00:53:37 +0100 |
commit | 743a19e38d02fb6036dbf621edcf1cbb38e2f9e0 (patch) | |
tree | 67b6261aeef9685815c9a66c8a0d03c1ee264a99 /drivers/net/dsa/mv88e6xxx/chip.h | |
parent | net: mdio: add mdiobus_c45_read/write_nested helpers (diff) | |
download | linux-743a19e38d02fb6036dbf621edcf1cbb38e2f9e0.tar.xz linux-743a19e38d02fb6036dbf621edcf1cbb38e2f9e0.zip |
net: dsa: mv88e6xxx: Separate C22 and C45 transactions
The global2 SMI MDIO bus driver can perform both C22 and C45
transfers. Create separate functions for each and register the C45
versions using the new API calls where appropriate. Update the SERDES
code to make use of these new accessors.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/net/dsa/mv88e6xxx/chip.h index f635a5bb47ce..945a6696ad72 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.h +++ b/drivers/net/dsa/mv88e6xxx/chip.h @@ -454,6 +454,13 @@ struct mv88e6xxx_ops { struct mii_bus *bus, int addr, int reg, u16 val); + int (*phy_read_c45)(struct mv88e6xxx_chip *chip, + struct mii_bus *bus, + int addr, int devad, int reg, u16 *val); + int (*phy_write_c45)(struct mv88e6xxx_chip *chip, + struct mii_bus *bus, + int addr, int devad, int reg, u16 val); + /* Priority Override Table operations */ int (*pot_clear)(struct mv88e6xxx_chip *chip); |