Skip to content

Commit ec12151

Browse files
moore-brosgregkh
authored andcommitted
Bluetooth: btmtksdio: fix resume failure
[ Upstream commit 561ae1d ] btmtksdio have to rely on MMC_PM_KEEP_POWER in pm_flags to avoid that SDIO power is being shut off during the device is in suspend. That fixes the SDIO command fails to access the bus after the device is resumed. Fixes: 7f3c563 ("Bluetooth: btmtksdio: Add runtime PM support to SDIO based Bluetooth") Co-developed-by: Mark-yw Chen <mark-yw.chen@mediatek.com> Signed-off-by: Mark-yw Chen <mark-yw.chen@mediatek.com> Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2a7edcb commit ec12151

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/bluetooth/btmtksdio.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,8 @@ static int btmtksdio_runtime_suspend(struct device *dev)
10421042
if (!bdev)
10431043
return 0;
10441044

1045+
sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
1046+
10451047
sdio_claim_host(bdev->func);
10461048

10471049
sdio_writel(bdev->func, C_FW_OWN_REQ_SET, MTK_REG_CHLPCR, &err);

0 commit comments

Comments
 (0)