USB: musb_host, fix ep0 fifo flushing
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 27 Mar 2009 00:38:30 +0000 (17:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 17:50:25 +0000 (10:50 -0700)
commit78322c1a64387673f46afb8b5e31edec94e9603d
tree811809247734b7bac96e7dbea5f82693c3be1078
parente4813eec8d47c8299d968bd5349dc881fa481c26
USB: musb_host, fix ep0 fifo flushing

The MUSB host side can't share generic TX FIFO flush logic
with EP0; the EP0 TX status register bits are different
from those for other entpoints.

Resolve this issue by providing a new EP0-specific routine
to flush and reset the FIFO, which pays careful attention to
restrictions listed in the latest programmer's guide.  This
gets rid of an open issue whereby the usbtest control write
test (#14) failed.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_host.c