usb: f_mass_storage: set removable flag in do_inquiry based on LUN
authorEric Nelson <eric.nelson@boundarydevices.com>
Sat, 20 Sep 2014 00:06:46 +0000 (17:06 -0700)
committerMarek Vasut <marex@denx.de>
Mon, 6 Oct 2014 12:50:43 +0000 (14:50 +0200)
commitf9935c87b6c8e81ef8d621bd06d24a78eec8a821
tree8cc214ce9396cae157e54714f2edc4c1c368e38e
parentece91016c46b9945485b41f50589ea92f1f04ce1
usb: f_mass_storage: set removable flag in do_inquiry based on LUN

Without this flag, tools like Alex Page's USB Image Tool
won't see drives exposed over USB Gadget as removable,
and won't allow access to them.
http://www.alexpage.de/usb-image-tool/

The code was pulled from the main-line kernel:
drivers/usb/gadget/function/f_mass_storage.c

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
drivers/usb/gadget/f_mass_storage.c