diff options
| author | Arun Ramadoss <[email protected]> | 2022-06-17 08:42:55 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2022-06-21 13:26:45 +0000 |
| commit | 1fe94f542e66b5de526233762ed528e7d3b66ff9 (patch) | |
| tree | d11e5c4f72ca0e1ff679c1391eafa0f1649066d4 /drivers/net/dsa/microchip/ksz8795.c | |
| parent | net: dsa: microchip: update fdb add/del/dump in ksz_common (diff) | |
| download | kernel-1fe94f542e66b5de526233762ed528e7d3b66ff9.tar.gz kernel-1fe94f542e66b5de526233762ed528e7d3b66ff9.zip | |
net: dsa: microchip: move get_phy_flags & mtu to ksz_common
This patch assigns the get_phy_flags & mtu hook of ksz8795 and ksz9477
in dsa_switch_ops to ksz_common. For get_phy_flags hooks,checks whether
the chip is ksz8863/kss8793 then it returns error for port1.
Signed-off-by: Arun Ramadoss <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz8795.c')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz8795.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index 2f93b921b45e..23ed05f4efcc 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -898,18 +898,6 @@ static void ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val) } } -static u32 ksz8_sw_get_phy_flags(struct dsa_switch *ds, int port) -{ - /* Silicon Errata Sheet (DS80000830A): - * Port 1 does not work with LinkMD Cable-Testing. - * Port 1 does not respond to received PAUSE control frames. - */ - if (!port) - return MICREL_KSZ8_P1_ERRATA; - - return 0; -} - static void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member) { u8 data; @@ -1470,7 +1458,7 @@ static void ksz8_get_caps(struct ksz_device *dev, int port, static const struct dsa_switch_ops ksz8_switch_ops = { .get_tag_protocol = ksz_get_tag_protocol, - .get_phy_flags = ksz8_sw_get_phy_flags, + .get_phy_flags = ksz_get_phy_flags, .setup = ksz8_setup, .phy_read = ksz_phy_read16, .phy_write = ksz_phy_write16, |
