]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfdba50412d993159d41ec20ac0c173a34900cf5
tree9506a9ec54bc1245fac73f6bc850315511e56ca2
parentb8ff37405c05e9bdde7a1968187b2ba949a2359b
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