From b0bcdd66ccaaea207d59ddbf4080fb6b6ed765cf Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Fri, 3 Jul 2020 10:15:48 +0200 Subject: [PATCH] mt76: mt7615: acquire driver_own before configuring device for suspend Make sure to wake the device in mt7615_pci_suspend in order to properly configure device registers before suspend Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- mt7615/pci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mt7615/pci.c b/mt7615/pci.c index ba12f199..2328d78e 100644 --- a/mt7615/pci.c +++ b/mt7615/pci.c @@ -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) {