From: Johan Hovold Date: Wed, 17 Mar 2010 22:06:07 +0000 (+0100) Subject: USB: serial: re-implement multi-urb writes in generic driver X-Git-Tag: v2.6.35-rc1~471^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d514ca227e1ac81d0906a4ccf2aa171f50a600;p=pandora-kernel.git USB: serial: re-implement multi-urb writes in generic driver Use dynamic transfer buffer sizes since it is more efficient to let the host controller do the partitioning to fit endpoint size. This way we also do not use more than one urb per write request. Replace max_in_flight_urbs with multi_urb_write flag in struct usb_serial_driver to enable multi-urb writes. Use MAX_TX_URBS=40 and a max buffer size of PAGE_SIZE to prevent DoS attacks. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed