Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
mt76: mt7663s: fix resume failure
Browse files Browse the repository at this point in the history
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: a66cbdd ("mt76: mt7615: introduce mt7663s support")
Co-developed-by: YN Chen <[email protected]>
Signed-off-by: YN Chen <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
moore-bros authored and nbd168 committed Sep 24, 2020
1 parent 673d776 commit 8b7c6e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7615/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ static int mt7663s_suspend(struct device *dev)
return err;
}

sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);

mt76s_stop_txrx(&mdev->mt76);

return mt7615_mcu_set_fw_ctrl(mdev);
Expand Down

0 comments on commit 8b7c6e1

Please sign in to comment.