Skip to content

Commit

Permalink
scsi: ufs: export ufshcd_link_recovery
Browse files Browse the repository at this point in the history
Export ufshcd_link_recovery to allow vendors to recover failed link in
vendor's callbacks.

Link: https://lore.kernel.org/r/20200327095329.10083-2-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Stanley Chu authored and Martin K. Petersen committed Mar 29, 2020
1 parent 394b949 commit 087c5ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/ufs/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3808,7 +3808,7 @@ static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode)
return ret;
}

static int ufshcd_link_recovery(struct ufs_hba *hba)
int ufshcd_link_recovery(struct ufs_hba *hba)
{
int ret;
unsigned long flags;
Expand All @@ -3835,6 +3835,7 @@ static int ufshcd_link_recovery(struct ufs_hba *hba)

return ret;
}
EXPORT_SYMBOL_GPL(ufshcd_link_recovery);

static int __ufshcd_uic_hibern8_enter(struct ufs_hba *hba)
{
Expand Down
1 change: 1 addition & 0 deletions drivers/scsi/ufs/ufshcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ int ufshcd_alloc_host(struct device *, struct ufs_hba **);
void ufshcd_dealloc_host(struct ufs_hba *);
int ufshcd_hba_enable(struct ufs_hba *hba);
int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
int ufshcd_link_recovery(struct ufs_hba *hba);
int ufshcd_make_hba_operational(struct ufs_hba *hba);
void ufshcd_remove(struct ufs_hba *);
int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
Expand Down

0 comments on commit 087c5ef

Please sign in to comment.