linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/22] spi: sh-msiof: Transfer size improvements and I2S reuse
@ 2025-05-02 10:13 Geert Uytterhoeven
  2025-05-02 10:13 ` [PATCH 01/22] spi: sh-msiof: Drop comma after OF match table sentinel Geert Uytterhoeven
                   ` (21 more replies)
  0 siblings, 22 replies; 25+ messages in thread
From: Geert Uytterhoeven @ 2025-05-02 10:13 UTC (permalink / raw)
  To: Mark Brown, Kuninori Morimoto, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Koji Matsuoka
  Cc: linux-spi, linux-sound, linux-renesas-soc, Geert Uytterhoeven

	Hi all,

This patch series (A) improves single transfer sizes in the MSIOF
driver, using two methods:
  - By increasing the assumed FIFO sizes, impacting both PIO and DMA
    transfers,
  - By using two groups, impacting DMA transfers,
and (B) lets the recently-introduced MSIOF I2S drive reuse the SPI
driver's register definitions.  All of this is covered with a thick
sauce of fixes for (harmless) bugs, cleanups, and refactorings.

Note that the driver uses the limitations as specified in the hardware
documentation.  For discovering the actual FIFO sizes, I wrote some
crude test code that can be found at [1].

This is based on spi/for-next and sound-asoc/for-next, and has been
tested on a variery of R-Car SoCs.

Thanks for your comments!

[1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/msiof-fifo

Geert Uytterhoeven (22):
  spi: sh-msiof: Drop comma after OF match table sentinel
  spi: sh-msiof: Remove unneeded compatible values
  spi: sh-msiof: Fix maximum DMA transfer size
  spi: sh-msiof: Complete using dev in sh_msiof_spi_probe()
  spi: sh-msiof: Use bool for boolean flags
  spi: sh-msiof: Make words/bits unsigned in sh_msiof_spi_txrx_once()
  spi: sh-msiof: Make words/fs unsigned in FIFO helpers
  spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion
  spi: sh-msiof: SITMDR2 and SIRMDR2 bitfield conversion
  spi: sh-msiof: SITSCR/SIRSCR bitfield conversion
  spi: sh-msiof: SICTR bitfield conversion
  spi: sh-msiof: SIFCTR bitfield conversion
  spi: sh-msiof: Correct SIMDR2_GRPMASK
  spi: sh-msiof: Add core support for dual-group transfers
  spi: sh-msiof: Correct RX FIFO size for R-Car Gen2
  spi: sh-msiof: Correct RX FIFO size for R-Car Gen3
  spi: sh-msiof: Increase TX FIFO size for R-Car V4H/V4M
  spi: sh-msiof: Simplify BRG's Division Ratio
  spi: sh-msiof: Double maximum DMA transfer size using two groups
  spi: sh-msiof: Document frame start sync pulse mode
  spi: sh-msiof: Move register definitions to <linux/spi/sh_msiof.h>
  ASoC: renesas: msiof: Convert to <linux/spi/sh_msiof.h>

 drivers/spi/spi-sh-msiof.c     | 358 +++++++++++++--------------------
 include/linux/spi/sh_msiof.h   | 122 +++++++++++
 sound/soc/renesas/rcar/msiof.c |  94 +++------
 3 files changed, 285 insertions(+), 289 deletions(-)

-- 
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2025-05-07  2:34 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 10:13 [PATCH 00/22] spi: sh-msiof: Transfer size improvements and I2S reuse Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 01/22] spi: sh-msiof: Drop comma after OF match table sentinel Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 02/22] spi: sh-msiof: Remove unneeded compatible values Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 03/22] spi: sh-msiof: Fix maximum DMA transfer size Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 04/22] spi: sh-msiof: Complete using dev in sh_msiof_spi_probe() Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 05/22] spi: sh-msiof: Use bool for boolean flags Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 06/22] spi: sh-msiof: Make words/bits unsigned in sh_msiof_spi_txrx_once() Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 07/22] spi: sh-msiof: Make words/fs unsigned in FIFO helpers Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 08/22] spi: sh-msiof: SITMDR1/SIRMDR1 bitfield conversion Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 09/22] spi: sh-msiof: SITMDR2 and SIRMDR2 " Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 10/22] spi: sh-msiof: SITSCR/SIRSCR " Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 11/22] spi: sh-msiof: SICTR " Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 12/22] spi: sh-msiof: SIFCTR " Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 13/22] spi: sh-msiof: Correct SIMDR2_GRPMASK Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 14/22] spi: sh-msiof: Add core support for dual-group transfers Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 15/22] spi: sh-msiof: Correct RX FIFO size for R-Car Gen2 Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 16/22] spi: sh-msiof: Correct RX FIFO size for R-Car Gen3 Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 17/22] spi: sh-msiof: Increase TX FIFO size for R-Car V4H/V4M Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 18/22] spi: sh-msiof: Simplify BRG's Division Ratio Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 19/22] spi: sh-msiof: Double maximum DMA transfer size using two groups Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 20/22] spi: sh-msiof: Document frame start sync pulse mode Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 21/22] spi: sh-msiof: Move register definitions to <linux/spi/sh_msiof.h> Geert Uytterhoeven
2025-05-02 10:13 ` [PATCH 22/22] ASoC: renesas: msiof: Convert " Geert Uytterhoeven
2025-05-05  6:51   ` Geert Uytterhoeven
2025-05-07  2:34   ` Kuninori Morimoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).