wilc1000: add reset/terminate/repeat command support for SPI bus
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 16 Sep 2021 16:49:19 +0000 (16:49 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:08:16 +0000 (18:08 +0300)
commit1bcc0879c963770c90bc07d9aa5d0d50dda925f3
tree12e8c415d2771138f3b539937bea35437ae156cf
parent5bb9de8bcb18c38ea089a287b77944ef8ee71abd
wilc1000: add reset/terminate/repeat command support for SPI bus

Add reset/terminate/repeat command for SPI module. In case of SPI commands
failure, the host should issue a RESET command to WILC chip to recover
from any temporary bus error.
For now, the new command support is added and later the SPI read/write
API's would be modified to make use of these commands for retry mechanism

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-6-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/spi.c