RE: [PATCH v2 6/6] ufs: core: Add advanced RPMB support in ufs_bsg
From: Avri Altman
Date: Tue Nov 22 2022 - 06:33:55 EST
>
> > + sg_cnt = dma_map_sg(hba->host->dma_dev, payload->sg_list,
> > payload->sg_cnt, dir);
> > + if (unlikely(!sg_cnt))
> > + return -ENOMEM;
> > + sg_list = payload->sg_list;
> > + data_len = payload->payload_len;
> > + }
> Isn't bsg_map_buffer does that for you already?
> For both request & reply?
Answering my own question - no it doesn't...
Thanks,
Avri
>
> Thanks,
> Avri