Files
openwrt-R7800-nss/package/qca-nss/qca-nss-gmac/patches/00-irq_of_parse_and_map-retcode.patch
Lucas Asvio e38c766dc7 package: add qca-nss support for k6.x
Before I can get to work a feed repository that work i have included
qca-nss source needed on this commit

Source author: SqTER-PL <r.napierala@asta-net.pl>
2025-08-04 18:52:30 +02:00

12 lines
347 B
Diff

--- a/ipq806x/nss_gmac_ctrl.c
+++ b/ipq806x/nss_gmac_ctrl.c
@@ -1024,7 +1024,7 @@ static int32_t nss_gmac_of_get_pdata(str
gmaccfg->phy_mii_type = of_get_phy_mode(np);
netdev->irq = irq_of_parse_and_map(np, 0);
- if (netdev->irq == NO_IRQ) {
+ if (netdev->irq <= 0) {
pr_err("%s: Can't map interrupt\n", np->name);
return -EFAULT;
}