RE: RE: [PATCH v21 2/4] scsi: ufs: L2P map management for HPB read
From: Daejun Park
Date: Mon Feb 22 2021 - 03:16:46 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?
>
I fixed code to add HPB hint with suspend state.
Thanks,
Daejun