]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: dsa: microchip: Remove unused ksz8_all_queues_split()
authorBastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Tue, 5 May 2026 14:25:01 +0000 (16:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2026 02:09:12 +0000 (19:09 -0700)
ksz8_all_queues_split() isn't used anywhere.

Remove it.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20260505-clean-ksz-driver-v1-1-05d70fa42461@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8.c
drivers/net/dsa/microchip/ksz8.h

index c354abdafc1b542a32c276ef939a90db30c67f55..dc29b028f84095e7a01414a0494bf7df0a3273ee 100644 (file)
@@ -267,21 +267,6 @@ static int ksz8_port_queue_split(struct ksz_device *dev, int port, int queues)
        return ksz_prmw8(dev, port, reg_2q, mask_2q, data_2q);
 }
 
-int ksz8_all_queues_split(struct ksz_device *dev, int queues)
-{
-       struct dsa_switch *ds = dev->ds;
-       const struct dsa_port *dp;
-
-       dsa_switch_for_each_port(dp, ds) {
-               int ret = ksz8_port_queue_split(dev, dp->index, queues);
-
-               if (ret)
-                       return ret;
-       }
-
-       return 0;
-}
-
 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt)
 {
        const u32 *masks;
index 0f2cd1474b44fcd6a0b7c83eab337855e869ec17..52b7d944d9d972dfd515aa18372ef611da9b69dc 100644 (file)
@@ -61,7 +61,6 @@ void ksz8_phylink_mac_link_up(struct phylink_config *config,
                              struct phy_device *phydev, unsigned int mode,
                              phy_interface_t interface, int speed, int duplex,
                              bool tx_pause, bool rx_pause);
-int ksz8_all_queues_split(struct ksz_device *dev, int queues);
 
 u32 ksz8463_get_port_addr(int port, int offset);
 int ksz8463_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);