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)
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

Simple merge