Linux userland API discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] spi: spidev: Allow userspace to request DTR transfers
@ 2026-11-30  5:49 Cheng Ming Lin
  2026-11-30  5:49 ` [PATCH 1/2] " Cheng Ming Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cheng Ming Lin @ 2026-11-30  5:49 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi, linux-api, Miquel Raynal, alvinzhou

The SPI core can perform Double Transfer Rate transfers through
spi_transfer.dtr_mode on controllers advertising dtr_caps, but there
is currently no way for userspace to request them through spidev.

The first patch turns the last padding byte of struct spi_ioc_transfer
into a flags field and adds SPI_IOC_XFER_DTR to set dtr_mode on the
corresponding transfer. The struct size and layout are unchanged.

The second patch adds a matching -x/--dtr option to spidev_test.

Cheng Ming Lin (2):
  spi: spidev: Allow userspace to request DTR transfers
  spi: spidev_test: Add an option to request DTR transfers

 drivers/spi/spidev.c            | 12 +++++++++++-
 include/uapi/linux/spi/spidev.h |  9 ++++++++-
 tools/spi/spidev_test.c         | 13 +++++++++++--
 3 files changed, 30 insertions(+), 4 deletions(-)


base-commit: 543bc7b4337302ae75119059bdeff6df8eb34b56
-- 
2.25.1


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

end of thread, other threads:[~2026-11-30  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  5:49 [PATCH 0/2] spi: spidev: Allow userspace to request DTR transfers Cheng Ming Lin
2026-11-30  5:49 ` [PATCH 1/2] " Cheng Ming Lin
2026-11-30  5:49 ` [PATCH 2/2] spi: spidev_test: Add an option " Cheng Ming Lin
2026-11-30  8:36 ` [PATCH 0/2] spi: spidev: Allow userspace " Miquel Raynal

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