summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2017-12-08 10:42:06 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-01-09 03:59:28 +0100
commit8eea9dd84e450e5262643823691108f2a208a2ac (patch)
tree955ffe8a05c8ef84e5c5cdf491cc7bd6922808af /include
parentscsi: libsas: shut down the PHY if events reached the threshold (diff)
downloadlinux-8eea9dd84e450e5262643823691108f2a208a2ac.tar.xz
linux-8eea9dd84e450e5262643823691108f2a208a2ac.zip
scsi: libsas: make the event threshold configurable
Add a sysfs attr that LLDD can configure it for every host. We made an example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> CC: John Garry <john.garry@huawei.com> CC: Johannes Thumshirn <jthumshirn@suse.de> CC: Ewan Milne <emilne@redhat.com> CC: Christoph Hellwig <hch@lst.de> CC: Tomas Henzl <thenzl@redhat.com> CC: Dan Williams <dan.j.williams@intel.com> Acked-by: John Garry <john.garry@huawei.com> #for hisi_sas part Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/libsas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index de8f043475c2..3769615d4ce9 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -681,6 +681,7 @@ extern int sas_bios_param(struct scsi_device *,
sector_t capacity, int *hsc);
extern struct scsi_transport_template *
sas_domain_attach_transport(struct sas_domain_function_template *);
+extern struct device_attribute dev_attr_phy_event_threshold;
int sas_discover_root_expander(struct domain_device *);