From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQUh-0000qF-Bi for qemu-devel@nongnu.org; Fri, 02 Sep 2011 05:57:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzQUf-0002C7-9Z for qemu-devel@nongnu.org; Fri, 02 Sep 2011 05:57:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQUf-0002Bg-1h for qemu-devel@nongnu.org; Fri, 02 Sep 2011 05:57:01 -0400 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 p829v0KH031311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Sep 2011 05:57:00 -0400 From: Gerd Hoffmann Date: Fri, 2 Sep 2011 11:56:42 +0200 Message-Id: <1314957407-29508-14-git-send-email-kraxel@redhat.com> In-Reply-To: <1314957407-29508-1-git-send-email-kraxel@redhat.com> References: <1314957407-29508-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 13/18] usb-ccid: remote wakeup support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/usb-ccid.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c index 4f0b347..3f794d4 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 = 0x80, + .bmAttributes = 0xa0, .bMaxPower = 50, .nif = 1, .ifs = &desc_iface0, @@ -811,6 +811,7 @@ static void ccid_on_slot_change(USBCCIDState *s, bool full) s->bmSlotICCState |= SLOT_0_CHANGED_MASK; } s->notify_slot_change = true; + usb_wakeup(&s->dev); } static void ccid_write_data_block_error( -- 1.7.1