]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Do not reset error history during host reset
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 10 Jul 2019 13:38:20 +0000 (21:38 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 22 Jul 2019 20:44:06 +0000 (16:44 -0400)
commita772d80e4bbc61bbc7de6472dbee63953f86c81b
tree5326ea533ad76f48ce0eee538710e0be0573a483
parentd131020a904005a535496cec6a1cd03ae9ab0cc8
scsi: ufs: Do not reset error history during host reset

Currently UFS error history will be reset and lost during host reset flow
by ufschd_probe_hba().

Avoid resetting it so error history can be kept as complete as possible to
improve debugging.

In addition, fix a minor display error in ufshcd_print_err_hist().

[mkp: commit desc clarification]

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c