musb_hdrc: fix some bugs in the updated host side code
authorDavid Brownell <david-b@pacbell.net>
Thu, 28 Sep 2006 14:47:44 +0000 (17:47 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 28 Sep 2006 14:47:44 +0000 (17:47 +0300)
 - Remove an oops in the queue fault cleanup path, caused by using the
   wrong giveback routine (heavy weight vs lighter-weight).  Move a few
   key bits of code into that lighter weight version.

 - Trigger that lighter-weight cleanup during URB completion, when the
   URB in question can't yet been handed off to the hardware even if
   it's at the queue head.

 - Reduce syslog noise when those fault cleanup paths are triggered from
   scatterlist calls by usb-storage.

 - Paranoia: when scheduling, insist that the endpoint fifo isn't smaller
   than required.

Oops observed courtesy of a slightly flakey usb-storage device, which
once again proves itself handy for testing.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

No differences found