usb: musb: host: release dma channels if no active io
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Thu, 21 Jun 2012 11:48:12 +0000 (17:18 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 22 Jun 2012 10:15:55 +0000 (13:15 +0300)
commit8c778db9f01a1b6c785890b5fd83c7addfd3eb3a
tree3a03a527f30759f951cb6887e1dbcbe1e9d6446e
parentd7dbdb5e5fe809aa3d4c33b33943c94321dfdd06
usb: musb: host: release dma channels if no active io

Currently DMA channels are allocated and they remain allocated
even if there is no active data transfer. Added channel_release()
whenever there is no pending request.

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