net: ksz9477: remove unnecessary xmit and recv functions
authorTim Harvey <tharvey@gateworks.com>
Wed, 30 Nov 2022 17:42:48 +0000 (09:42 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:22:08 +0000 (14:22 -0500)
Remove the unnecessary xmit and recv functions.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
drivers/net/ksz9477.c

index ed8f1895cb121265da58ca1efeede925ab05fbb4..fb5c76c600be878dfa06249e7c75e3401d060b9c 100644 (file)
@@ -62,7 +62,6 @@
 
 struct ksz_dsa_priv {
        struct udevice *dev;
-       int active_port;
 };
 
 static inline int ksz_read8(struct udevice *dev, u32 reg, u8 *val)
@@ -382,9 +381,6 @@ static int ksz_port_enable(struct udevice *dev, int port, struct phy_device *phy
        data8 |= SW_START;
        ksz_write8(priv->dev, REG_SW_OPERATION, data8);
 
-       /* keep track of current enabled non-cpu port */
-       priv->active_port = port;
-
        return 0;
 }
 
@@ -413,28 +409,9 @@ static void ksz_port_disable(struct udevice *dev, int port, struct phy_device *p
         */
 }
 
-static int ksz_xmit(struct udevice *dev, int port, void *packet, int length)
-{
-       dev_dbg(dev, "%s P%d %d\n", __func__, port + 1, length);
-
-       return 0;
-}
-
-static int ksz_recv(struct udevice *dev, int *port, void *packet, int length)
-{
-       struct ksz_dsa_priv *priv = dev_get_priv(dev);
-
-       dev_dbg(dev, "%s P%d %d\n", __func__, priv->active_port + 1, length);
-       *port = priv->active_port;
-
-       return 0;
-};
-
 static const struct dsa_ops ksz_dsa_ops = {
        .port_enable = ksz_port_enable,
        .port_disable = ksz_port_disable,
-       .xmit = ksz_xmit,
-       .rcv = ksz_recv,
 };
 
 static int ksz_probe_mdio(struct udevice *dev)