diff options
| author | Luo Jiaxing <[email protected]> | 2021-10-12 12:26:27 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-10-13 02:46:06 +0000 |
| commit | 00aeaf329a3a1ea3d3606fefa1d29f69f828bd21 (patch) | |
| tree | e7c4785a5c892817ab5de888c7f67ccd81365b21 /drivers/scsi/libsas/sas_init.c | |
| parent | scsi: hisi_sas: Wait for phyup in hisi_sas_control_phy() (diff) | |
| download | kernel-00aeaf329a3a1ea3d3606fefa1d29f69f828bd21.tar.gz kernel-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/[email protected]
Signed-off-by: Luo Jiaxing <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
| -rw-r--r-- | drivers/scsi/libsas/sas_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index 37cc92837fdf..b640e09af6a4 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c @@ -254,7 +254,7 @@ static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset) } } -static int sas_phy_enable(struct sas_phy *phy, int enable) +int sas_phy_enable(struct sas_phy *phy, int enable) { int ret; enum phy_func cmd; @@ -286,6 +286,7 @@ static int sas_phy_enable(struct sas_phy *phy, int enable) } return ret; } +EXPORT_SYMBOL_GPL(sas_phy_enable); int sas_phy_reset(struct sas_phy *phy, int hard_reset) { |
