USB: g_mass_storage: Always allow disabling mass storage by writing to lun file
authorMike Lockwood <lockwood@android.com>
Thu, 29 Jul 2010 18:42:24 +0000 (14:42 -0400)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:34 +0000 (09:09 -0700)
commit1dabc19e7f8a49cc2cb9dc3989b707470a0c9d90
tree1d9932031e5f177fbd19f4b44fb4031f773fde73
parent2311937725994d67ea771ed386ee107a1dbd20cb
USB: g_mass_storage: Always allow disabling mass storage by writing to lun file

For android builds we disable the check for curlun->prevent_medium_removal.
Instead we let the framework manage unmounting policy, as we sometimes need
to unmount after the media has been removed.
This also helps support hosts that do not inform the device when the media
has been unmounted.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/storage_common.c