[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 7/9] usb-ehci: add ehci-pci device exit funct
From: |
Gonglei (Arei) |
Subject: |
Re: [Qemu-devel] [PATCH v2 7/9] usb-ehci: add ehci-pci device exit function |
Date: |
Wed, 4 Jun 2014 06:22:10 +0000 |
> -----Original Message-----
> From: Gerd Hoffmann [mailto:address@hidden
> Sent: Wednesday, June 04, 2014 2:10 PM
> To: Gonglei (Arei)
> Cc: address@hidden; Luonengjun; Huangweidong (C); Huangpeng
> (Peter)
> Subject: Re: [PATCH v2 7/9] usb-ehci: add ehci-pci device exit function
>
> On Di, 2014-06-03 at 18:54 +0800, address@hidden wrote:
> > From: Gonglei <address@hidden>
> >
> > clean up ehci resource when ehci pci device exit.
> >
> > Signed-off-by: Gonglei <address@hidden>
> > ---
> > hw/usb/hcd-ehci-pci.c | 33 +++++++++++++++++++++++++++++++++
> > 1 file changed, 33 insertions(+)
> >
> > diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c
> > index 505741a..115d9b5 100644
> > --- a/hw/usb/hcd-ehci-pci.c
> > +++ b/hw/usb/hcd-ehci-pci.c
> > @@ -84,6 +84,38 @@ static void usb_ehci_pci_init(Object *obj)
> > usb_ehci_init(s, DEVICE(obj));
> > }
> >
> > +static void usb_ehci_pci_exit(PCIDevice *dev)
> > +{
>
> Too much non-pci stuff in here. I think we should create a
> usb_ehci_unrealize function and do the cleanup there, then just call
> this from usb_ehci_pci_exit. You also don't need patch #6 then.
>
Good idea! I will do it in v3, Thanks!
Best regards,
-Gonglei
- [Qemu-devel] [PATCH v2 0/9] usb: usb host adapter hotplug, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 2/9] usb-ohci: Fix memory leak for ohci timer, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 4/9] usb-uhci: clean up uhci resource when pci-uhci exit, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 5/9] usb-ehci: add vmstate properity for EHCIState, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 6/9] usb-ehci: expose ehci_queues_rip_all, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 1/9] usb: add usb_bus_release function, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 7/9] usb-ehci: add ehci-pci device exit function, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 3/9] usb-ohci: add exit function, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 9/9] usb: tag usb host controller as hotpluggable, arei.gonglei, 2014/06/03
- [Qemu-devel] [PATCH v2 8/9] usb-xhci: add exit function, arei.gonglei, 2014/06/03
- Re: [Qemu-devel] [PATCH v2 0/9] usb: usb host adapter hotplug, Gerd Hoffmann, 2014/06/04