From: Frank Li <Frank.Li@nxp.com>
To: claudiu.manoil@nxp.com, vladimir.oltean@nxp.com,
xiaoning.wang@nxp.com, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, linux@armlinux.org.uk, Frank.Li@nxp.com
Cc: Frank Li <frank.li@nxp.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
imx@lists.linux.dev
Subject: Re: [PATCH net] net: enetc: safely reinitialize TX BD ring when it has unsent frames
Date: Fri, 6 Mar 2026 11:48:53 -0500 [thread overview]
Message-ID: <20260306164856.292071-1-Frank.Li@nxp.com> (raw)
In-Reply-To: <20260306054002.2208360-1-wei.fang@nxp.com>
From: Frank Li (AI-BOT) <frank.li@nxp.com>
> diff --git a/drivers/net/ethernet/freescale/enetc/enetc4_hw.h b/drivers/net/ethernet/freescale/enetc/enetc4_hw.h
> index 3ed0f7a02767..1ce6551e186c 100644
> --- a/drivers/net/ethernet/freescale/enetc/enetc4_hw.h
> +++ b/drivers/net/ethernet/freescale/enetc/enetc4_hw.h
> @@ -134,6 +134,12 @@
>
> /* Port operational register */
> #define ENETC4_POR 0x4100
> +#define POR_TXDIS BIT(0)
> +#define POR_RXDIS BIT(1)
> +
> +/* Port status register */
> +#define ENETC4_PSR 0x4100
> +#define PSR_RX_BUSY BIT(1)
AI: ENETC4_PSR and ENETC4_POR both defined as 0x4100. Likely a typo; check
the hardware spec for the correct offset of ENETC4_PSR.
> + while (!(enetc_port_rd(&si->hw, ENETC4_PM_IEVENT(mac)) &
> + PM_IEVENT_RX_EMPTY)) {
> + if (timeout >= 100) {
> + dev_warn(&si->pdev->dev,
> + "MAC %d RX is not empty\n", mac);
> + break;
> + };
AI: Stray semicolon after closing brace; remove it.
Frank
prev parent reply other threads:[~2026-03-06 16:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 5:40 [PATCH net] net: enetc: safely reinitialize TX BD ring when it has unsent frames Wei Fang
2026-03-06 5:50 ` Wei Fang
2026-03-06 14:50 ` Jakub Kicinski
2026-03-06 16:48 ` Frank Li [this message]
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=20260306164856.292071-1-Frank.Li@nxp.com \
--to=frank.li@nxp.com \
--cc=andrew+netdev@lunn.ch \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=imx@lists.linux.dev \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@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