Skip to content

Commit 160231e

Browse files
LorenzoBianconikuba-moo
authored andcommitted
net: airoha: Start all qdma NAPIs in airoha_probe()
This is a preliminary patch to support multi-QDMA controllers. Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/b51cf69c94d8cbc81e0a0b35587f024d01e6d9c0.1722522582.git.lorenzo@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e618447 commit 160231e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/net/ethernet/mediatek/airoha_eth.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,9 +2121,8 @@ static void airoha_hw_cleanup(struct airoha_qdma *qdma)
21212121
}
21222122
}
21232123

2124-
static void airoha_qdma_start_napi(struct airoha_eth *eth)
2124+
static void airoha_qdma_start_napi(struct airoha_qdma *qdma)
21252125
{
2126-
struct airoha_qdma *qdma = &eth->qdma[0];
21272126
int i;
21282127

21292128
for (i = 0; i < ARRAY_SIZE(qdma->q_tx_irq); i++)
@@ -2692,7 +2691,9 @@ static int airoha_probe(struct platform_device *pdev)
26922691
if (err)
26932692
goto error;
26942693

2695-
airoha_qdma_start_napi(eth);
2694+
for (i = 0; i < ARRAY_SIZE(eth->qdma); i++)
2695+
airoha_qdma_start_napi(&eth->qdma[i]);
2696+
26962697
for_each_child_of_node(pdev->dev.of_node, np) {
26972698
if (!of_device_is_compatible(np, "airoha,eth-mac"))
26982699
continue;

0 commit comments

Comments
 (0)