Skip to content

Commit 94e35c3

Browse files
committed
drivers: eth: gmac: fix IRQ names following import of latest HAL
Previous SAM E70 HAL version was patched by commit 4dcfc87 ("Add missing interrupt number definitions") to add missing interrupt definitions for SAM GMAC Priority Queues. This has been fixed in the latest HAL by using a slightly different name. This patch updates the driver accordingly. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent d29876b commit 94e35c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/ethernet/eth_sam_gmac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,15 +1873,15 @@ static void eth0_irq_config(void)
18731873
irq_enable(GMAC_IRQn);
18741874

18751875
#if GMAC_PRIORITY_QUEUE_NO >= 1
1876-
IRQ_CONNECT(GMACQ1_IRQn, CONFIG_ETH_SAM_GMAC_IRQ_PRI, queue1_isr,
1876+
IRQ_CONNECT(GMAC_Q1_IRQn, CONFIG_ETH_SAM_GMAC_IRQ_PRI, queue1_isr,
18771877
DEVICE_GET(eth0_sam_gmac), 0);
1878-
irq_enable(GMACQ1_IRQn);
1878+
irq_enable(GMAC_Q1_IRQn);
18791879
#endif
18801880

18811881
#if GMAC_PRIORITY_QUEUE_NO == 2
1882-
IRQ_CONNECT(GMACQ2_IRQn, CONFIG_ETH_SAM_GMAC_IRQ_PRI, queue2_isr,
1882+
IRQ_CONNECT(GMAC_Q2_IRQn, CONFIG_ETH_SAM_GMAC_IRQ_PRI, queue2_isr,
18831883
DEVICE_GET(eth0_sam_gmac), 0);
1884-
irq_enable(GMACQ2_IRQn);
1884+
irq_enable(GMAC_Q2_IRQn);
18851885
#endif
18861886
}
18871887

0 commit comments

Comments
 (0)