From: Shahar Havivi <shaharh@redhat.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix qemu mouse Set_Protocol behavior
Date: Sun, 2 May 2010 14:04:44 +0300 [thread overview]
Message-ID: <20100502110444.GB31334@redhat.com> (raw)
In-Reply-To: <20100502023851.GA16268@morn.localdomain>
On Sat, May 01, 2010 at 10:38:51PM -0400, Kevin O'Connor wrote:
> Date: Sat, 1 May 2010 22:38:51 -0400
> From: Kevin O'Connor <kevin@koconnor.net>
> To: qemu-devel@nongnu.org, seabios@seabios.org
> Cc:
> Subject: [Qemu-devel] [PATCH] Fix qemu mouse Set_Protocol behavior
>
> 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.
>
> -Kevin
Isn't it true for the USB_TABLET as well?
Shahar.
>
>
> --- a/hw/usb-hid.c
> +++ b/hw/usb-hid.c
> @@ -790,13 +790,13 @@ static int usb_hid_handle_control(USBDevice *dev, int request, int value,
> goto fail;
> break;
> case GET_PROTOCOL:
> - if (s->kind != USB_KEYBOARD)
> + if (s->kind != USB_KEYBOARD && s->kind != USB_MOUSE)
> goto fail;
> ret = 1;
> data[0] = s->protocol;
> break;
> case SET_PROTOCOL:
> - if (s->kind != USB_KEYBOARD)
> + if (s->kind != USB_KEYBOARD && s->kind != USB_MOUSE)
> goto fail;
> ret = 0;
> s->protocol = value;
>
>
next prev parent reply other threads:[~2010-05-02 11:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-02 2:38 [Qemu-devel] [PATCH] Fix qemu mouse Set_Protocol behavior Kevin O'Connor
2010-05-02 11:04 ` Shahar Havivi [this message]
2010-05-02 17:39 ` Kevin O'Connor
2010-05-03 17:02 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100502110444.GB31334@redhat.com \
--to=shaharh@redhat.com \
--cc=kevin@koconnor.net \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).