From 6bc13d0a34ad3fca0fe0cfc513b055e4efe97ee2 Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Fri, 11 Feb 2022 19:14:59 +0100
Subject: [PATCH 164/166] net: usb: lan78xx: Use generic_handle_irq_safe().

Instead of manually disabling interrupts before invoking use
generic_handle_irq_safe() which can be invoked with enabled and disabled
interrupts.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20220211181500.1856198-7-bigeasy@linutronix.de
(cherry picked from commit dda02de93749e2952c0a0b5e5a6dfc52b5365c65)
Signed-off-by: Clark Williams <williams@redhat.com>
---
 drivers/net/usb/lan78xx.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: linux-5.15.32-rt39/drivers/net/usb/lan78xx.c
===================================================================
@ linux-5.15.32-rt39/drivers/net/usb/lan78xx.c:1370 @ static void lan78xx_status(struct lan78x
 		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) {
-			local_irq_disable();
-			generic_handle_irq(dev->domain_data.phyirq);
-			local_irq_enable();
-		}
+		if (dev->domain_data.phyirq > 0)
+			generic_handle_irq_safe(dev->domain_data.phyirq);
 	} else {
 		netdev_warn(dev->net,
 			    "unexpected interrupt: 0x%08x\n", intdata);