RE: [EXT] [PATCH v1 1/3] scsi: ufs: fix empty check of error history
From: Bean Huo (beanhuo)
Date: Mon Jan 13 2020 - 04:28:55 EST
Hi, Stanley
>
> Currently checking if an error history element is empty or not is by its "value". In
> most cases, value is error code.
>
> However this checking is not correct because some errors or events do not
> specify any values in error history so values remain as 0, and this will lead to
> incorrect empty checking.
>
Do you think this is a bug of UFS host controller? According to the UFS host Spec,
If there had error detected in each layer, at least bit31 in its error code register
Should be set to 1.
Why there was an error happening, but host didn't set this bit31?
Thanks.
//Bean