diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2023-01-20 18:12:47 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-20 18:12:48 -0800 |
| commit | bad5532ecf3300620c5a68d63eda3346e51488f8 (patch) | |
| tree | 572952493f5faf9b5d548e5d5dd943a4dc9795a0 /drivers/net/dsa/microchip/ksz_common.c | |
| parent | bc170f96c00b00b8865c223ff3f650f689817fe0 (diff) | |
| parent | 99d5fe9c7f3d0b349676984beda4bad109bf10b8 (diff) | |
| download | linux-bad5532ecf3300620c5a68d63eda3346e51488f8.tar.gz linux-bad5532ecf3300620c5a68d63eda3346e51488f8.tar.bz2 linux-bad5532ecf3300620c5a68d63eda3346e51488f8.zip | |
Merge branch 'net-mdio-remove-support-for-building-c45-muxed-addresses'
Michael Walle says:
====================
net: mdio: Remove support for building C45 muxed addresses
I've picked this older series from Andrew up and rebased it onto
the latest net-next.
With all drivers which support c45 now being converted to a seperate c22
and c45 access op, we can now remove the old MII_ADDR_C45 flag.
====================
Link: https://lore.kernel.org/r/20230119130700.440601-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 5e1e5bd555d2..28d26e80e256 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -1777,9 +1777,6 @@ static int ksz_sw_mdio_read(struct mii_bus *bus, int addr, int regnum) u16 val; int ret; - if (regnum & MII_ADDR_C45) - return -EOPNOTSUPP; - ret = dev->dev_ops->r_phy(dev, addr, regnum, &val); if (ret < 0) return ret; @@ -1792,9 +1789,6 @@ static int ksz_sw_mdio_write(struct mii_bus *bus, int addr, int regnum, { struct ksz_device *dev = bus->priv; - if (regnum & MII_ADDR_C45) - return -EOPNOTSUPP; - return dev->dev_ops->w_phy(dev, addr, regnum, val); } |
