[bootlin/training-materials updates] master: kernel: i2c: Clarify SMBus concept (cf2bf93f)
Miquel Raynal
miquel.raynal at bootlin.com
Mon Nov 15 10:47:12 CET 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/cf2bf93fac52f87f2efc39110b741f03b2b72df6
>---------------------------------------------------------------
commit cf2bf93fac52f87f2efc39110b741f03b2b72df6
Author: Miquel Raynal <miquel.raynal at bootlin.com>
Date: Mon Nov 15 10:43:38 2021 +0100
kernel: i2c: Clarify SMBus concept
SMBus does not feature any kind of registers, this is our way to
interpret the specification, so use " " around the word register because
it's actually just a command that will be interpreted by the device.
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
>---------------------------------------------------------------
cf2bf93fac52f87f2efc39110b741f03b2b72df6
slides/kernel-i2c/kernel-i2c.tex | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/slides/kernel-i2c/kernel-i2c.tex b/slides/kernel-i2c/kernel-i2c.tex
index 5a459b85..4a6e732e 100644
--- a/slides/kernel-i2c/kernel-i2c.tex
+++ b/slides/kernel-i2c/kernel-i2c.tex
@@ -371,12 +371,13 @@ From \kfile{drivers/input/touchscreen/st1232.c}
core
\end{itemize}
\item Example: the \kfunc{i2c_smbus_read_byte_data} function allows
- to read one byte of data from a device register.
+ to read one byte of data from a device ``register''.
\begin{itemize}
\item It does the following operations:
\code{S Addr Wr [A] Comm [A] S Addr Rd [A] [Data] NA P}
\item Which means it first writes a one byte data command ({\em
- Comm}), and then reads back one byte of data ({\em [Data]}).
+ Comm}, which is the ``register'' address), and then reads
+ back one byte of data ({\em [Data]}).
\end{itemize}
\item See \kdochtml{i2c/smbus-protocol} for details.
\end{itemize}
More information about the training-materials-updates
mailing list