From patchwork Thu Jul 21 18:52:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 106141 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 47DEDB6F71 for ; Fri, 22 Jul 2011 04:52:41 +1000 (EST) Received: from localhost ([::1]:41939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjyMQ-0002Ho-M1 for incoming@patchwork.ozlabs.org; Thu, 21 Jul 2011 14:52:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjyMK-0002Ek-Qu for qemu-devel@nongnu.org; Thu, 21 Jul 2011 14:52:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjyMJ-0004Vz-Nc for qemu-devel@nongnu.org; Thu, 21 Jul 2011 14:52:32 -0400 Received: from mail.serverraum.org ([78.47.150.89]:45781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjyMJ-0004Vn-J0 for qemu-devel@nongnu.org; Thu, 21 Jul 2011 14:52:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.serverraum.org (Postfix) with ESMTP id B54823EF44; Thu, 21 Jul 2011 20:55:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.serverraum.org Received: from mail.serverraum.org ([127.0.0.1]) by localhost (web.serverraum.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kulejJG9NOab; Thu, 21 Jul 2011 20:55:00 +0200 (CEST) Received: from thanatos.fritz.box (95-89-251-205-dynip.superkabel.de [95.89.251.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.serverraum.org (Postfix) with ESMTPSA id 56DDE3EF1D; Thu, 21 Jul 2011 20:55:00 +0200 (CEST) From: Michael Walle To: qemu-devel@nongnu.org Date: Thu, 21 Jul 2011 20:52:24 +0200 Message-Id: <1311274344-8720-1-git-send-email-michael@walle.cc> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 78.47.150.89 Cc: "Edgar E. Iglesias" , Michael Walle Subject: [Qemu-devel] [PATCH] lm32: softusb: claim to support full speed 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 The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we are supporting full speed devices. Signed-off-by: Michael Walle Acked-by: Gerd Hoffmann --- hw/milkymist-softusb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/milkymist-softusb.c b/hw/milkymist-softusb.c index ce2bfc6..abf7b59 100644 --- a/hw/milkymist-softusb.c +++ b/hw/milkymist-softusb.c @@ -310,10 +310,12 @@ static int milkymist_softusb_init(SysBusDevice *dev) usb_bus_new(&s->usbbus, &softusb_bus_ops, NULL); /* our two ports */ + /* FIXME: claim to support full speed devices. qemu mouse and keyboard + * report themselves as full speed devices. */ usb_register_port(&s->usbbus, &s->usbport[0], NULL, 0, &softusb_ops, - USB_SPEED_MASK_LOW); + USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL); usb_register_port(&s->usbbus, &s->usbport[1], NULL, 1, &softusb_ops, - USB_SPEED_MASK_LOW); + USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL); /* and finally create an usb keyboard */ s->usbdev = usb_create_simple(&s->usbbus, "usb-kbd");