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