qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] fix usb-hid SET_IDLE behaviour


From: Ian Jackson
Subject: Re: [Qemu-devel] [PATCH] fix usb-hid SET_IDLE behaviour
Date: Wed, 7 Jan 2009 15:20:20 +0000

Stefano Stabellini writes ("[Qemu-devel] [PATCH] fix usb-hid SET_IDLE 
behaviour"):
> the usb-hid spec states that the SET_IDLE request has a 16bit value,
> where the upper byte specifies the idle rate (currently unimplemented,
> we handle only the 0 case, meaning infinite duration) and the lower
> byte specifies the report id (0 means all reports).
> In our code we do idle = value, while it should be idle = "upper byte",
> especially if the guest issues a GET_IDLE, we should return only the
> idle rate while we are returning only the report id.
> In practice it doesn't make much difference because I have only seen
> SET_VALUE with both bytes set to 0 so far, but still it is wrong.
> 
> Signed-off-by: Stefano Stabellini <address@hidden>

Stefano's patch looks good to me.

Reviewed-by: Stefano Stabellini <address@hidden>

Ian.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]