Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 740b7a44 authored by Kevin Liu's avatar Kevin Liu Committed by Chris Ball
Browse files

mmc: sdhci-pxav3: add IRQ wake up support



[cjb: The MMP3 architecture requires a registered interrupt to retire wfi
when waking from suspend.]

Signed-off-by: default avatarJialing Fu <jlfu@marvell.com>
Signed-off-by: default avatarKevin Liu <kliu5@marvell.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent ad080d79
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -311,6 +311,13 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)


	platform_set_drvdata(pdev, host);
	platform_set_drvdata(pdev, host);


	if (pdata->pm_caps & MMC_PM_KEEP_POWER) {
		device_init_wakeup(&pdev->dev, 1);
		host->mmc->pm_flags |= MMC_PM_WAKE_SDIO_IRQ;
	} else {
		device_init_wakeup(&pdev->dev, 0);
	}

	return 0;
	return 0;


err_add_host:
err_add_host: