USB: musb: NAK timeout scheme on bulk TX endpoint
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 31 Dec 2010 07:22:30 +0000 (12:52 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:09 +0000 (00:44 +0530)
commit1eb4f6030bbbfcdefd9d7833212d118aaa1b0606
treef526e98aeec1ce437a2b1d1eb4a31f631dbca0c1
parentcf41b6504ec187995900edf1d42a2b9317c9f08a
USB: musb: NAK timeout scheme on bulk TX endpoint

Fixes endpoint starvation issue when more than one bulk QH is
multiplexed on the reserved bulk TX endpoint.

This patch sets the NAK timeout interval for such QHs, and when
a timeout triggers the next QH will be scheduled.

This scheme doesn't work for devices which are connected to a
high to full speed tree (transaction translator) as there is
no NAK timeout interrupt from the musb controller from such
devices.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/usb/musb/musb_host.c