Skip to content

Commit

Permalink
mt76: mt7615: acquire driver_own before configuring device for suspend
Browse files Browse the repository at this point in the history
Make sure to wake the device in mt7615_pci_suspend in order to properly
configure device registers before suspend

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Lorenzo Bianconi authored and Felix Fietkau committed Jul 21, 2020
1 parent 0441424 commit 3d0558c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7615/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ static int mt7615_pci_suspend(struct pci_dev *pdev, pm_message_t state)
bool hif_suspend;
int i, err;

err = mt7615_pm_wake(dev);
if (err < 0)
return err;

hif_suspend = !test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) &&
mt7615_firmware_offload(dev);
if (hif_suspend) {
Expand Down

0 comments on commit 3d0558c

Please sign in to comment.