From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7SwU-0006P7-8o for qemu-devel@nongnu.org; Fri, 11 Dec 2015 14:01:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7SwQ-0006Ov-8q for qemu-devel@nongnu.org; Fri, 11 Dec 2015 14:01:22 -0500 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:33712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7SwQ-0006Nm-1L for qemu-devel@nongnu.org; Fri, 11 Dec 2015 14:01:18 -0500 Received: by qgef78 with SMTP id f78so15295776qge.0 for ; Fri, 11 Dec 2015 11:01:17 -0800 (PST) Date: Fri, 11 Dec 2015 14:01:15 -0500 From: Kevin O'Connor Message-ID: <20151211190115.GA5710@morn.lan> References: <1449851831-4966-1-git-send-email-peter.maydell@linaro.org> <1449851831-4966-6-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449851831-4966-6-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 05/10] hw/sd/sdhci.c: Update to use SDBus APIs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org On Fri, Dec 11, 2015 at 04:37:06PM +0000, Peter Maydell wrote: > Update the SDHCI code to use the new SDBus APIs. > > This commit introduces the new command line options required > to connect a disk to sdhci-pci: > > -device sdhci-pci -drive id=mydrive,[...] -device sd,drive=mydrive I can't review in depth right now, but I did notice [...] > --- a/hw/sd/sdhci.c > +++ b/hw/sd/sdhci.c > @@ -55,6 +55,9 @@ > } \ > } while (0) > > +#define TYPE_SDHCI_BUS "sdhci-bus" > +#define SDHCI_BUS(obj) OBJECT_CHECK(SDBus, (obj), TYPE_PXA2XX_MMCI_BUS) the above PXA2XX typo [...] > @@ -1303,6 +1323,7 @@ static void sdhci_sysbus_realize(DeviceState *dev, Error ** errp) > memory_region_init_io(&s->iomem, OBJECT(s), &sdhci_mmio_ops, s, "sdhci", > SDHC_REGISTERS_MAP_SIZE); > sysbus_init_mmio(sbd, &s->iomem); > + > } and the above white space damage. -Kevin