]> git.baikalelectronics.ru Git - kernel.git/commit
wilc1000: use correct write command sequence in wilc_spi_sync_ext()
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 16 Sep 2021 16:49:22 +0000 (16:49 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:08:17 +0000 (18:08 +0300)
commitf659c853e5c187af71abe67b4bd57e2f1a8df4a2
tree7bbbe61e9c3829048704bf7874bce6aee89908da
parentfbd84ef382f821f42ccfcbb2bbafa3efa0c2137b
wilc1000: use correct write command sequence in wilc_spi_sync_ext()

Instead of using double read for the same register, use the write register
command after the read command.
The correct sequence is to use the read value in write command instead of
reading the same register again.

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