Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8d8R-0006E5-7X for qemu-devel@nongnu.org; Sun, 02 May 2010 13:39:19 -0400 Received: from [140.186.70.92] (port=60941 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8d8P-0006Dr-1z for qemu-devel@nongnu.org; Sun, 02 May 2010 13:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8d8N-0005Gq-Pr for qemu-devel@nongnu.org; Sun, 02 May 2010 13:39:16 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:47786) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8d8N-0005Gk-Ln for qemu-devel@nongnu.org; Sun, 02 May 2010 13:39:15 -0400 Received: by vws3 with SMTP id 3so1176038vws.4 for ; Sun, 02 May 2010 10:39:14 -0700 (PDT) Date: Sun, 2 May 2010 13:39:12 -0400 From: Kevin O'Connor Subject: Re: [Qemu-devel] [PATCH] Fix qemu mouse Set_Protocol behavior Message-ID: <20100502173912.GA18114@morn.localdomain> References: <20100502023851.GA16268@morn.localdomain> <20100502110444.GB31334@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100502110444.GB31334@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shahar Havivi Cc: seabios@seabios.org, qemu-devel@nongnu.org On Sun, May 02, 2010 at 02:04:44PM +0300, Shahar Havivi wrote: > On Sat, May 01, 2010 at 10:38:51PM -0400, Kevin O'Connor wrote: > > The QEMU USB mouse claims to support the "boot" protocol > > (bInterfaceSubClass is 1). However, the mouse rejects the > > Set_Protocol command. > > > > The qemu mouse does support the "boot" protocol specification, so a > > simple fix is to just enable the Set_Portocol request. > > > Isn't it true for the USB_TABLET as well? The USB tablet appears to also advertise that it supports the "boot" protocol. However, its reports aren't "boot" protocol compatible. So, it really shouldn't claim that. A fix (briefly tested) is below. -Kevin --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -181,7 +181,7 @@ static const uint8_t qemu_tablet_config_descriptor[] = { 0x00, /* u8 if_bAlternateSetting; */ 0x01, /* u8 if_bNumEndpoints; */ 0x03, /* u8 if_bInterfaceClass; */ - 0x01, /* u8 if_bInterfaceSubClass; */ + 0x00, /* u8 if_bInterfaceSubClass; */ 0x02, /* u8 if_bInterfaceProtocol; [usb1.1 or single tt] */ 0x07, /* u8 if_iInterface; */