]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: gadget: only enable AUTOCLEAR in double buffered case
authorFelipe Balbi <balbi@ti.com>
Fri, 24 Sep 2010 10:44:15 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:56 +0000 (10:21 -0700)
commit978e4b16d4b82a0068657213e5aa71fcb0ddd7c2
treeed3bcc1e3e37350050505b1b2bd48d4a2f8c6681
parentdeea8f333e66d93d5550b567e1473f7da32e4b86
usb: musb: gadget: only enable AUTOCLEAR in double buffered case

commit 633ba7876b96ec339ef685357e2f7c60b5a8ce85 broke
g_file_storage functionality by enabling AUTOCLEAR on
all cases without caring for all gadget drivers.

This patch will only enable AUTOCLEAR if our endpoint's
FIFO was configured with double buffering support. Note
this is not a complete fix, double buffered case still
doesn't work always, but that hasn't been working for
quite some time. Other than reverting the entire commit
and breaking testusb with double buffered case again,
I decided it was better to fix the single buffered case
and spend more time fixing double buffered case properly.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c