public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] i2c: testunit: add rep_start test and rework versioning
@ 2024-08-11 21:23 Wolfram Sang
  2024-08-11 21:23 ` [PATCH v2 1/4] i2c: testunit: sort case blocks Wolfram Sang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Wolfram Sang @ 2024-08-11 21:23 UTC (permalink / raw)
  To: linux-i2c; +Cc: linux-renesas-soc, Wolfram Sang

On my way to let the testunit trigger SMBusAlert interrupts, I needed to
rework the way the testunit responds to read messages. This series is
the result of that with some very nice side effects. First, we now have
a new test to check for proper repeated starts between messages in a
transfer which will also improve versioning (patch 3). Also, the state
of the testunit can now be checked (patch 4). Patch 1 makes the state
machine a little easiert to follow. And patch 2 improves documentation.

The patches are based on Linus' tree close to rc3 and has been tested on
a Renesas Lager board (R-Car H2) and a Renesas Falcon board (R-Car V3U).

Looking forward to comments. Once we got this in, I will send out the
SMBusAlert additions. They do work already, they just need some
documentation.

Changes since v1:
* patch 2 added to improve documentation
* added newline to the version string to make its printout
  "self-contained"
* for reading the new version string, the shell one liner to print
  ASCII directly has been removed. Now we use a new feature of
  i2ctransfer. Note, the docs mention version 4.4 already which is not
  out yet, but it will be by the time 6.11 is released (tm).
* rebased, dependencies are now in Linus' tree

Happy hacking!


Wolfram Sang (4):
  i2c: testunit: sort case blocks
  i2c: testunit: use decimal values in docs when appropriate
  i2c: testunit: add command to support versioning and test rep_start
  i2c: testunit: return current command on read messages

 Documentation/i2c/slave-testunit-backend.rst | 60 ++++++++++++++++----
 drivers/i2c/i2c-slave-testunit.c             | 43 ++++++++++----
 2 files changed, 82 insertions(+), 21 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-14 17:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11 21:23 [PATCH v2 0/4] i2c: testunit: add rep_start test and rework versioning Wolfram Sang
2024-08-11 21:23 ` [PATCH v2 1/4] i2c: testunit: sort case blocks Wolfram Sang
2024-08-14 17:57   ` Wolfram Sang
2024-08-11 21:23 ` [PATCH v2 2/4] i2c: testunit: use decimal values in docs when appropriate Wolfram Sang
2024-08-14 17:57   ` Wolfram Sang
2024-08-11 21:23 ` [PATCH v2 3/4] i2c: testunit: add command to support versioning and test rep_start Wolfram Sang
2024-08-14 17:57   ` Wolfram Sang
2024-08-11 21:23 ` [PATCH v2 4/4] i2c: testunit: return current command on read messages Wolfram Sang
2024-08-14 17:57   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox