wifi: wilc1000: add SPI commands retry mechanism
authorAmisha Patel <amisha.patel@microchip.com>
Mon, 24 Jul 2023 16:40:00 +0000 (16:40 +0000)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Aug 2023 14:48:05 +0000 (17:48 +0300)
commit6fd879f9783bdbaea758681b9d4e2e7c306293fd
tree2b05eaf66c741c2c4efff16cf6b07c5edf8ff113
parent11958528161731c58e105b501ed60b83a91ea941
wifi: wilc1000: add SPI commands retry mechanism

In some situations like, chip wake-up with powersave enabled, SPI
commands are failing temporarily. Reissuing commands after reset helps
to overcome the failure. So, add the retry limit and reset command
sequence API for read/write SPI commands.

Signed-off-by: Amisha Patel <amisha.patel@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230724163955.4583-1-amisha.patel@microchip.com
drivers/net/wireless/microchip/wilc1000/spi.c