usb: musb: use DMA mode 1 whenever possible
authorRoger Quadros <rogerq@ti.com>
Tue, 7 Aug 2012 13:09:56 +0000 (16:09 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 7 Aug 2012 13:16:34 +0000 (16:16 +0300)
Do not rely on any hints from gadget drivers and use DMA mode 1
whenever we expect data of at least the endpoint's packet size and
have not yet received a short packet.

The last packet if short is always transferred using DMA mode 0.

This patch fixes USB throughput issues in mass storage mode for
host to device transfers.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found