mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] net: stmmac: fpe: pmac and fprq fixes
@ 2026-11-04  8:12 muhammad.nazim.amirul.nazle.asmade
  2026-11-04  8:12 ` [PATCH net-next v3 1/2] net: stmmac: fpe: Enforce pmac_enabled in set_mm and keep it on at init muhammad.nazim.amirul.nazle.asmade
  2026-11-04  8:12 ` [PATCH net-next v3 2/2] net: stmmac: fpe: Move fprq configuration to stmmac_fpe_configure_pmac() muhammad.nazim.amirul.nazle.asmade
  0 siblings, 2 replies; 4+ messages in thread
From: muhammad.nazim.amirul.nazle.asmade @ 2026-11-04  8:12 UTC (permalink / raw)
  To: netdev
  Cc: Maxime Chevallier, Andrew Lunn, David S . Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Alexandre Torgue,
	Rohan G Thomas, linux-stm32, linux-arm-kernel, linux-kernel

From: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>

Two fixes for the stmmac FPE implementation:

- Keep pmac_enabled true in DWMAC since the preemptive MAC is always
  on, enforce this in set_mm(), and only initialize it when FPE is
  actually supported
- Move fprq configuration to stmmac_fpe_configure_pmac() where it
  belongs

v3:
  - Rework stmmac_fpe_init(): gate the pmac_enabled initialization on
    stmmac_fpe_supported() and return early otherwise, so hardware
    without FPE (dma_cap.fpesel clear) no longer gets pmac_enabled set.
    This folds in the v2 "Add missing return in stmmac_fpe_init()" patch
    and fixes the condition that did not reach its intended effect, per
    Paolo Abeni / Sashiko. The separate patch 2/3 from v2 is dropped.
  - v2: https://lore.kernel.org/all/20260803032358.16282-1-muhammad.nazim.amirul.nazle.asmade@altera.com/

v2:
  - Drop u32_replace_bits() in the fprq patch; fprq_mask is not a
    compile-time constant and triggered a __bad_mask build error on x86.
    Keep the open-coded mask/shift update instead.

Nazim Amirul (2):
  net: stmmac: fpe: Enforce pmac_enabled in set_mm and keep it on at
    init
  net: stmmac: fpe: Move fprq configuration to
    stmmac_fpe_configure_pmac()

 .../ethernet/stmicro/stmmac/stmmac_ethtool.c  |  7 ++++
 .../net/ethernet/stmicro/stmmac/stmmac_fpe.c  | 37 ++++++++++++-------
 2 files changed, 30 insertions(+), 14 deletions(-)

-- 
2.43.7


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-10 20:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04  8:12 [PATCH net-next v3 0/2] net: stmmac: fpe: pmac and fprq fixes muhammad.nazim.amirul.nazle.asmade
2026-11-04  8:12 ` [PATCH net-next v3 1/2] net: stmmac: fpe: Enforce pmac_enabled in set_mm and keep it on at init muhammad.nazim.amirul.nazle.asmade
2026-11-10 20:10   ` Jakub Kicinski
2026-11-04  8:12 ` [PATCH net-next v3 2/2] net: stmmac: fpe: Move fprq configuration to stmmac_fpe_configure_pmac() muhammad.nazim.amirul.nazle.asmade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®