mt76: mt7921: fix suspend/resume sequence
authorSean Wang <sean.wang@mediatek.com>
Fri, 19 Feb 2021 17:28:44 +0000 (18:28 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:01:20 +0000 (00:01 +0200)
commit5e30931494b4940ba74fa5796ca0b6d7e4c84e88
tree76de57514ed02c79addc784b22a0eac1d451be88
parent7715a1d54bdf47f89194b0a088e07dcd76820f51
mt76: mt7921: fix suspend/resume sequence

Any pcie access should happen in pci D0 state and we should give ownership
back to the device at the end of the suspend procedure.

Fixes: 1d8efc741df80 ("mt76: mt7921: introduce Runtime PM support")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c