> -----Original Message-----
> From: qemu-devel-bounces+arei.gonglei=huawei....@nongnu.org
> [mailto:qemu-devel-bounces+arei.gonglei=huawei....@nongnu.org] On
> Behalf Of Gerd Hoffmann
> Sent: Monday, May 26, 2014 4:58 PM
> To: qemu-devel@nongnu.org
> Cc: hdego...@redhat.com; Gerd Hoffmann
> Subject: [Qemu-devel] [PATCH] usb: add usb_pick_speed
> 
> We can pick the usb port speed in generic code, by looking at the port
> and device speed masks and looking for the fastest match.  So add a
> function to do exactly that, and drop the speed setting code from
> usb_desc_attach as it isn't needed any more.
> 
> This way we can set the device speed before calling port->ops->attach,
> which fixes some xhci hotplug issues.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1046873
> 
> Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
> ---
>  hw/usb/core.c    | 21 +++++++++++++++++++++
>  hw/usb/desc.c    | 12 ------------
>  include/hw/usb.h |  1 +
>  3 files changed, 22 insertions(+), 12 deletions(-)
> 

Reviewed-by: Gonglei <arei.gong...@huawei.com>

Best regards,
-Gonglei

Reply via email to