RE: [PATCH v21 2/4] scsi: ufs: L2P map management for HPB read
From: Avri Altman
Date: Sun Feb 21 2021 - 07:10:39 EST
> +void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
> +{
> + struct ufshpb_lu *hpb = ufshpb_get_hpb_data(lrbp->cmd->device);
> + struct utp_hpb_rsp *rsp_field;
> + int data_seg_len;
> +
> + if (!hpb)
> + return;
> +
> + if (ufshpb_get_state(hpb) != HPB_PRESENT) {
> + dev_notice(&hpb->sdev_ufs_lu->sdev_dev,
> + "%s: ufshpb state is not PRESENT\n", __func__);
> + return;
> + }
Theoretically, SSU response upiu may carry hpb sense data, isn't it?
Thanks,
Avri