From: I Viswanath <viswanathiyyappan@gmail.com>
To: linux-i2c@vger.kernel.org
Cc: wsa+renesas@sang-engineering.com,
I Viswanath <viswanathiyyappan@gmail.com>
Subject: [PATCH v2] i2c: Clarify behavior of I2C_M_RD flag
Date: Tue, 20 May 2025 05:26:57 +0530 [thread overview]
Message-ID: <20250519235657.7404-1-viswanathiyyappan@gmail.com> (raw)
Update the description of I2C_M_RD to clarify that not setting it
signals a write transaction
Signed-off-by: I Viswanath <viswanathiyyappan@gmail.com>
---
include/uapi/linux/i2c.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h
index aa751389de07..29b149ca4b70 100644
--- a/include/uapi/linux/i2c.h
+++ b/include/uapi/linux/i2c.h
@@ -21,7 +21,8 @@
*
* @flags:
* Supported by all adapters:
- * %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001!
+ * %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001! If
+ * not set, the transaction is interpreted as write.
*
* Optional:
* %I2C_M_DMA_SAFE: the buffer of this message is DMA safe. Makes sense only
--
2.49.0
next reply other threads:[~2025-05-19 18:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 23:56 I Viswanath [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-10 21:27 [PATCH v2] i2c: Clarify behavior of I2C_M_RD flag Viswanath
2025-05-19 16:45 ` Wolfram Sang
2025-07-09 15:07 ` I Viswanath
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=20250519235657.7404-1-viswanathiyyappan@gmail.com \
--to=viswanathiyyappan@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa+renesas@sang-engineering.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