From: Ethan Zhao Subject: Re: [PATCH 3/4 v3] xen-pciback: use pci device flag operation helper function Date: Tue, 29 Jul 2014 20:16:12 +0800 Message-ID: <32E4A68B-AF5E-49ED-92AC-99DFCD0960BD@gmail.com> References: <1406606791-8834-1-git-send-email-ethan.zhao@oracle.com> <1406606791-8834-4-git-send-email-ethan.zhao@oracle.com> <53D7725C.5010405@citrix.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ethan Zhao , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" To: David Vrabel Return-path: In-Reply-To: <53D7725C.5010405@citrix.com> Sender: linux-pci-owner@vger.kernel.org List-Id: kvm.vger.kernel.org > =D4=DA 2014=C4=EA7=D4=C229=C8=D5=A3=AC=CF=C2=CE=E76:07=A3=ACDavid Vra= bel =D0=B4=B5=C0=A3=BA >=20 >> On 29/07/14 05:06, Ethan Zhao wrote: >> Use pci device flag operation helper functions when set device >> to assigned or deassigned state. >>=20 >> Signed-off-by: Ethan Zhao >=20 > Konrad already reviewed this but you've not included his reviewed-by = tag. >=20 yep=A3=ACI lost Konrad's reviewed-by tag. Thanks. > I don't understand why we bother with this flag on Xen since we never > use it but: >=20 > Acked-by: David Vrabel >=20 > I'm expecting this to go via the PCI tree. >=20 > David >=20 >> --- a/drivers/xen/xen-pciback/pci_stub.c >> +++ b/drivers/xen/xen-pciback/pci_stub.c >> @@ -133,7 +133,7 @@ static void pcistub_device_release(struct kref *= kref) >> xen_pcibk_config_free_dyn_fields(dev); >> xen_pcibk_config_free_dev(dev); >>=20 >> - dev->dev_flags &=3D ~PCI_DEV_FLAGS_ASSIGNED; >> + pci_clear_dev_assigned(dev); >> pci_dev_put(dev); >>=20 >> kfree(psdev); >> @@ -404,7 +404,7 @@ static int pcistub_init_device(struct pci_dev *d= ev) >> dev_dbg(&dev->dev, "reset device\n"); >> xen_pcibk_reset_device(dev); >>=20 >> - dev->dev_flags |=3D PCI_DEV_FLAGS_ASSIGNED; >> + pci_set_dev_assigned(dev); >> return 0; >>=20 >> config_release: >>=20 >=20