mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user