Re: [PATCH 2/2] scsi: ufs: Do not rely on prefetched data

From: Stanley Chu
Date: Mon Mar 16 2020 - 09:47:43 EST


Hi Can,

On Mon, 2020-03-16 at 00:06 -0700, Can Guo wrote:
> We were setting bActiveICCLevel attribute for UFS device only once but
> type of this attribute has changed from persistent to volatile since UFS
> device specification v2.1. This attribute is set to the default value after
> power cycle or hardware reset event. It isn't safe to rely on prefetched
> data (only used for bActiveICCLevel attribute now). Hence this change
> removes the code related to data prefetching and set this parameter on
> every attempt to probe the UFS device.
>
> Signed-off-by: Can Guo <cang@xxxxxxxxxxxxxx>

Reviewed and Tested by: Stanley Chu <stanley.chu@xxxxxxxxxxxx>