mt76: mt76x02u: remove bogus stop on suspend
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 26 Apr 2019 07:58:40 +0000 (09:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 1 May 2019 11:03:59 +0000 (13:03 +0200)
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 <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/usb.c
drivers/net/wireless/mediatek/mt76/mt76x2/usb.c

index ee8d4b5..53ec7dc 100644 (file)
@@ -314,7 +314,6 @@ static int __maybe_unused mt76x0_suspend(struct usb_interface *usb_intf,
        struct mt76x02_dev *dev = usb_get_intfdata(usb_intf);
 
        mt76u_stop_queues(&dev->mt76);
-       mt76x0u_mac_stop(dev);
        clear_bit(MT76_STATE_MCU_RUNNING, &dev->mt76.state);
        mt76x0_chip_onoff(dev, false, false);
 
index d1bddd5..c55ad61 100644 (file)
@@ -108,7 +108,6 @@ static int __maybe_unused mt76x2u_suspend(struct usb_interface *intf,
        struct mt76x02_dev *dev = usb_get_intfdata(intf);
 
        mt76u_stop_queues(&dev->mt76);
-       mt76x2u_stop_hw(dev);
 
        return 0;
 }