]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7663s: fix resume failure
authorSean Wang <sean.wang@mediatek.com>
Thu, 13 Aug 2020 21:49:47 +0000 (05:49 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:15 +0000 (18:10 +0200)
commitecf94a3d8c4df955ddc9e6e2da3bd3cd53e65b75
tree792c60e50608e3c347da19b1e5e946936f28e11a
parentc86a6029263972e983eb2f9d9b001f7488c50d52
mt76: mt7663s: fix resume failure

MT7663s have to rely on MMC_PM_KEEP_POWER in pm_flags for to avoid SDIO
power is being shut off.

To fix sdio access failure like "mt7663s mmc1:0001:1: sdio write failed:
-22" for the first sdio command to access the bus in the resume handler.

Fixes: cff5543a5fac ("mt76: mt7615: introduce mt7663s support")
Co-developed-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/sdio.c