From: Anand Gadiyar Date: Wed, 20 Jul 2011 05:11:58 +0000 (-0700) Subject: usb: musb: Enable DMA mode1 RX for transfers without short packets X-Git-Tag: v3.2-rc1~183^2~148^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae52d5458ddb14d5da63054f1d8269a13fe9054;p=pandora-kernel.git usb: musb: Enable DMA mode1 RX for transfers without short packets This patch enables DMA mode1 for the RX path when we know there won't be any short packets. We check that by looking into the short_no_ok flag, if it's true we enable mode1, otherwise we use mode0 to transfer the data. This will result in a throughput performance gain of around 40% for USB mass-storage/mtp use cases. [ balbi@ti.com : updated commit log and code comments slightly ] Signed-off-by: Anand Gadiyar Signed-off-by: Moiz Sonasath Signed-off-by: Vikram Pandita Tested-by: Vikram Pandita Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed