Received: from eggs.gnu.org ([2001:4830:134:3::10]:60354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrV9B-0000L7-Cc for qemu-devel@nongnu.org; Thu, 20 Nov 2014 12:04:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrV92-0007sK-ML for qemu-devel@nongnu.org; Thu, 20 Nov 2014 12:03:57 -0500 Received: from mail-qg0-f50.google.com ([209.85.192.50]:57400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrV92-0007rq-IK for qemu-devel@nongnu.org; Thu, 20 Nov 2014 12:03:48 -0500 Received: by mail-qg0-f50.google.com with SMTP id e89so2345859qgf.37 for ; Thu, 20 Nov 2014 09:03:47 -0800 (PST) Date: Thu, 20 Nov 2014 12:03:45 -0500 From: Kevin O'Connor Message-ID: <20141120170345.GA30305@morn.localdomain> References: <1416284800-2759-1-git-send-email-kevin@koconnor.net> <1416284800-2759-4-git-send-email-kevin@koconnor.net> <546AE6CC.7040606@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <546AE6CC.7040606@redhat.com> Subject: Re: [Qemu-devel] [PATCH 3/4] sdhci: Support SDHCI devices on PCI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Gerd Hoffmann Cc: qemu-devel@nongnu.org On Tue, Nov 18, 2014 at 07:27:24AM +0100, Paolo Bonzini wrote: > On 18/11/2014 05:26, Kevin O'Connor wrote: > > --- a/include/hw/pci/pci.h > > +++ b/include/hw/pci/pci.h > > @@ -53,6 +53,7 @@ > > /* QEMU/Bochs VGA (0x1234) */ > > #define PCI_VENDOR_ID_QEMU 0x1234 > > #define PCI_DEVICE_ID_QEMU_VGA 0x1111 > > +#define PCI_DEVICE_ID_SDHCI 0x2222 > > 0x1234 is not a registered PCI id, and it's only used for VGA for > backwards-compatibility reasons. > > Please use 1b36:0005 instead, and document it in docs/specs/pci-ids.txt, > or use a real-world PCI vendor/device pair (if you can find one that > Linux doesn't have quirks for; that could be hard). Hi Paolo. Thanks for reviewing. I know recent Intel chips (eg, baytrail) have a builtin sdhci controller (eg, 8086:0f16). However, that has quirks defined in the Linux driver. Basic functionality still does seem to work though when I use those ids in qemu. The same basic functionality also seems to work when I use 1b36:0005 as well. Is there a preference then to use the redhat ids? Gerd, you seem to be in charge of the redhat pci ids - are you okay if I us one (should it be the existing 0005 or add 0006)? Thanks, -Kevin