summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2014-11-13 13:31:29 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:58:04 -0700
commite2834bc66564a59734746798d37d61a65452bda1 (patch)
treebc880ef190f865abad4a323632a8a67df8c6a9e5 /include/linux/debugobjects.h
parent7223077cfda42eca35eba8fc9024ccc3f36b7d40 (diff)
scsi: ufs: Set DBD setting in mode sense for caching mode page
Host sends MODE_SENSE_10 with caching mode page, to check if the device supports the cache feature. UFS standards requires DBD field to be set to 1. Some card vendors are more strict and check the DBD field, hence respond with CHECK_CONDITION (Sense key set to ILLEGAL_REQUEST and ASC set to INVALID FIELD IN CDB). As a result of the CHECK_CONDITION response, host assumes that the device doesn't support the cache feature and doesn't send SYNCHORONIZE_CACHE commands to flush the device cache. This can result in data corruption in case of sudden power down, when there is data stored in the device cache. This patch fixes the DBD field setting in case of caching mode page. Change-Id: I4d63cba26331f04c34e87b99dbdf17c05ab96839 Signed-off-by: Maya Erez <merez@codeaurora.org> [subhashj@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions