Skip to contentSkip to conversation

r8169:Disable interrupts.

PATCH In review Corcodel Marian 2 participants 2 messages Aug 22, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8169:Disable interrupts.

Disable interrupts when close the interface.

drivers/net/ethernet/realtek/r8169.c +1 -0
index 6cd7226..ea461fe 100644
@@ -7548,6 +7548,7 @@ static int rtl8169_close(struct net_device *dev)
 
 	/* Update counters before going down */
 	rtl8169_update_counters(dev);
+	rtl8169_irq_mask_and_ack(tp);
 
 	rtl_lock_work(tp);
 	clear_bit(RTL_FLAG_TASK_ENABLED, tp->wk.flags);
Signature · 1 line
2.1.4
#1 lore raw

Corcodel Marian <[email protected]> :

Quoted 10 lines

Disable interrupts when close the interface.

drivers/net/ethernet/realtek/r8169.c +0 -0
index 6cd7226..ea461fe 100644

drivers/net/ethernet/realtek/r8169.c static int rtl8169_close(struct net_device *dev) · line 7551

Quoted 4 lines
drivers/net/ethernet/realtek/r8169.c +1 -0
@@ -7548,6 +7548,7 @@ static int rtl8169_close(struct net_device *dev)
 
 	/* Update counters before going down */
 	rtl8169_update_counters(dev);
+	rtl8169_irq_mask_and_ack(tp);

It's already called through
- rtl8169_close
- rtl8169_down

Signature · 1 line
Ueimor