Re: [PATCH] xhci: Fix full speed bInterval encoding.

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

 



On 05/13/2011 10:10 PM, Sarah Sharp wrote:
> Thomas, does this patch make your mouse work under the USB 3.0 port?
> 
> 
> 
>  drivers/usb/host/xhci-mem.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
> index 627f343..9132626 100644
> --- a/drivers/usb/host/xhci-mem.c
> +++ b/drivers/usb/host/xhci-mem.c
> @@ -1046,12 +1046,12 @@ static unsigned int xhci_get_endpoint_interval(struct usb_device *udev,
>  		break;
>  
>  	case USB_SPEED_FULL:
> -		if (usb_endpoint_xfer_int(&ep->desc)) {
> +		if (usb_endpoint_xfer_isoc(&ep->desc)) {
>  			interval = xhci_parse_exponent_interval(udev, ep);
>  			break;
>  		}
>  		/*
> -		 * Fall through for isochronous endpoint interval decoding
> +		 * Fall through for interrupt endpoint interval decoding
>  		 * since it uses the same rules as low speed interrupt
>  		 * endpoints.
>  		 */

I've only tested it for 5 minutes but yes, it seems to fix the problem.

/Thomas Lindroth
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux