On Mon, Aug 11, 2014 at 5:40 AM, Dolev Raviv <dra...@codeaurora.org> wrote: > From: Sujit Reddy Thumma <sthu...@codeaurora.org> > > 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. > > Signed-off-by: Sujit Reddy Thumma <sthu...@codeaurora.org> > Signed-off-by: Dolev Raviv <dra...@codeaurora.org>
Looks good. Setting SWP is defined to flush caches; there is no other reason I could imagine WP media would need a SYNCHRONIZE CACHE. Reviewed-by: Venkatesh Srinivas <venkate...@google.com> -- vs; -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html