Linux SPI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] Add multi mode support for omap-mcspi
@ 2024-02-06 10:00 Louis Chauvet
  2024-02-06 10:00 ` [PATCH 1/2] Revert "spi: spi-omap2-mcspi.c: Toggle CS after each word" Louis Chauvet
  2024-02-06 10:00 ` [PATCH 2/2] spi: omap2-mcspi: Add support for MULTI-mode Louis Chauvet
  0 siblings, 2 replies; 9+ messages in thread
From: Louis Chauvet @ 2024-02-06 10:00 UTC (permalink / raw)
  To: Mark Brown
  Cc: linux-spi, linux-kernel, thomas.petazzoni, Miquel Raynal,
	yen-mei.goh, koon-kee.lie, Louis Chauvet

This series add the support for the omap-mcspi multi mode. It allow 
sending SPI message with a shorter delay between CS and the message.

One drawback of the multi-mode is that the CS is raised between each word, 
so it can only be used with messages containing 1 word transfers and 
asking for cs_change. Few devices, like FPGAs, may easly workaround this 
limitation.

The first patch removes the current implementation, which is working, but 
don't respect what is asked in the spi transfer (The CS is raised by the 
hardware regardless of cs_change state). No drivers or board file use this 
implementation upstream.

The second patch adds the implementation of the multi-mode, which respects 
what is asked in the SPI message.

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
---
Louis Chauvet (2):
      Revert "spi: spi-omap2-mcspi.c: Toggle CS after each word"
      spi: omap2-mcspi: Add support for MULTI-mode

 drivers/spi/spi-omap2-mcspi.c                 | 72 +++++++++++++++++++--------
 include/linux/platform_data/spi-omap2-mcspi.h |  3 --
 2 files changed, 51 insertions(+), 24 deletions(-)
---
base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
change-id: 20240126-spi-omap2-mcspi-multi-mode-e62f68b78ad3

Best regards,
-- 
Louis Chauvet <louis.chauvet@bootlin.com>


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

end of thread, other threads:[~2024-02-07 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 10:00 [PATCH 0/2] Add multi mode support for omap-mcspi Louis Chauvet
2024-02-06 10:00 ` [PATCH 1/2] Revert "spi: spi-omap2-mcspi.c: Toggle CS after each word" Louis Chauvet
2024-02-06 10:35   ` Mark Brown
2024-02-06 10:00 ` [PATCH 2/2] spi: omap2-mcspi: Add support for MULTI-mode Louis Chauvet
2024-02-06 10:56   ` Mark Brown
2024-02-07 15:25     ` Louis Chauvet
2024-02-07 15:46       ` Mark Brown
2024-02-07  1:54   ` kernel test robot
2024-02-07  9:19   ` kernel test robot

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