diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-07 18:51:13 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-07 18:51:13 -0500 |
commit | abaee091a18c19ccd86feb1c8374585d82e96777 (patch) | |
tree | 01602bae73e1278c3d98dafe1c269049927c58ce /include/scsi | |
parent | a2746fb16e41b7c8f02aa4d2605ecce97abbebbd (diff) | |
parent | 3f8d6f2a0797e8c650a47e5c1b5c2601a46f4293 (diff) |
Merge branch 'jejb-scsi' into misc
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 3 | ||||
-rw-r--r-- | include/scsi/scsi_transport_sas.h | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index ed527121031d..fcfa3d7f5e7e 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -668,6 +668,9 @@ struct Scsi_Host { | |||
668 | unsigned use_blk_mq:1; | 668 | unsigned use_blk_mq:1; |
669 | unsigned use_cmd_list:1; | 669 | unsigned use_cmd_list:1; |
670 | 670 | ||
671 | /* Host responded with short (<36 bytes) INQUIRY result */ | ||
672 | unsigned short_inquiry:1; | ||
673 | |||
671 | /* | 674 | /* |
672 | * Optional work queue to be utilized by the transport | 675 | * Optional work queue to be utilized by the transport |
673 | */ | 676 | */ |
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h index 0bd71e2702e3..13c0b2ba1b6c 100644 --- a/include/scsi/scsi_transport_sas.h +++ b/include/scsi/scsi_transport_sas.h | |||
@@ -10,6 +10,15 @@ struct scsi_transport_template; | |||
10 | struct sas_rphy; | 10 | struct sas_rphy; |
11 | struct request; | 11 | struct request; |
12 | 12 | ||
13 | #if !IS_ENABLED(CONFIG_SCSI_SAS_ATTRS) | ||
14 | static inline int is_sas_attached(struct scsi_device *sdev) | ||
15 | { | ||
16 | return 0; | ||
17 | } | ||
18 | #else | ||
19 | extern int is_sas_attached(struct scsi_device *sdev); | ||
20 | #endif | ||
21 | |||
13 | static inline int sas_protocol_ata(enum sas_protocol proto) | 22 | static inline int sas_protocol_ata(enum sas_protocol proto) |
14 | { | 23 | { |
15 | return ((proto & SAS_PROTOCOL_SATA) || | 24 | return ((proto & SAS_PROTOCOL_SATA) || |
@@ -180,6 +189,7 @@ extern int sas_phy_add(struct sas_phy *); | |||
180 | extern void sas_phy_delete(struct sas_phy *); | 189 | extern void sas_phy_delete(struct sas_phy *); |
181 | extern int scsi_is_sas_phy(const struct device *); | 190 | extern int scsi_is_sas_phy(const struct device *); |
182 | 191 | ||
192 | u64 sas_get_address(struct scsi_device *); | ||
183 | unsigned int sas_tlr_supported(struct scsi_device *); | 193 | unsigned int sas_tlr_supported(struct scsi_device *); |
184 | unsigned int sas_is_tlr_enabled(struct scsi_device *); | 194 | unsigned int sas_is_tlr_enabled(struct scsi_device *); |
185 | void sas_disable_tlr(struct scsi_device *); | 195 | void sas_disable_tlr(struct scsi_device *); |