All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: wilc1000: Keep slot powered on during suspend/resume
@ 2024-08-21 18:37 Marek Vasut
  2024-08-27  9:53 ` Alexis Lothoré
  0 siblings, 1 reply; 17+ messages in thread
From: Marek Vasut @ 2024-08-21 18:37 UTC (permalink / raw)
  To: linux-wireless
  Cc: Marek Vasut, Ajay Singh, Alexis Lothoré, Claudiu Beznea,
	Kalle Valo

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: Marek Vasut <marex@denx.de>
---
Cc: Ajay Singh <ajay.kathat@microchip.com>
Cc: Alexis Lothoré <alexis.lothore@bootlin.com>
Cc: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: Marek Vasut <marex@denx.de>
Cc: linux-wireless@vger.kernel.org
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c
index 683a35c682a8f..41122199d51eb 100644
--- a/drivers/net/wireless/microchip/wilc1000/sdio.c
+++ b/drivers/net/wireless/microchip/wilc1000/sdio.c
@@ -973,7 +973,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");
 
@@ -987,13 +986,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)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-09-06 18:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 18:37 [PATCH] wifi: wilc1000: Keep slot powered on during suspend/resume Marek Vasut
2024-08-27  9:53 ` Alexis Lothoré
2024-08-27 15:20   ` Marek Vasut
2024-08-28  7:42     ` Alexis Lothoré
2024-08-29  1:45       ` Ajay.Kathat
2024-08-29  2:45         ` Marek Vasut
2024-08-29  5:51           ` Ajay.Kathat
2024-08-29 15:38             ` Marek Vasut
2024-08-29 16:32               ` Kalle Valo
2024-08-29 22:23                 ` Marek Vasut
2024-09-02 16:32                   ` Kalle Valo
2024-09-02 16:43                     ` Marek Vasut
2024-09-05  7:27                       ` Kalle Valo
2024-09-06 18:23                         ` Marek Vasut
2024-08-31  5:22               ` Ajay.Kathat
2024-08-31 21:18                 ` Marek Vasut
2024-09-04 17:09                   ` Ajay.Kathat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.