qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] usb-host: reset and close libusb_device_handle


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] usb-host: reset and close libusb_device_handle before qemu exit
Date: Mon, 10 Dec 2018 14:23:11 +0100
User-agent: NeoMutt/20180716

On Fri, Nov 30, 2018 at 02:47:00PM +0800, linzhecheng wrote:
> we should perform these things as same as usb_host_close.
> 
> Signed-off-by: linzhecheng <address@hidden>
> 
> diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
> index b6602ded4e..2016375e6b 100644
> --- a/hw/usb/host-libusb.c
> +++ b/hw/usb/host-libusb.c
> @@ -988,7 +988,9 @@ static void usb_host_exit_notifier(struct Notifier *n, 
> void *data)
>  
>      if (s->dh) {
>          usb_host_release_interfaces(s);
> +     libusb_reset_device(s->dh);
>          usb_host_attach_kernel(s);
> +     libusb_close(s->dh);

qemu codesstyle uses spaces not tabs, please update your editor settings.

Fixed and added to usb queue.

thanks,
  Gerd




reply via email to

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