From: Gerd Hoffmann <kraxel@redhat.com>
To: lma@suse.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] About usb passthru and speed mismatch
Date: Tue, 16 Jun 2015 15:21:36 +0200 [thread overview]
Message-ID: <1434460896.15692.58.camel@redhat.com> (raw)
In-Reply-To: <5579AD97.1080906@suse.com>
On Do, 2015-06-11 at 23:47 +0800, Lin Ma wrote:
> Hi Gerd,
>
> Based on the current implementation of 'usb_host_open' in
> hw/usb/host-libusb.c,
>
> When user performs usb_add, The usb device will be detached from kernel
> first, Then be checked for speed mismatch second.
> If it found speed mismatch, The usb device isn't attached to guest, But
> the usb device can't be reattached to kernel either.
>
> I'd like to write patch to add 'usb_check_attach' before detaching the
> device from kernel _or_ add 'usb_host_attach_kernel' under 'fail:' of
> usb_host_open, (the latter doesn't make sense I think).
Re-attach to the kernel when open fails (for whatever reasons) makes
perfect sense to me.
cheers,
Gerd
prev parent reply other threads:[~2015-06-16 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 15:47 [Qemu-devel] About usb passthru and speed mismatch Lin Ma
2015-06-16 13:21 ` Gerd Hoffmann [this message]
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=1434460896.15692.58.camel@redhat.com \
--to=kraxel@redhat.com \
--cc=lma@suse.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.