From: Cheng Ming Lin <linchengming884@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-spi@vger.kernel.org, linux-api@vger.kernel.org,
Miquel Raynal <miquel.raynal@bootlin.com>,
alvinzhou@mxic.com.tw
Subject: [PATCH 0/2] spi: spidev: Allow userspace to request DTR transfers
Date: Mon, 30 Nov 2026 13:49:29 +0800 [thread overview]
Message-ID: <20261130054931.2441438-1-chengminglin@mxic.com.tw> (raw)
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
next reply other threads:[~2026-11-30 5:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 5:49 Cheng Ming Lin [this message]
2026-11-30 5:49 ` [PATCH 1/2] spi: spidev: Allow userspace to request DTR transfers 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130054931.2441438-1-chengminglin@mxic.com.tw \
--to=linchengming884@gmail.com \
--cc=alvinzhou@mxic.com.tw \
--cc=broonie@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox