summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2022-09-28 15:01:24 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-18 03:28:09 +0000
commit2d08f329a4f2eace6b041d60132f441fc8e0b616 (patch)
tree23a1f2cb1a06757f5ca9829042440074e6400dde /include/scsi
parent773792e4e704ca1c47e3d9bc6ed5be2a00a22ad5 (diff)
downloadlinux-2d08f329a4f2eace6b041d60132f441fc8e0b616.tar.bz2
scsi: libsas: Introduce sas_find_attached_phy_id() helper
LLDDs are all implementing their own attached phy ID finding code. Factor it out to libsas. Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20220928070130.3657183-3-yanaijie@huawei.com Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: John Garry <john.garry@huawei.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/libsas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index f86b56bf7833..ec6c9ecd8d12 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -746,6 +746,8 @@ int sas_clear_task_set(struct domain_device *dev, u8 *lun);
int sas_lu_reset(struct domain_device *dev, u8 *lun);
int sas_query_task(struct sas_task *task, u16 tag);
int sas_abort_task(struct sas_task *task, u16 tag);
+int sas_find_attached_phy_id(struct expander_device *ex_dev,
+ struct domain_device *dev);
void sas_notify_port_event(struct asd_sas_phy *phy, enum port_event event,
gfp_t gfp_flags);