usb: gadget: f_mass_storage: Make us pass USBCV MSC Compliance tests
authorRoger Quadros <roger.quadros@nokia.com>
Mon, 9 May 2011 10:08:07 +0000 (13:08 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 21:14:58 +0000 (14:14 -0700)
commit95ed32366748e2034e82c9e738c312df8fb3d3a9
tree9506a9ec54bc1245fac73f6bc850315511e56ca2
parent1b9ba000177ee47bcc5b44c7c34e48e735f5f9b1
usb: gadget: f_mass_storage: Make us pass USBCV MSC Compliance tests

Defer the SET_CONFIG and SET_INTERFACE control transfer's data/status
stages till we are ready to process new CBW from the host. This way we
ensure that we don't loose any CBW during MSC compliance tests and cause
lock up.

Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_mass_storage.c