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

Skip to content
Commit 61b14147 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Brandon McAnsh
Browse files

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: I6f76b91fcaeeb057382292b47c408cc93d927950
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: default avatarDolev Raviv <draviv@codeaurora.org>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: default avatarVenkatesh Srinivas <venkateshs@google.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent a1a62b42
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