Skip to content

Commit 00aeaf3

Browse files
Luojiaxing1991martinkpetersen
authored andcommitted
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>
1 parent 046ab7d commit 00aeaf3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/scsi/libsas/sas_init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset)
254254
}
255255
}
256256

257-
static int sas_phy_enable(struct sas_phy *phy, int enable)
257+
int sas_phy_enable(struct sas_phy *phy, int enable)
258258
{
259259
int ret;
260260
enum phy_func cmd;
@@ -286,6 +286,7 @@ static int sas_phy_enable(struct sas_phy *phy, int enable)
286286
}
287287
return ret;
288288
}
289+
EXPORT_SYMBOL_GPL(sas_phy_enable);
289290

290291
int sas_phy_reset(struct sas_phy *phy, int hard_reset)
291292
{

include/scsi/libsas.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ extern void sas_suspend_ha(struct sas_ha_struct *sas_ha);
664664

665665
int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates);
666666
int sas_phy_reset(struct sas_phy *phy, int hard_reset);
667+
int sas_phy_enable(struct sas_phy *phy, int enable);
667668
extern int sas_queuecommand(struct Scsi_Host *, struct scsi_cmnd *);
668669
extern int sas_target_alloc(struct scsi_target *);
669670
extern int sas_slave_configure(struct scsi_device *);

0 commit comments

Comments
 (0)