diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-09 16:30:51 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-10 15:53:37 -0800 |
commit | 743a19e38d02fb6036dbf621edcf1cbb38e2f9e0 (patch) | |
tree | 67b6261aeef9685815c9a66c8a0d03c1ee264a99 /drivers/net/dsa/mv88e6xxx/phy.h | |
parent | 1d914d51f03cbbbda3c34c675e49392ce60c1c33 (diff) | |
download | linux-stable-743a19e38d02fb6036dbf621edcf1cbb38e2f9e0.tar.gz linux-stable-743a19e38d02fb6036dbf621edcf1cbb38e2f9e0.tar.bz2 linux-stable-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/phy.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/phy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/phy.h b/drivers/net/dsa/mv88e6xxx/phy.h index 05ea0d546969..5f47722364cc 100644 --- a/drivers/net/dsa/mv88e6xxx/phy.h +++ b/drivers/net/dsa/mv88e6xxx/phy.h @@ -28,6 +28,10 @@ int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val); int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val); +int mv88e6xxx_phy_read_c45(struct mv88e6xxx_chip *chip, int phy, int devad, + int reg, u16 *val); +int mv88e6xxx_phy_write_c45(struct mv88e6xxx_chip *chip, int phy, int devad, + int reg, u16 val); int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, u8 page, int reg, u16 *val); int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, |