wilc1000: handle read failure issue for clockless registers
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 16 Sep 2021 16:49:20 +0000 (16:49 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:08:16 +0000 (18:08 +0300)
commitc2dcb4766bcb1e3622d7579ee9d57f28dc2c2f2e
tree18ce6daefbc5af56d5cd8b309fbe37cc1429798d
parent1bcc0879c963770c90bc07d9aa5d0d50dda925f3
wilc1000: handle read failure issue for clockless registers

For SPI bus, the register read fails after read/write to the clockless
register during chip wakeup sequence. Add workaround to send CMD_RESET
command during chip wake-up sequence to overcome the issue.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210916164902.74629-7-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/sdio.c
drivers/net/wireless/microchip/wilc1000/spi.c
drivers/net/wireless/microchip/wilc1000/wlan.c
drivers/net/wireless/microchip/wilc1000/wlan.h