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

Skip to content
Commit 1a340d8b authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

scsi: sd: Avoid sending medium write commands if device is write protected



The SYNCHRONIZE_CACHE command is a medium write command and hence can
fail when the device is write protected. Avoid sending such commands by
making sure that write-cache-enable is disabled even though the device
claim to support it.

Change-Id: I90eac425a52e22d3f6fc00b74d32497e7a998c0c
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent 5d0b9e82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment