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: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] fix usb-hid SET_IDLE behaviour
Date: Wed, 07 Jan 2009 16:46:14 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081112)

Ian Jackson wrote:
> 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>
>   

Shouldn't that be Ian rather than Stefano? :-)

Alex




reply via email to

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