RE: [PATCH v6 1/9] rpmb: add Replay Protected Memory Block (RPMB) subsystem

From: Winkler, Tomas
Date: Sat Sep 24 2016 - 16:30:59 EST


>
>
> >
> > Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> > Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> Tested-by: Avri Altman <Avri.Altman@xxxxxxxxxxx>
>
> - mmc - full functionality. One issue found that was fixed on V6: patch V6 2/9.
> - ufs - read & read counter only. Testing is still wip.
>
>
> > +static int rpmb_request_verify(struct rpmb_dev *rdev, struct rpmb_data
> > +*rpmbd) {
>
> Seems excessive - Isn't the standard should be enforced by the device?

Yes the device is responsible to detect the issues in the protocol. The rpmb_request_verify is called only for the managed interface (rpmb_cmd_req) the raw interface (rpm_cmd_seq) is going through. Second, we only check more or less if we can accommodate the request/response into the arguments. If there is a specific issue you see in this check, please let me know.

Thanks
Tomas