linux/drivers/net/ethernet/smsc
Sergey Shtylyov 5ef9b803a4 smsc911x: allow using IRQ0
The AlphaProject AP-SH4A-3A/AP-SH4AD-0A SH boards use IRQ0 for their SMSC
LAN911x Ethernet chip, so the networking on them must have been broken by
commit 965b2aa78f ("net/smsc911x: fix irq resource allocation failure")
which filtered out 0 as well as the negative error codes -- it was kinda
correct at the time, as platform_get_irq() could return 0 on of_irq_get()
failure and on the actual 0 in an IRQ resource.  This issue was fixed by
me (back in 2016!), so we should be able to fix this driver to allow IRQ0
usage again...

When merging this to the stable kernels, make sure you also merge commit
e330b9a6bb ("platform: don't return 0 from platform_get_irq[_byname]()
on error") -- that's my fix to platform_get_irq() for the DT platforms...

Fixes: 965b2aa78f ("net/smsc911x: fix irq resource allocation failure")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/656036e4-6387-38df-b8a7-6ba683b16e63@omp.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-05-03 16:57:33 -07:00
..
epic100.c ethernet: replace netdev->dev_addr 16bit writes 2021-10-14 09:22:27 -07:00
Kconfig make legacy ISA probe optional 2021-08-03 13:05:26 +01:00
Makefile
smc91c92_cs.c ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
smc91x.c ethernet: smc91x: use eth_hw_addr_set() 2021-10-19 12:41:48 +01:00
smc91x.h
smc911x.c ethernet: smc911x: fix indentation in get/set EEPROM 2022-02-01 19:59:03 -08:00
smc911x.h
smc9194.c smc9194: use eth_hw_addr_set() 2021-11-19 11:05:21 +00:00
smc9194.h
smsc911x.c smsc911x: allow using IRQ0 2022-05-03 16:57:33 -07:00
smsc911x.h
smsc9420.c ethernet: smsc: use eth_hw_addr_set() 2021-10-19 12:41:48 +01:00
smsc9420.h