]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commit23da5183108c13e21375057b4ff54080a0cfdca3
treecc749b9b3d5b50310b6cf5e62241bcb66ff4a37f
parente9b7cce82c5c6ef1e446f0ea578ae8328623e2a8
musb_hdrc:  fix some bugs in the updated host side code

 - 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>
drivers/usb/musb/musb_host.c