summaryrefslogtreecommitdiffstats
path: root/include/scsi/libsas.h
diff options
context:
space:
mode:
authorLuo Jiaxing <luojiaxing@huawei.com>2021-10-12 14:26:27 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-13 04:46:06 +0200
commit00aeaf329a3a1ea3d3606fefa1d29f69f828bd21 (patch)
treee7c4785a5c892817ab5de888c7f67ccd81365b21 /include/scsi/libsas.h
parentscsi: hisi_sas: Wait for phyup in hisi_sas_control_phy() (diff)
downloadlinux-00aeaf329a3a1ea3d3606fefa1d29f69f828bd21.tar.xz
linux-00aeaf329a3a1ea3d3606fefa1d29f69f828bd21.zip
scsi: libsas: Export sas_phy_enable()
Export sas_phy_enable() so LLDDs can directly use it to control remote phys. We already do this for companion function sas_phy_reset(). Link: https://lore.kernel.org/r/1634041588-74824-4-git-send-email-john.garry@huawei.com Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/libsas.h')
-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 6fe125a71b60..79e4903bd414 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -664,6 +664,7 @@ extern void sas_suspend_ha(struct sas_ha_struct *sas_ha);
int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates);
int sas_phy_reset(struct sas_phy *phy, int hard_reset);
+int sas_phy_enable(struct sas_phy *phy, int enable);
extern int sas_queuecommand(struct Scsi_Host *, struct scsi_cmnd *);
extern int sas_target_alloc(struct scsi_target *);
extern int sas_slave_configure(struct scsi_device *);