[PATCH 09/13] USBATM: measure buffer size in bytes; force valid sizes

Duncan Sands baldrick at free.fr
Fri Jan 13 04:52:38 EST 2006

Change the module parameters rcv_buf_size and snd_buf_size to
specify buffer sizes in bytes rather than ATM cells.  Since
there is some danger that users may not notice this change,
the parameters are renamed to rcv_buf_bytes etc.  The transmit
buffer needs to be a multiple of the ATM cell size in length,
while the receive buffer should be a multiple of the endpoint
maxpacket size (this wasn't enforced before, which causes trouble
with isochronous transfers), so enforce these restrictions.  Now
that the usbatm probe method inspects the endpoint maxpacket size,
minidriver bind routines need to set the correct alternate setting
for the interface in their bind routine.  This is the reason for
the speedtch changes.

Signed-off-by:	Duncan Sands <baldrick at free.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 09-bytes
Type: text/x-diff
Size: 9193 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/usbatm/attachments/20060113/5a6b15a5/09-bytes-0001.bin

More information about the Usbatm mailing list