From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFMIu-00078Z-Rs for qemu-devel@nongnu.org; Mon, 17 Feb 2014 06:24:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFMIm-000744-FQ for qemu-devel@nongnu.org; Mon, 17 Feb 2014 06:24:04 -0500 Received: from mail-qa0-x230.google.com ([2607:f8b0:400d:c00::230]:43376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFMIm-00073y-B4 for qemu-devel@nongnu.org; Mon, 17 Feb 2014 06:23:56 -0500 Received: by mail-qa0-f48.google.com with SMTP id f11so21411436qae.7 for ; Mon, 17 Feb 2014 03:23:56 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 17 Feb 2014 12:23:43 +0100 Message-Id: <1392636226-26546-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] pm_smbus: correctly report unclaimed cycles List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.daerf@gmail.com, mst@redhat.com 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