Commit 160231e3 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Jakub Kicinski

net: airoha: Start all qdma NAPIs in airoha_probe()

This is a preliminary patch to support multi-QDMA controllers.
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/b51cf69c94d8cbc81e0a0b35587f024d01e6d9c0.1722522582.git.lorenzo@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e618447c
...@@ -2121,9 +2121,8 @@ static void airoha_hw_cleanup(struct airoha_qdma *qdma) ...@@ -2121,9 +2121,8 @@ static void airoha_hw_cleanup(struct airoha_qdma *qdma)
} }
} }
static void airoha_qdma_start_napi(struct airoha_eth *eth) static void airoha_qdma_start_napi(struct airoha_qdma *qdma)
{ {
struct airoha_qdma *qdma = &eth->qdma[0];
int i; int i;
for (i = 0; i < ARRAY_SIZE(qdma->q_tx_irq); i++) for (i = 0; i < ARRAY_SIZE(qdma->q_tx_irq); i++)
...@@ -2692,7 +2691,9 @@ static int airoha_probe(struct platform_device *pdev) ...@@ -2692,7 +2691,9 @@ static int airoha_probe(struct platform_device *pdev)
if (err) if (err)
goto error; goto error;
airoha_qdma_start_napi(eth); for (i = 0; i < ARRAY_SIZE(eth->qdma); i++)
airoha_qdma_start_napi(&eth->qdma[i]);
for_each_child_of_node(pdev->dev.of_node, np) { for_each_child_of_node(pdev->dev.of_node, np) {
if (!of_device_is_compatible(np, "airoha,eth-mac")) if (!of_device_is_compatible(np, "airoha,eth-mac"))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment