Received: from eggs.gnu.org ([140.186.70.92]:47144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI0qf-0001T2-I3 for qemu-devel@nongnu.org; Thu, 05 May 2011 11:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI0qe-0002PJ-OU for qemu-devel@nongnu.org; Thu, 05 May 2011 11:52:17 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:38085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI0qe-0002OV-Fo for qemu-devel@nongnu.org; Thu, 05 May 2011 11:52:16 -0400 Date: Fri, 6 May 2011 00:52:12 +0900 From: Isaku Yamahata Message-ID: <20110505155212.GC25173@valinux.co.jp> References: <20110505124157.GA30119@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110505124157.GA30119@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/7] pci: initialize ids in pci common code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On Thu, May 05, 2011 at 03:41:57PM +0300, Michael S. Tsirkin wrote: > On Fri, Apr 08, 2011 at 09:52:59PM +0900, Isaku Yamahata wrote: > > vender id/device id... in configuration space are read-only registers > > which are commonly defined for all pci devices. > > So initialize them in common code and it simplifies the initialization a bit. > > I converted some of them. > > > > If this is the right direction, I'll convert the remaining devices. > > So I agree about device vendor id and revision but not header type: > devices ideally should supply device type (bridge or not) > and we will fill it in correctly. Okay, with the nextspin, I'll drop program interface and header type and add assert for subsystem id/vendor id. -- yamahata