summary'>refslogtreecommitdiffstats
'>
path: '>root//'>sys-kernel/boest-v5.0.15//'>raspberrypi//0143-lan78xx-disable-interrupts-for-PHY-irqs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v5.0.15/raspberrypi/0143-lan78xx-disable-interrupts-for-PHY-irqs.patch')
-rw-r--r--sys-kernel/boest-v5.0.15/raspberrypi/0143-lan78xx-disable-interrupts-for-PHY-irqs.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-kernel/boest-v5.0.15/raspberrypi/0143-lan78xx-disable-interrupts-for-PHY-irqs.patch b/sys-kernel/boest-v5.0.15/raspberrypi/0143-lan78xx-disable-interrupts-for-PHY-irqs.patch
new file mode 100644
index 00000000..d1b1157e
--- /dev/null
+++ b/sys-kernel/boest-v5.0.15/raspberrypi/0143-lan78xx-disable-interrupts-for-PHY-irqs.patch
@@ -0,0 +1,28 @@
+From d5291f00220947cffe429ef72f05b614d1333586 Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.org>
+Date: Wed, 14 Nov 2018 17:36:26 +0000
+Subject: [PATCH 143/194] lan78xx: disable interrupts for PHY irqs
+
+Signed-off-by: Phil Elwell <phil@raspberrypi.org>
+---
+ drivers/net/usb/lan78xx.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
+index 7c244775eb47..3636e2b170a6 100644
+--- a/drivers/net/usb/lan78xx.c
++++ b/drivers/net/usb/lan78xx.c
+@@ -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);