From: Alon Levy <alevy@redhat.com>
To: qemu-devel@nongnu.org
Cc: kraxel@redhat.com
Subject: [Qemu-devel] [PATCH 3/4] usb-ccid: advertise SELF_POWERED
Date: Sun, 26 Feb 2012 17:09:23 +0100 [thread overview]
Message-ID: <1330272564-21692-3-git-send-email-alevy@redhat.com> (raw)
In-Reply-To: <1330272564-21692-1-git-send-email-alevy@redhat.com>
Before commit ed5a83ddd8c1d8ec7b1015315530cf29949e7c48 each device
provided it's own response to USB_REQ_GET_STATUS, but after it that
response was based on bmAttributes, which was errounously set for
usb-ccid as 0xa0 and not 0xe0.
Signed-off-by: Alon Levy <alevy@redhat.com>
---
hw/usb-ccid.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index 0b2ac80..ce01e34 100644
--- a/hw/usb-ccid.c
+++ b/hw/usb-ccid.c
@@ -447,7 +447,7 @@ static const USBDescDevice desc_device = {
{
.bNumInterfaces = 1,
.bConfigurationValue = 1,
- .bmAttributes = 0xa0,
+ .bmAttributes = 0xe0,
.bMaxPower = 50,
.nif = 1,
.ifs = &desc_iface0,
--
1.7.9.1
next prev parent reply other threads:[~2012-02-26 16:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-26 16:09 [Qemu-devel] [PATCH 1/4] usb-desc: fix user trigerrable segfaults (!config) Alon Levy
2012-02-26 16:09 ` [Qemu-devel] [PATCH 2/4] libcacard: link with glib for g_strndup Alon Levy
2012-02-26 16:09 ` Alon Levy [this message]
2012-02-26 16:09 ` [Qemu-devel] [PATCH 4/4] libcacard: fix reported ATR length Alon Levy
2012-02-26 16:12 ` [Qemu-devel] [PATCH 1/4] usb-desc: fix user trigerrable segfaults (!config) Alon Levy
2012-02-28 8:04 ` Alon Levy
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=1330272564-21692-3-git-send-email-alevy@redhat.com \
--to=alevy@redhat.com \
--cc=kraxel@redhat.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 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).