From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1dKxK2-0004Fi-Og for mharc-qemu-trivial@gnu.org; Tue, 13 Jun 2017 21:42:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKxJx-0004DG-LI for qemu-trivial@nongnu.org; Tue, 13 Jun 2017 21:42:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKxJw-0000UD-TV for qemu-trivial@nongnu.org; Tue, 13 Jun 2017 21:42:09 -0400 Received: from ozlabs.org ([103.22.144.67]:48167) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dKxJo-0000Qh-Qm; Tue, 13 Jun 2017 21:42:01 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3wnTrh3Qwjz9s7B; Wed, 14 Jun 2017 11:41:56 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1497404516; bh=n6p61gcqvfjBojjpM6jIqw6Y2oOFT24QI+gGgpB0Zvs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lJtTYxNQ7SFI+GpTjsGt+87jYA+VHSdLkuUtaUVspRohi8SgA7DhyG1bMY+4MgDiA PNL4PuFrtzihOn/2d8yi/nswkMR06umQBEOfzrtKGcBMts7XUebLRFbE9pR4+SbaTY 6rQ4hNgnP47Wu0k5709XlqWpagjt1eeCIG0CW6dc= Date: Wed, 14 Jun 2017 09:36:11 +0800 From: David Gibson To: Thomas Huth Cc: qemu-devel@nongnu.org, Alexander Graf , "Michael S. Tsirkin" , Marcel Apfelbaum , qemu-ppc@nongnu.org, qemu-trivial@nongnu.org Message-ID: <20170614013611.GD13420@umbus> References: <1497383329-10393-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hoZxPH4CaxYzWscb" Content-Disposition: inline In-Reply-To: <1497383329-10393-1-git-send-email-thuth@redhat.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 103.22.144.67 Subject: Re: [Qemu-trivial] [PATCH] hw/pci-bridge/dec: Classify the DEC PCI bridge as bridge device X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 01:42:12 -0000 --hoZxPH4CaxYzWscb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 13, 2017 at 09:48:49PM +0200, Thomas Huth wrote: > This way the bridge shows up in the correct section of the > "-device help" text. >=20 > Signed-off-by: Thomas Huth Reviewed-by: David Gibson > --- > hw/pci-bridge/dec.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c > index cca9362..eb275e1 100644 > --- a/hw/pci-bridge/dec.c > +++ b/hw/pci-bridge/dec.c > @@ -62,6 +62,7 @@ static void dec_21154_pci_bridge_class_init(ObjectClass= *klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > PCIDeviceClass *k =3D PCI_DEVICE_CLASS(klass); > =20 > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > k->realize =3D dec_pci_bridge_realize; > k->exit =3D pci_bridge_exitfn; > k->vendor_id =3D PCI_VENDOR_ID_DEC; > @@ -118,6 +119,7 @@ static void dec_21154_pci_host_class_init(ObjectClass= *klass, void *data) > PCIDeviceClass *k =3D PCI_DEVICE_CLASS(klass); > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > k->realize =3D dec_21154_pci_host_realize; > k->vendor_id =3D PCI_VENDOR_ID_DEC; > k->device_id =3D PCI_DEVICE_ID_DEC_21154; --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --hoZxPH4CaxYzWscb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZQJMJAAoJEGw4ysog2bOS+CQP/iiRgohOMBuOmgQg3bKB+iI0 c3464YW++ipoz509ZruxXJX8PPoZfZI4vP+BdLVRbE9GTWM6uw3U6x9T/AJTCrb+ 4hmMLDhUBsvcMk7OsNKpqUqMNHJUE4P65z6S3ztuk23qb8YxN2ODT7tyY5hgk6cg gJ+l+Cvdu2SM5aeUFK+vuiUckh/Vrl+04mxEJG2By6fZR6NRnssvimIgfdRzhYW+ Qyciwy7mrvq+MABvmGVDQwcMGpMCiDdAhEg+COlTahson/PqqPJ/eHeFoNGgoYd2 OKWye3/z7hS1t5XJ+JjxsdJJ8VXtzAi4nppdh0iM3Y/2n99OT83qYhJrVUBVe+QZ 9x80Z3BBQenp/jRC4H8s/PYVebl8rTeTRxXwNWCzc3dTATcmkGuUzrw/4I5lM4WM uGDGv4Dnfuf8zWV+25MSwQSFmaaStYE7uq8NP12PGtu+2+4+6vjdp2U54UP/NyrN 1hcnZ9c2gsEQzCC5v4ZNxlGrjR9yeetEnjX3soSG5vtk0rxT+Mv0fybHAh/v8KL6 uc/n0MYRAgdwAyfWOtgmsAh+3QRvWAq0U/XcrQds1w0WquP7UzGolB+OPESIpEVD LlOPeB0ksecouKSVJeyTWQJ+vBJNV+xM2rYlA64EXE1Ym6TqTTNAj2dKo9bjdZKo azvV+hmu3xo+L8Y4/Xlf =i3eW -----END PGP SIGNATURE----- --hoZxPH4CaxYzWscb--