diff options
| author | Marek Vasut <[email protected]> | 2024-08-21 18:36:54 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-09-03 18:31:01 +0000 |
| commit | 0c896eceb5f348b5e314f5cd5faad966f09a56ff (patch) | |
| tree | a3f416423c60e63b64150c7e47630f1462df1d56 | |
| parent | wifi: wilc1000: Do not operate uninitialized hardware during suspend/resume (diff) | |
| download | kernel-0c896eceb5f348b5e314f5cd5faad966f09a56ff.tar.gz kernel-0c896eceb5f348b5e314f5cd5faad966f09a56ff.zip | |
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 <[email protected]>
Reviewed-by: Alexis Lothoré <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://patch.msgid.link/[email protected]
| -rw-r--r-- | drivers/net/wireless/microchip/wilc1000/sdio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c index 7999aeb76901..683a35c682a8 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); |
