1 From d313d16bbaea0f11a2e98f04a6c678b43c208915 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 26 Feb 2021 14:20:38 +0100
4 Subject: [PATCH] net: broadcom: bcm4908_enet: enable RX after processing
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 When receiving a lot of packets hardware may run out of free
11 descriptiors and stop RX ring. Enable it every time after handling
14 Fixes: 4feffeadbcb2 ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
17 Link: https://lore.kernel.org/r/20210226132038.29849-1-zajec5@gmail.com
18 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
20 drivers/net/ethernet/broadcom/bcm4908_enet.c | 3 +++
21 1 file changed, 3 insertions(+)
23 --- a/drivers/net/ethernet/broadcom/bcm4908_enet.c
24 +++ b/drivers/net/ethernet/broadcom/bcm4908_enet.c
25 @@ -592,6 +592,9 @@ static int bcm4908_enet_poll(struct napi
26 bcm4908_enet_intrs_on(enet);
29 + /* Hardware could disable ring if it run out of descriptors */
30 + bcm4908_enet_dma_rx_ring_enable(enet, &enet->rx_ring);