On Tuesday 08 January 2008, Jan Andersson wrote:
> usbtest did not swap the received status information when checking for
> a non-zero value and failed to discover halted endpoints on big endian
> systems.
>
> Signed-off-by: Jan Andersson <[EMAIL PROTECTED]>
ACK. We seem to have had an increase in the number of
testers using big-endina hardware. ;)
> ---
>
> Last attempt to send this did not go well. Hopefully I am more awake
> now :-)
>
> diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
> index ea31621..81755d0 100644
> --- a/drivers/usb/misc/usbtest.c
> +++ b/drivers/usb/misc/usbtest.c
> @@ -1151,6 +1151,7 @@ static int verify_halted (int ep, struct
> dbg ("ep %02x couldn't get halt status, %d", ep, retval);
> return retval;
> }
> + le16_to_cpus(&status);
> if (status != 1) {
> dbg ("ep %02x bogus status: %04x != 1", ep, status);
> return -EINVAL;
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html