Re: PD: [Bug 92341] xHCI USB driver, support for non-conformant HS USB devices with bulk endpoints of maxpacket size different than 512

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

 



On Sat, 31 Jan 2015, Kazimierz Marzec wrote:

> Good day,
> could You please take a look at
> https://bugzilla.kernel.org/show_bug.cgi?id=92341
> Regards.
> 
> Dnia Pi�tek, 30 Stycznia 2015 17:15 <bugzilla-daemon@xxxxxxxxxxxxxxxxxxx> napisa�(a)
> > https://bugzilla.kernel.org/show_bug.cgi?id=92341
> >  
> > --- Comment #1 from Greg Kroah-Hartman <greg@xxxxxxxxx> ---
> > On Fri, Jan 30, 2015 at 01:58:09PM +0000, bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
> > wrote:
> > > https://bugzilla.kernel.org/show_bug.cgi?id=92341
> > >
> > >             Bug ID: 92341
> > >            Summary: xHCI USB driver, support for non-conformant HS USB
> > >                     devices with bulk endpoints of maxpacket size
> > >                     different than 512
> >  
> > Please send to the linux-usb@xxxxxxxxxxxxxxx mailing list.

You could try applying the patch below.  I don't know if there's any 
reason why the xhci-hcd driver forces all bulk endpoints to use a 
maxpacket size of 512.

Alan Stern



Index: usb-3.18/drivers/usb/host/xhci-mem.c
===================================================================
--- usb-3.18.orig/drivers/usb/host/xhci-mem.c
+++ usb-3.18/drivers/usb/host/xhci-mem.c
@@ -1464,9 +1464,6 @@ int xhci_endpoint_init(struct xhci_hcd *
 		max_burst = ep->ss_ep_comp.bMaxBurst;
 		break;
 	case USB_SPEED_HIGH:
-		/* Some devices get this wrong */
-		if (usb_endpoint_xfer_bulk(&ep->desc))
-			max_packet = 512;
 		/* bits 11:12 specify the number of additional transaction
 		 * opportunities per microframe (USB 2.0, section 9.6.6)
 		 */

--
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