summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2014-11-13 12:55:04 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:00:53 -0700
commit36c183b7430f9170497c4467e60a70d07fce239c (patch)
tree5744beadc0f96179288753de5a043a40159401bd /include
parent3abbdb57e3f3461646821cb7b56178643261f0b5 (diff)
scsi: Adjust DBD setting in mode sense for caching mode page per LLD
Host sends MODE_SENSE_10 with caching mode page, to check if the device supports the cache feature. Some LLD standards requires DBD field to be set to 1. This patch allows LLD to define the setting of DBD if required. Change-Id: I7f6c0ff6613516c3ef49aacc0679b96b8bd9ccc8 Signed-off-by: Maya Erez <merez@codeaurora.org> [mattw@codeaurora.org: resolved a trivial context conflict in Scsi_Host struct definition] Signed-off-by: Matt Wagantall <mattw@codeaurora.org> [subhashj@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/scsi_host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index fcfa3d7f5e7e..8618601b06ca 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -672,6 +672,12 @@ struct Scsi_Host {
unsigned short_inquiry:1;
/*
+ * Set "DBD" field in mode_sense caching mode page in case it is
+ * mandatory by LLD standard.
+ */
+ unsigned set_dbd_for_caching:1;
+
+ /*
* Optional work queue to be utilized by the transport
*/
char work_q_name[20];