Re: [PATCH v26 4/4] scsi: ufs: Add HPB 2.0 support

Can Guo
2021-03-04T06:26:40Z

>
> - if (!ufshpb_is_support_chunk(transfer_len))
> - return;
> + if (!ufshpb_is_support_chunk(hpb, transfer_len) &&
> + (ufshpb_is_legacy(hba) && (transfer_len !=
> HPB_LEGACY_CHUNK_HIGH)))
> + return 0;
>

This is looks awkward, can we put the checks in
ufshpb_is_support_chunk()?

Thanks,

Can Guo.