Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Wei Fang <wei.fang@nxp.com>
To: shenwei.wang@nxp.com, xiaoning.wang@nxp.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, eric@nelint.com,
	Frank.Li@nxp.com
Cc: imx@lists.linux.dev, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 net-next 0/5] net: fec: do some cleanup for the driver
Date: Wed, 19 Nov 2025 10:51:43 +0800	[thread overview]
Message-ID: <20251119025148.2817602-1-wei.fang@nxp.com> (raw)

This patch set removes some unnecessary or invalid code from the FEC
driver. See each patch for details.

---
v3 changes:
1. Revert patch 2 to v1, fec_enet_register_offset_6ul still needs the
"#ifdef" guard, otherwise, there are some build errors
2. Fix a typo in the commit message of patch 3
3. Collect Reviewed-by tag
v2: https://lore.kernel.org/imx/20251117101921.1862427-1-wei.fang@nxp.com/
v2 changes:
1. Improve the commit message
2. Remove the "#ifdef" guard for fec_enet_register_offset_6ul
3. Add a BUILD_BUG_ON() test to ensure that FEC_ENET_XDP_HEADROOM
provides the required alignment.
4. Collect Reviewed-by tag
v1: https://lore.kernel.org/imx/20251111100057.2660101-1-wei.fang@nxp.com/
---

Wei Fang (5):
  net: fec: remove useless conditional preprocessor directives
  net: fec: simplify the conditional preprocessor directives
  net: fec: remove struct fec_enet_priv_txrx_info
  net: fec: remove rx_align from fec_enet_private
  net: fec: remove duplicate macros of the BD status

 drivers/net/ethernet/freescale/fec.h      | 30 +---------
 drivers/net/ethernet/freescale/fec_main.c | 72 ++++++++++-------------
 2 files changed, 33 insertions(+), 69 deletions(-)

-- 
2.34.1


             reply	other threads:[~2025-11-19  2:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19  2:51 Wei Fang [this message]
2025-11-19  2:51 ` [PATCH v3 net-next 1/5] net: fec: remove useless conditional preprocessor directives Wei Fang
2025-11-19  2:51 ` [PATCH v3 net-next 2/5] net: fec: simplify the " Wei Fang
2025-11-19  2:51 ` [PATCH v3 net-next 3/5] net: fec: remove struct fec_enet_priv_txrx_info Wei Fang
2025-11-19  2:51 ` [PATCH v3 net-next 4/5] net: fec: remove rx_align from fec_enet_private Wei Fang
2025-11-19  2:51 ` [PATCH v3 net-next 5/5] net: fec: remove duplicate macros of the BD status Wei Fang
2025-11-21  2:50 ` [PATCH v3 net-next 0/5] net: fec: do some cleanup for the driver patchwork-bot+netdevbpf

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=20251119025148.2817602-1-wei.fang@nxp.com \
    --to=wei.fang@nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric@nelint.com \
    --cc=imx@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shenwei.wang@nxp.com \
    --cc=xiaoning.wang@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