Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fd450a3 authored by Chiranjeevi Velempati's avatar Chiranjeevi Velempati Committed by Stephen Boyd
Browse files

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.

CRs-Fixed: 407992
Change-Id: I914d7961fe06074c09b76d5bbc336d1454598488
Signed-off-by: default avatarChiranjeevi Velempati <cvelempa@codeaurora.org>
parent 30af5e91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -704,7 +704,7 @@ static ssize_t fsg_store_file(struct device *dev, struct device_attribute *attr,
	int		rc = 0;


#ifndef CONFIG_USB_ANDROID_MASS_STORAGE
#if !defined(CONFIG_USB_G_ANDROID)
	/* disabled in android because we need to allow closing the backing file
	 * if the media was removed
	 */