Skip to content

Commit 1fb869a

Browse files
Stanislaw Gruszkanbd168
authored andcommitted
mt76: mt76x02u: remove bogus stop on suspend
On suspend mac80211 .stop callback is called before .suspend(), so hw mac is already stopped and we do not have to do this again. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent c92b526 commit 1fb869a

File tree

2 files changed

+0
-2
lines changed
  • drivers/net/wireless/mediatek/mt76

2 files changed

+0
-2
lines changed

drivers/net/wireless/mediatek/mt76/mt76x0/usb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ static int __maybe_unused mt76x0_suspend(struct usb_interface *usb_intf,
314314
struct mt76x02_dev *dev = usb_get_intfdata(usb_intf);
315315

316316
mt76u_stop_queues(&dev->mt76);
317-
mt76x0u_mac_stop(dev);
318317
clear_bit(MT76_STATE_MCU_RUNNING, &dev->mt76.state);
319318
mt76x0_chip_onoff(dev, false, false);
320319

drivers/net/wireless/mediatek/mt76/mt76x2/usb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ static int __maybe_unused mt76x2u_suspend(struct usb_interface *intf,
108108
struct mt76x02_dev *dev = usb_get_intfdata(intf);
109109

110110
mt76u_stop_queues(&dev->mt76);
111-
mt76x2u_stop_hw(dev);
112111

113112
return 0;
114113
}

0 commit comments

Comments
 (0)