All of lore.kernel.org
 help / color / mirror / Atom feed
From: I Viswanath <viswanathiyyappan@gmail.com>
To: wsa+renesas@sang-engineering.com
Cc: linux-i2c@vger.kernel.org, viswanathiyyappan@gmail.com
Subject: [PATCH v3] i2c: Clarify behavior of I2C_M_RD flag
Date: Wed,  9 Jul 2025 20:37:18 +0530	[thread overview]
Message-ID: <20250709151402.7811-2-viswanathiyyappan@gmail.com> (raw)
In-Reply-To: <20250709151402.7811-1-viswanathiyyappan@gmail.com>

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 92326ebde350..a2db2a56c8b0 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 only sense
-- 
2.49.0


  reply	other threads:[~2025-07-09 15:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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:00   ` I Viswanath
2025-07-09 15:00     ` [PATCH v3] i2c: Clarify behavior of I2C_M_RD flag I Viswanath
2025-07-09 15:07   ` [PATCH v2] " I Viswanath
2025-07-09 15:07     ` I Viswanath [this message]
2025-07-14  7:17       ` [PATCH v3] " Wolfram Sang

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=20250709151402.7811-2-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.