Commit 0c896ece authored by Marek Vasut's avatar Marek Vasut Committed by Kalle Valo
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarAlexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240821183717.163235-1-marex@denx.de
parent b0dc7018
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);