* [PATCH v2] i2c: Clarify behavior of I2C_M_RD flag
@ 2025-05-19 23:56 I Viswanath
0 siblings, 0 replies; 4+ messages in thread
From: I Viswanath @ 2025-05-19 23:56 UTC (permalink / raw)
To: linux-i2c; +Cc: wsa+renesas, I Viswanath
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2] i2c: Clarify behavior of I2C_M_RD flag
@ 2025-05-10 21:27 Viswanath
2025-05-19 16:45 ` Wolfram Sang
0 siblings, 1 reply; 4+ messages in thread
From: Viswanath @ 2025-05-10 21:27 UTC (permalink / raw)
To: linux-i2c; +Cc: Viswanath
Update the description of I2C_M_RD to clarify that not setting it
signals a write transaction
Signed-off-by: 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-09 15:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-19 23:56 [PATCH v2] i2c: Clarify behavior of I2C_M_RD flag I Viswanath
-- strict thread matches above, loose matches on Subject: below --
2025-05-10 21:27 Viswanath
2025-05-19 16:45 ` Wolfram Sang
2025-07-09 15:07 ` I Viswanath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox