* [PATCH] wifi: wilc1000: Re-enable RTC clock on resume
@ 2024-08-21 18:36 Marek Vasut
2024-08-27 9:10 ` Alexis Lothoré
2024-09-03 18:31 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2024-08-21 18:36 UTC (permalink / raw)
To: linux-wireless
Cc: Marek Vasut, Ajay Singh, Alexis Lothoré, Claudiu Beznea,
Kalle Valo
The wilc_sdio_suspend() does clk_disable_unprepare() on rtc_clk clock,
make sure wilc_sdio_resume() does matching clk_prepare_enable(), else
any suspend/resume cycle leads to clock disable/enable imbalance. Fix
the imbalance.
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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c
index 7999aeb76901f..683a35c682a8f 100644
--- a/drivers/net/wireless/microchip/wilc1000/sdio.c
+++ b/drivers/net/wireless/microchip/wilc1000/sdio.c
@@ -1006,6 +1006,9 @@ static int wilc_sdio_resume(struct device *dev)
if (!wilc->initialized)
return 0;
+ if (!IS_ERR(wilc->rtc_clk))
+ clk_prepare_enable(wilc->rtc_clk);
+
wilc_sdio_init(wilc, true);
wilc_sdio_enable_interrupt(wilc);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wifi: wilc1000: Re-enable RTC clock on resume
2024-08-21 18:36 [PATCH] wifi: wilc1000: Re-enable RTC clock on resume Marek Vasut
@ 2024-08-27 9:10 ` Alexis Lothoré
2024-09-03 18:31 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Alexis Lothoré @ 2024-08-27 9:10 UTC (permalink / raw)
To: Marek Vasut, linux-wireless; +Cc: Ajay Singh, Claudiu Beznea, Kalle Valo
On 8/21/24 20:36, Marek Vasut wrote:
> The wilc_sdio_suspend() does clk_disable_unprepare() on rtc_clk clock,
> make sure wilc_sdio_resume() does matching clk_prepare_enable(), else
> any suspend/resume cycle leads to clock disable/enable imbalance. Fix
> the imbalance.
>
> 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
Reviewed-by: Alexis Lothoré <alexis.lothore@bootlin.com>
--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] wifi: wilc1000: Re-enable RTC clock on resume
2024-08-21 18:36 [PATCH] wifi: wilc1000: Re-enable RTC clock on resume Marek Vasut
2024-08-27 9:10 ` Alexis Lothoré
@ 2024-09-03 18:31 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2024-09-03 18:31 UTC (permalink / raw)
To: Marek Vasut
Cc: linux-wireless, Marek Vasut, Ajay Singh, Alexis Lothoré,
Claudiu Beznea
Marek Vasut <marex@denx.de> wrote:
> The wilc_sdio_suspend() does clk_disable_unprepare() on rtc_clk clock,
> make sure wilc_sdio_resume() does matching clk_prepare_enable(), else
> any suspend/resume cycle leads to clock disable/enable imbalance. Fix
> the imbalance.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Reviewed-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Patch applied to wireless-next.git, thanks.
0c896eceb5f3 wifi: wilc1000: Re-enable RTC clock on resume
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240821183717.163235-1-marex@denx.de/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
https://docs.kernel.org/process/submitting-patches.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-03 18:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 18:36 [PATCH] wifi: wilc1000: Re-enable RTC clock on resume Marek Vasut
2024-08-27 9:10 ` Alexis Lothoré
2024-09-03 18:31 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).