mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
lan78xx: disable interrupts for PHY irqs
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
This commit is contained in:
@@ -1274,8 +1274,12 @@ static void lan78xx_status(struct lan78xx_net *dev, struct urb *urb)
|
||||
netif_dbg(dev, link, dev->net, "PHY INTR: 0x%08x\n", intdata);
|
||||
lan78xx_defer_kevent(dev, EVENT_LINK_RESET);
|
||||
|
||||
if (dev->domain_data.phyirq > 0)
|
||||
if (dev->domain_data.phyirq > 0) {
|
||||
unsigned long flags;
|
||||
local_irq_save(flags);
|
||||
generic_handle_irq(dev->domain_data.phyirq);
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
} else
|
||||
netdev_warn(dev->net,
|
||||
"unexpected interrupt: 0x%08x\n", intdata);
|
||||
|
||||
Reference in New Issue
Block a user