]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Refine error history functions
authorStanley Chu <stanley.chu@mediatek.com>
Sat, 5 Dec 2020 11:58:59 +0000 (19:58 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 7 Dec 2020 22:51:49 +0000 (17:51 -0500)
commite9a96ebcd559235424ae5e3b8dba85c2ab5e7cbf
treefa516f9d38eb94d8aea7d898a37c54b82824b1fd
parent75aa53f593bef1c2057ee355b0977ec0ad5d5f2a
scsi: ufs: Refine error history functions

The UFS error history does not only have "history of errors" but also a
log of some other events which are not defined as errors.

This patch fixes the confused naming of related functions and changes the
approach for updating and printing history in preparation of next patch.

This patch does not change any functionality.

Link: https://lore.kernel.org/r/20201205115901.26815-3-stanley.chu@mediatek.com
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
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
drivers/scsi/ufs/ufshcd.h