From patchwork Fri Jun 24 10:59:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 101775 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 75C72B6F85 for ; Fri, 24 Jun 2011 21:26:38 +1000 (EST) Received: from localhost ([::1]:43135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa4Wx-0004tO-52 for incoming@patchwork.ozlabs.org; Fri, 24 Jun 2011 07:26:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]:34503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa474-0007CM-TB for qemu-devel@nongnu.org; Fri, 24 Jun 2011 06:59:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa473-0001Zj-5v for qemu-devel@nongnu.org; Fri, 24 Jun 2011 06:59:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa471-0001YQ-PW for qemu-devel@nongnu.org; Fri, 24 Jun 2011 06:59:48 -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 p5OAxkTQ012766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Jun 2011 06:59:46 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-202.ams2.redhat.com [10.36.4.202]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5OAxgHV013733; Fri, 24 Jun 2011 06:59:43 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 7476840F71; Fri, 24 Jun 2011 12:59:37 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 24 Jun 2011 12:59:35 +0200 Message-Id: <1308913175-10454-14-git-send-email-kraxel@redhat.com> In-Reply-To: <1308913175-10454-1-git-send-email-kraxel@redhat.com> References: <1308913175-10454-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 13/13] usb: ignore USB_DT_DEBUG X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/usb-desc.c | 4 ++++ hw/usb.h | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/usb-desc.c b/hw/usb-desc.c index 0b9d351..bc6858f 100644 --- a/hw/usb-desc.c +++ b/hw/usb-desc.c @@ -385,6 +385,10 @@ int usb_desc_get_descriptor(USBDevice *dev, int value, uint8_t *dest, size_t len trace_usb_desc_other_speed_config(dev->addr, index, len, ret); break; + case USB_DT_DEBUG: + /* ignore silently */ + break; + default: fprintf(stderr, "%s: %d unknown type %d (len %zd)\n", __FUNCTION__, dev->addr, type, len); diff --git a/hw/usb.h b/hw/usb.h index a6b311f..076e2ff 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -130,6 +130,7 @@ #define USB_DT_ENDPOINT 0x05 #define USB_DT_DEVICE_QUALIFIER 0x06 #define USB_DT_OTHER_SPEED_CONFIG 0x07 +#define USB_DT_DEBUG 0x0A #define USB_DT_INTERFACE_ASSOC 0x0B #define USB_ENDPOINT_XFER_CONTROL 0