Prodded by Alex David's i2c thread, I tried running i2cdetect on an x86
machine, and it reported all addresses as occupied.  This small series
fixes it.

Paolo Bonzini (3):
  smbus: allow returning an error from reads
  smbus: return -1 if nothing found at the given address
  pm_smbus: correctly report unclaimed cycles

 hw/i2c/pm_smbus.c      | 63 ++++++++++++++++++++++++++++++----------------
 hw/i2c/smbus.c         | 68 ++++++++++++++++++++++++++++++++++----------------
 include/hw/i2c/smbus.h | 18 ++++++-------
 3 files changed, 97 insertions(+), 52 deletions(-)

-- 
1.8.5.3


Reply via email to