Skip to content

tmp105: qtest support

Andreas Färber qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2omap_i2c: Clear SBD bit in STAT register on DATA readhw/omap_i2c.c+1 -03 replies
2/2tests: Add tmp105 unit testtests/Makefile tests/tmp105-test.c+207 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] tmp105: qtest support

Hello,

Last night I decided to learn about I2C and derived a qtest from the omap_i2c implementation used in the n800/n810. Since that is the first I2C device I got to know, this is not yet a full-blown generic I2C libqos framework, but it should be pretty easy to generalize it further as follow-up.

This test case uncovers a bug with odd-numbered I2C reads in the OMAP implementation, for which I'm including a fix here.

The test case itself will still fail on master, a fix is being discussed in thread "tmp105: Fix I2C protocol bug".

The proposed tmp105.h header file promises to allow sharing the enum for the four registers.

Regards,
Andreas

Cc Alex Horn <[email protected]>
Cc Andrzej Zaborowski <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Blue Swirl <[email protected]>

Andreas Färber (2):
omap_i2c: Clear SBD bit in STAT register on DATA read
tests: Add tmp105 unit test

 hw/omap_i2c.c       |    1 +
 tests/Makefile      |    2 +
 tests/tmp105-test.c |  205 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 Dateien geändert, 208 Zeilen hinzugefügt(+)
 create mode 100644 tests/tmp105-test.c
Signature · 1 line
1.7.10.4