This is a resend of the I2C patches I posted a while ago. Patches 1-3 are just a rebase.
Patch 4 is the same as before, patches 5-7 make the tmp105 testcase more complete in order to test that change. Paolo Bonzini (7): smbus: allow returning an error from reads smbus: return -1 if nothing found at the given address pm_smbus: correctly report unclaimed cycles tmp105: read temperature in milli-celsius tmp105-test: wrap simple building blocks for testing tmp105-test: add a second sensor and test that one tmp105-test: test QOM property and precision hw/i2c/pm_smbus.c | 63 +++++++++++++++-------- hw/i2c/smbus.c | 68 +++++++++++++++++-------- hw/misc/tmp105.c | 8 +-- include/hw/i2c/smbus.h | 18 +++---- roms/SLOF | 2 +- roms/openbios | 2 +- roms/qemu-palcode | 2 +- roms/seabios | 2 +- tests/tmp105-test.c | 136 +++++++++++++++++++++++++++++++++++++++++-------- 9 files changed, 220 insertions(+), 81 deletions(-) -- 1.9.0