public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/4] spi: a3700: Add improvements and full-duplex transfers
@ 2018-01-17 16:15 Maxime Chevallier
  2018-01-17 16:15 ` [PATCH 1/4] spi: a3700: Clear DATA_OUT when performing a read Maxime Chevallier
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Maxime Chevallier @ 2018-01-17 16:15 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset adds some improvements on the existing Armada 3700 SPI
driver, the biggest being adding support for full-duplex transfers.

The first patch fixes an undocumented (to my knowledge, I might have
missed something) behaviour where some of the content of the last
write transfer is shifted out during a read half-duplex operation.

The second one sets the correct limits on the SPI max and min
frequencies, based on the source clock rate.

The last 2 patches enable full-duplex transfers. On this controller,
full-duplex transfers cannot use the hardware FIFOs and have to be
performed either 1 or 4 bytes at a time. Because this is more
CPU intensive, and a bit slower than FIFO mode, we only use the
full-duplex way of transferring data when necessary.

Maxime Chevallier (4):
  spi: a3700: Clear DATA_OUT when performing a read
  spi: a3700: Set frequency limits at startup
  spi: a3700: Allow to enable or disable FIFO mode
  spi: a3700: Add full-duplex support

 drivers/spi/spi-armada-3700.c | 106 ++++++++++++++++++++++++++++++++++++------
 1 file changed, 91 insertions(+), 15 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-18 11:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17 16:15 [PATCH 0/4] spi: a3700: Add improvements and full-duplex transfers Maxime Chevallier
2018-01-17 16:15 ` [PATCH 1/4] spi: a3700: Clear DATA_OUT when performing a read Maxime Chevallier
2018-01-18 11:24   ` Applied "spi: a3700: Clear DATA_OUT when performing a read" to the spi tree Mark Brown
2018-01-17 16:15 ` [PATCH 2/4] spi: a3700: Set frequency limits at startup Maxime Chevallier
2018-01-18 11:23   ` Applied "spi: a3700: Set frequency limits at startup" to the spi tree Mark Brown
2018-01-17 16:15 ` [PATCH 3/4] spi: a3700: Allow to enable or disable FIFO mode Maxime Chevallier
2018-01-18 11:23   ` Applied "spi: a3700: Allow to enable or disable FIFO mode" to the spi tree Mark Brown
2018-01-17 16:15 ` [PATCH 4/4] spi: a3700: Add full-duplex support Maxime Chevallier
2018-01-18 11:23   ` Applied "spi: a3700: Add full-duplex support" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox