Re: [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup
From: Nicolai Buchwitz
Date: Thu Dec 03 2026 - 04:26:30 EST
On 3.12.2026 10:05, Maxime Chevallier wrote:
[...]
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
index 613199da57c1..5a660d22b219 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
@@ -562,6 +562,12 @@ static void sun8i_dwmac_dma_operation_mode_rx(struct stmmac_priv *priv,
else if (mode < 128)
v |= EMAC_RX_TH_128;
}
+
+ v &= ~(EMAC_RX_FLOW_CTL_TH_ACT | EMAC_RX_FLOW_CTL_TH_DEACT);
+ v |= EMAC_RX_FIFO_FLOW_CTL |
This bit is now always set. Is that fine with TX pause off?
yes it's fine, I've tested that. As long as TX_FLOW_CTL_EN is clear
in TX_FLOW_CTL, we don't emit pause frames so we're all good :)
Thanks for the clarification!
[...]
Reviewed-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Regards
Nicolai