mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
UPSTREAM: scsi: ufs: export ufshcd_link_recovery
Export ufshcd_link_recovery to allow vendors to recover failed link in vendor's callbacks. Bug: 151050916 Change-Id: Id69485882f0943e71db06286fbe171ac9fe3a4b2 (cherry picked from commit 087c5efafa48661ac98184fbf8826a1a79dc5784) 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> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
ca2a30f1ae
commit
77c34d5327
2 changed files with 3 additions and 1 deletions
|
|
@ -4000,7 +4000,7 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ufshcd_link_recovery(struct ufs_hba *hba)
|
||||
int ufshcd_link_recovery(struct ufs_hba *hba)
|
||||
{
|
||||
int ret;
|
||||
unsigned long flags;
|
||||
|
|
@ -4027,6 +4027,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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -918,6 +918,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue