RE: [PATCH v2 1/3] scsi: ufs: add write booster feature support

From: Avri Altman
Date: Wed Apr 22 2020 - 06:30:33 EST



> +
> + if (!hba->dev_info.b_presrv_uspc_en &&
> + (avail_buf <= UFS_WB_10_PERCENT_BUF_REMAIN))
> + return true;
If you are in reduced mode, but avail_buf > 10%,
you still get into ufshcd_wb_presrv_usrspc_keep_vcc_on(),
Which you don't want.

> +
> + return ufshcd_wb_presrv_usrspc_keep_vcc_on(hba, avail_buf);
> +}
> +

Thanks,
Avri