Commit 98ca3178 authored by Marek Vasut's avatar Marek Vasut Committed by Kalle Valo
Browse files

wifi: wilc1000: Keep slot powered on during suspend/resume



The WILC3000 can suspend and enter low power state. According to local
measurements, the WILC3000 consumes the same amount of power if the slot
is powered up and WILC3000 is suspended, and if the WILC3000 is powered
off. Use the former option, keep the WILC3000 powered up as that allows
for things like WoWlan to work.

Note that this is tested on WILC3000 only, not on WILC1000 .

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Tested-by: default avatarAlexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240926195113.2823392-1-marex@denx.de
parent c8945c8c
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -969,7 +969,6 @@ static int wilc_sdio_suspend(struct device *dev)
{
	struct sdio_func *func = dev_to_sdio_func(dev);
	struct wilc *wilc = sdio_get_drvdata(func);
	int ret;

	dev_info(dev, "sdio suspend\n");

@@ -983,13 +982,7 @@ static int wilc_sdio_suspend(struct device *dev)

	wilc_sdio_disable_interrupt(wilc);

	ret = wilc_sdio_reset(wilc);
	if (ret) {
		dev_err(&func->dev, "Fail reset sdio\n");
		return ret;
	}

	return 0;
	return sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
}

static int wilc_sdio_resume(struct device *dev)