public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: u-boot@lists.denx.de, "Joe Hershberger" <joe.hershberger@ni.com>,
	"Ramon Fried" <rfried.dev@gmail.com>,
	"Vladimir Oltean" <vladimir.oltean@nxp.com>,
	"Stefano Babic" <sbabic@denx.de>,
	"Fabio Estevam" <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
	"Marek Behún" <marek.behun@nic.cz>
Cc: Tim Harvey <tharvey@gateworks.com>
Subject: [PATCH v4 5/8] net: ksz9477: remove unnecessary xmit and recv functions
Date: Wed, 28 Sep 2022 12:37:29 -0700	[thread overview]
Message-ID: <20220928193732.998665-6-tharvey@gateworks.com> (raw)
In-Reply-To: <20220928193732.998665-1-tharvey@gateworks.com>

Remove the unnecessary xmit and recv functions.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
v4:
 - no changes
v3:
 - added Vladimir's rb tag
v2: new patch
---
 drivers/net/ksz9477.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz9477.c
index ed8f1895cb12..fb5c76c600be 100644
--- a/drivers/net/ksz9477.c
+++ b/drivers/net/ksz9477.c
@@ -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)
-- 
2.25.1


  parent reply	other threads:[~2022-09-28 19:38 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 19:37 [PATCH v4 0/8] Add MV88E6xxx DSA driver and use on gwventana Tim Harvey
2022-09-28 19:37 ` [PATCH v4 1/8] net: mdio-uclass: scan for dm mdio children on post-bind Tim Harvey
2022-09-28 19:37 ` [PATCH v4 2/8] net: dsa: move cpu port probe to dsa_post_probe Tim Harvey
2022-09-28 19:37 ` [PATCH v4 3/8] net: dsa: ensure dsa driver has proper ops Tim Harvey
2022-09-28 19:37 ` [PATCH v4 4/8] net: dsa: allow rcv() and xmit() to be optional Tim Harvey
2022-09-28 19:37 ` Tim Harvey [this message]
2022-09-28 19:37 ` [PATCH v4 6/8] net: fec: add support for DM_MDIO Tim Harvey
2022-09-28 19:37 ` [PATCH v4 7/8] net: add MV88E61xx DSA driver Tim Harvey
2022-09-28 19:37 ` [PATCH v4 8/8] board: gw_ventana: enable MV88E61XX DSA support Tim Harvey
2022-09-28 19:56   ` Fabio Estevam
2022-09-28 19:59     ` Tim Harvey
2022-10-03 17:13   ` Fabio Estevam
2022-10-03 18:22     ` Tim Harvey
2022-10-03 18:40       ` Fabio Estevam
2022-10-03 19:09         ` Tim Harvey
2022-10-03 22:35           ` Fabio Estevam
2022-10-03 23:39             ` Tim Harvey
2022-10-03 23:46               ` Fabio Estevam
2022-10-04  0:14                 ` Fabio Estevam
2022-10-04  0:23                   ` Tim Harvey
2022-10-04  0:39                     ` Fabio Estevam
2022-10-04 15:26                       ` Tim Harvey
2022-10-04 16:25                         ` Fabio Estevam
2022-10-04 16:47                           ` Fabio Estevam
2022-10-04 16:50                             ` Tim Harvey
2022-10-04 16:52                               ` Fabio Estevam
2022-10-03 16:26 ` [PATCH v4 0/8] Add MV88E6xxx DSA driver and use on gwventana Fabio Estevam
2022-10-03 16:49   ` Fabio Estevam
2022-10-03 18:47     ` Tim Harvey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220928193732.998665-6-tharvey@gateworks.com \
    --to=tharvey@gateworks.com \
    --cc=festevam@gmail.com \
    --cc=joe.hershberger@ni.com \
    --cc=marek.behun@nic.cz \
    --cc=rfried.dev@gmail.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox