From: Gerd Hoffmann <kraxel@redhat.com>
To: Michael Marineau <mike@marineau.org>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix usage of USB_DEV_FLAG_IS_HOST flag.
Date: Mon, 13 May 2013 17:51:54 +0200 [thread overview]
Message-ID: <51910C1A.5000603@redhat.com> (raw)
In-Reply-To: <1368400777-2938-1-git-send-email-mike@marineau.org>
On 05/13/13 01:19, Michael Marineau wrote:
> USB_DEV_FLAG_IS_HOST is the bit number, not value. Booting with a
> "Fitbit Base Station" USB dongle was triggering this assert.
>
> Signed-off-by: Michael Marineau <mike@marineau.org>
> ---
> hw/usb/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/usb/core.c b/hw/usb/core.c
> index 15a150a..05948ca 100644
> --- a/hw/usb/core.c
> +++ b/hw/usb/core.c
> @@ -410,7 +410,7 @@ void usb_handle_packet(USBDevice *dev, USBPacket *p)
> assert(p->ep->type != USB_ENDPOINT_XFER_ISOC);
> /* using async for interrupt packets breaks migration */
> assert(p->ep->type != USB_ENDPOINT_XFER_INT ||
> - (dev->flags & USB_DEV_FLAG_IS_HOST));
> + (dev->flags & (1 << USB_DEV_FLAG_IS_HOST)));
> usb_packet_set_state(p, USB_PACKET_ASYNC);
> QTAILQ_INSERT_TAIL(&p->ep->queue, p, queue);
> } else if (p->status == USB_RET_ADD_TO_QUEUE) {
Looks good.
Anthony? Can you pick it for 1.5 directly? I don't have any other
pending usb bits for 1.5 at the moment.
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
cheers,
Gerd
next prev parent reply other threads:[~2013-05-13 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-12 23:19 [Qemu-devel] [PATCH] Fix usage of USB_DEV_FLAG_IS_HOST flag Michael Marineau
2013-05-13 15:51 ` Gerd Hoffmann [this message]
2013-05-22 1:44 ` Michael Marineau
2013-05-28 10:48 ` Gerd Hoffmann
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=51910C1A.5000603@redhat.com \
--to=kraxel@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=mike@marineau.org \
--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.