]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: fix BULK request on different available endpoints
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Wed, 29 Oct 2008 13:10:35 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 22:45:01 +0000 (14:45 -0800)
commit63ec0967e28ce1f5b8c10590ede94721cdbbfdf3
tree9fa6808984c70ade8959f5ac766c1b32d9e629b1
parent358b271e1357ddf66025fb80550c992cb57b5c72
usb: musb: fix BULK request on different available endpoints

Fixes co-working issue of usb serial device with usb/net devices while
oter endpoints are free and can be used.This patch implements the policy
that if endpoint resources are available then different BULK request goes
to different endpoint otherwise they are multiplexed to one reserved
endpoint as currently done.

Switch statement case is reordered in musb_giveback() to take care of
bulk request both in multiplex scenario and otherwise.

NAK limit scheme has to be added for multiplexed BULK request scenario
to avoid endpoint starvation due to usb/net devices.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_host.h