From: "Andreas Färber" <andreas.faerber@web.de>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Blue Swirl" <blauwirbel@gmail.com>,
"Alex Horn" <alex.horn@cs.ox.ac.uk>,
"Andreas Färber" <andreas.faerber@web.de>,
"Anthony Liguori" <anthony@codemonkey.ws>
Subject: [Qemu-devel] [PATCH 0/2] tmp105: qtest support
Date: Wed, 12 Dec 2012 07:29:31 +0100 [thread overview]
Message-ID: <1355293773-18361-1-git-send-email-andreas.faerber@web.de> (raw)
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 <alex.horn@cs.ox.ac.uk>
Cc: Andrzej Zaborowski <balrogg@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Blue Swirl <blauwirbel@gmail.com>
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
--
1.7.10.4
next reply other threads:[~2012-12-12 6:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 6:29 Andreas Färber [this message]
2012-12-12 6:29 ` [Qemu-devel] [PATCH 1/2] omap_i2c: Clear SBD bit in STAT register on DATA read Andreas Färber
2012-12-13 14:45 ` Peter Maydell
2012-12-13 17:04 ` Andreas Färber
2012-12-13 17:10 ` Peter Maydell
2012-12-12 6:29 ` [Qemu-devel] [PATCH 2/2] tests: Add tmp105 unit test Andreas Färber
2012-12-12 14:44 ` Alex Horn
2012-12-15 17:44 ` Andreas Färber
2012-12-12 19:43 ` Blue Swirl
2012-12-12 23:17 ` Andreas Färber
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=1355293773-18361-1-git-send-email-andreas.faerber@web.de \
--to=andreas.faerber@web.de \
--cc=alex.horn@cs.ox.ac.uk \
--cc=anthony@codemonkey.ws \
--cc=blauwirbel@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).