[PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup

Nicolai Buchwitz nb at tipi-net.de
Thu Dec 3 01:26:13 PST 2026


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 at tipi-net.de>

Regards
Nicolai





More information about the linux-arm-kernel mailing list