]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79345beb41d4327fb56d096804905d23dda2a508
tree811809247734b7bac96e7dbea5f82693c3be1078
parente892d6539c76b607e563226711dab22fe03a6006
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