Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufs: Add device reset in link recovery path

In order to recover from hibern8 exit failure, perform a reset in link
recovery path before issuing link start-up.

Link: https://lore.kernel.org/r/1573798172-20534-2-git-send-email-cang@codeaurora.org
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Can Guo and committed by
Martin K. Petersen
ebdd1dfd 35c33633

+3
+3
drivers/scsi/ufs/ufshcd.c
··· 3859 3859 ufshcd_set_eh_in_progress(hba); 3860 3860 spin_unlock_irqrestore(hba->host->host_lock, flags); 3861 3861 3862 + /* Reset the attached device */ 3863 + ufshcd_vops_device_reset(hba); 3864 + 3862 3865 ret = ufshcd_host_reset_and_restore(hba); 3863 3866 3864 3867 spin_lock_irqsave(hba->host->host_lock, flags);