qemu-devel
[Top][All Lists]
Advanced

[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: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v2 7/9] usb-ehci: add ehci-pci device exit function
Date: Wed, 04 Jun 2014 08:09:44 +0200

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.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]