From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1gfE-0001BN-RN for qemu-devel@nongnu.org; Sun, 26 Feb 2012 11:09:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1gfD-0000F0-7i for qemu-devel@nongnu.org; Sun, 26 Feb 2012 11:09:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1gfD-0000Eo-0H for qemu-devel@nongnu.org; Sun, 26 Feb 2012 11:09:31 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1QG9U77005488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 26 Feb 2012 11:09:30 -0500 From: Alon Levy Date: Sun, 26 Feb 2012 17:09:23 +0100 Message-Id: <1330272564-21692-3-git-send-email-alevy@redhat.com> In-Reply-To: <1330272564-21692-1-git-send-email-alevy@redhat.com> References: <1330272564-21692-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 3/4] usb-ccid: advertise SELF_POWERED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@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 --- 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