From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TifpJ-000428-2j for qemu-devel@nongnu.org; Wed, 12 Dec 2012 01:30:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TifpD-0008Bv-2E for qemu-devel@nongnu.org; Wed, 12 Dec 2012 01:29:53 -0500 Received: from mout.web.de ([212.227.15.4]:64252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TifpC-0008Bp-P9 for qemu-devel@nongnu.org; Wed, 12 Dec 2012 01:29:46 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 12 Dec 2012 07:29:31 +0100 Message-Id: <1355293773-18361-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/2] tmp105: qtest support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Blue Swirl , Alex Horn , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori 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 Cc: Andrzej Zaborowski Cc: Peter Maydell Cc: Blue Swirl 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