Skip to content

Commit 60629fb

Browse files
committed
mmc: sdhci-of-at91: card detect can be a wakeup source
A card event can wakeup the system. Warning: first wakeup with SDMMC CD source is not working, it has to be done with the wakeup button. This unexpected behavior has to be fixed. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
1 parent a16134b commit 60629fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-of-at91.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ static int sdhci_at91_probe(struct platform_device *pdev)
402402
if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
403403
sdhci_at91_set_force_card_detect(host);
404404

405+
device_init_wakeup(&pdev->dev, true);
406+
405407
pm_runtime_put_autosuspend(&pdev->dev);
406408

407409
return 0;

0 commit comments

Comments
 (0)