wifi: wilc1000: Re-enable RTC clock on resume

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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240821183717.163235-1-marex@denx.de
This commit is contained in:
Marek Vasut
2024-08-21 20:36:54 +02:00
committed by Kalle Valo
parent b0dc701847
commit 0c896eceb5

View File

@@ -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);