]> www.infradead.org Git - users/willy/xarray.git/commit
wifi: wilc1000: Do not operate uninitialized hardware during suspend/resume
authorMarek Vasut <marex@denx.de>
Wed, 21 Aug 2024 18:36:03 +0000 (20:36 +0200)
committerKalle Valo <kvalo@kernel.org>
Tue, 3 Sep 2024 18:30:18 +0000 (21:30 +0300)
commitb0dc7018477e8fbb7e40c908c29cf663d06b17a7
treefb8d78a0e2b84b3464067beef9e202885c2d04bb
parentd38792292be7113e73ba77383ed687ec87e8f7b5
wifi: wilc1000: Do not operate uninitialized hardware during suspend/resume

In case the hardware is not initialized, do not operate it during
suspend/resume cycle, the hardware is already off so there is no
reason to access it.

In fact, wilc_sdio_enable_interrupt() in the resume callback does
interfere with the same call when initializing the hardware after
resume and makes such initialization after resume fail. Fix this
by not operating uninitialized hardware during suspend/resume.

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/20240821183639.163187-1-marex@denx.de
drivers/net/wireless/microchip/wilc1000/sdio.c