Skip to content
Commit 24f018f4 authored by Steve Wilkins's avatar Steve Wilkins Committed by harish h
Browse files

spi: microchip-core: defer asserting chip select until just before write to TX FIFO

commit 723553f79df3c0db94d1c6948237017c315e80f3 from
https://github.com/linux4microchip/linux.git linux-6.6-mchp+fpga

Setting up many of the registers for a new SPI transfer requires the
SPI controller to be disabled after set_cs() has been called to assert
the chip select line. However, disabling the controller results in the
SCLK and MOSI output pins being tristate, which can cause clock
transitions to be seen by a slave device whilst SS is active. To fix
this, the CS is only set to inactive inline, whilst setting it active
is deferred until all registers are set up and the any controller
disables have been completed.

Fixes: 9ac8d176

 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: default avatarSteve Wilkins <steve.wilkins@raymarine.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarharish h <harish.h@windriver.com>
parent 043b5fbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment