Re: ehci-sched.c uses wMaxPacketSize but should use actual isoc urb packetsize

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

 



On Mon, 30 Nov 2009, Hans de Goede wrote:

> Ok, may I place one feature request then, which could even be implemented
> before this new scheduling code gets implemented, can we have a:
> usb_set_interface_ex()

Please avoid Microsoft-isms when naming functions!

> Which has an extra parameter, which is a callback function which can modify
> the interface description for the chosen interface + alt-setting, before
> it gets used / stored.
> 
> This could then in this case be used to change the reported wMaxPacketSize
> for the isoc ep. And could in general be used to work around bugs in
> devices with broken descriptors.

How about instead adding a pair of functions to change the bInterval
and wMaxPacketSize values in the host's copy of an endpoint descriptor?  
Your driver could call these functions and then do a normal
usb_set_interface().

> If this sounds like an acceptable solution I would be happy to take a shot
> at writing a patch for this.

Sure.

Alan Stern

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