From: Gerd Hoffmann <kraxel@redhat.com>
To: arei.gonglei@huawei.com
Cc: weidong.huang@huawei.com, luonengjun@huawei.com,
qemu-devel@nongnu.org, peter.huangpeng@huawei.com
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 [thread overview]
Message-ID: <1401862184.7197.18.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <1401792864-4656-8-git-send-email-arei.gonglei@huawei.com>
On Di, 2014-06-03 at 18:54 +0800, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> clean up ehci resource when ehci pci device exit.
>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
> 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
next prev parent reply other threads:[~2014-06-04 6:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 10:54 [Qemu-devel] [PATCH v2 0/9] usb: usb host adapter hotplug arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 1/9] usb: add usb_bus_release function arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 2/9] usb-ohci: Fix memory leak for ohci timer arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 3/9] usb-ohci: add exit function arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 4/9] usb-uhci: clean up uhci resource when pci-uhci exit arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 5/9] usb-ehci: add vmstate properity for EHCIState arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 6/9] usb-ehci: expose ehci_queues_rip_all arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 7/9] usb-ehci: add ehci-pci device exit function arei.gonglei
2014-06-04 6:09 ` Gerd Hoffmann [this message]
2014-06-04 6:22 ` Gonglei (Arei)
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 8/9] usb-xhci: add " arei.gonglei
2014-06-03 10:54 ` [Qemu-devel] [PATCH v2 9/9] usb: tag usb host controller as hotpluggable arei.gonglei
2014-06-04 6:11 ` [Qemu-devel] [PATCH v2 0/9] usb: usb host adapter hotplug Gerd Hoffmann
2014-06-04 6:40 ` Gonglei (Arei)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1401862184.7197.18.camel@nilsson.home.kraxel.org \
--to=kraxel@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=luonengjun@huawei.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=weidong.huang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).