usb: musb: gadget: don't program dma for zero byte tx
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 20 Jul 2012 05:37:23 +0000 (11:07 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 3 Aug 2012 06:34:40 +0000 (09:34 +0300)
commitd17d535fec07dbd298b3f65838ec8d63c26ab360
treebaeee2399e5c20d7605762d7f79b97795c38518d
parent3132122c664dd9361e2179e8a388d87ca89ace6c
usb: musb: gadget: don't program dma for zero byte tx

This is to reduce the overhead of dma programming for zero byte
transmit as same can be done using pio mode.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c