diff options
| author | Alexis Lothoré <alexis.lothore@bootlin.com> | 2024-06-13 17:06:44 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2024-06-18 13:23:16 +0300 |
| commit | 1e9e258d9fb5c46dbf78f1baf06ac3836a44f2fa (patch) | |
| tree | ed8532c5df77af40b326b05e8fd9715f704fb3df /drivers/net/wireless/microchip/wilc1000/sdio.c | |
| parent | a814112e9545b873bcd82b2aafb6e88a82e6949f (diff) | |
| download | linux-1e9e258d9fb5c46dbf78f1baf06ac3836a44f2fa.tar.xz | |
wifi: wilc1000: remove suspend/resume from cfg80211 part
WILC1000 suspend/resume implementation is currently composed of two parts:
suspend/resume ops implemented in cfg80211 ops, which merely sets a
flag, and suspend/resume ops in sdio/spi driver which, based on this flag,
execute or not the suspend/resume mechanism. This dual set of ops is not
really needed , so keep only the sdio part to implement suspend/resume.
While doing so, remove the now unused suspend_event flag.
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240613-wilc_suspend-v1-5-c2f766d0988c@bootlin.com
Diffstat (limited to 'drivers/net/wireless/microchip/wilc1000/sdio.c')
| -rw-r--r-- | drivers/net/wireless/microchip/wilc1000/sdio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c index 21398a3c600b..4e7014670945 100644 --- a/drivers/net/wireless/microchip/wilc1000/sdio.c +++ b/drivers/net/wireless/microchip/wilc1000/sdio.c @@ -980,8 +980,7 @@ static int wilc_sdio_suspend(struct device *dev) if (!IS_ERR(wilc->rtc_clk)) clk_disable_unprepare(wilc->rtc_clk); - if (wilc->suspend_event) - host_sleep_notify(wilc); + host_sleep_notify(wilc); ret = wilc_sdio_reset(wilc); if (ret) { @@ -1000,8 +999,7 @@ static int wilc_sdio_resume(struct device *dev) dev_info(dev, "sdio resume\n"); wilc_sdio_init(wilc, true); - if (wilc->suspend_event) - host_wakeup_notify(wilc); + host_wakeup_notify(wilc); return 0; } |
