scsi: ufs: Add retry flow for failed HBA enabling
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 12 Nov 2020 05:45:37 +0000 (13:45 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Nov 2020 04:31:39 +0000 (23:31 -0500)
commit6081b12ceb7d6e58346ce359282cdc1ed8282b76
tree546cf7ebefe449b6c874c92b0ed697db46f19ffb
parent5443bdc4cc777f3629f02e934fef418e9d921809
scsi: ufs: Add retry flow for failed HBA enabling

Once HBA enabling has failed, add retry mechanism and allow vendors to
apply specific tweaks before the next retry. For example, vendors can do
vendor-specific host reset flow in variant function
"ufshcd_vops_hce_enable_notify()".

Link: https://lore.kernel.org/r/20201112054537.22494-1-stanley.chu@mediatek.com
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c