From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Mark Brown <broonie@kernel.org>,
Boris Brezillon <bbrezillon@kernel.org>,
Yogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Cc: linux-spi@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH 1/2] spi: spidev: Add support for Octal mode data transfers
Date: Thu, 16 Apr 2020 12:18:34 +0200 [thread overview]
Message-ID: <20200416101835.14573-2-geert+renesas@glider.be> (raw)
In-Reply-To: <20200416101835.14573-1-geert+renesas@glider.be>
Include the flags for Octal mode data transfers in the mask, so
userspace can set them.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/spi/spidev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 80dd1025b9530493..d753df700e9ea3cc 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -62,7 +62,8 @@ static DECLARE_BITMAP(minors, N_SPI_MINORS);
#define SPI_MODE_MASK (SPI_CPHA | SPI_CPOL | SPI_CS_HIGH \
| SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
| SPI_NO_CS | SPI_READY | SPI_TX_DUAL \
- | SPI_TX_QUAD | SPI_RX_DUAL | SPI_RX_QUAD)
+ | SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \
+ | SPI_RX_QUAD | SPI_RX_OCTAL)
struct spidev_data {
dev_t devt;
--
2.17.1
next prev parent reply other threads:[~2020-04-16 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-16 10:18 [PATCH 0/2] spi: spidev{,_test}: Add support for Octal mode data transfers Geert Uytterhoeven
2020-04-16 10:18 ` Geert Uytterhoeven [this message]
2020-04-16 10:18 ` [PATCH 2/2] spi: spidev_test: " Geert Uytterhoeven
2020-04-16 15:44 ` [PATCH 0/2] spi: spidev{,_test}: " Mark Brown
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=20200416101835.14573-2-geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=bbrezillon@kernel.org \
--cc=broonie@kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=yogeshnarayan.gaur@nxp.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;
as well as URLs for NNTP newsgroup(s).