[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <713065cd1b7c9fb08393fab8cb44e3a345a55be1.camel@gmail.com>
Date: Sat, 27 Sep 2025 10:40:49 +0200
From: Bean Huo <huobean@...il.com>
To: Bart Van Assche <bvanassche@....org>, avri.altman@....com,
alim.akhtar@...sung.com, jejb@...ux.ibm.com, martin.petersen@...cle.com,
can.guo@....qualcomm.com, ulf.hansson@...aro.org, beanhuo@...ron.com,
jens.wiklander@...aro.org
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 3/3] scsi: ufs: core: Add OP-TEE based RPMB driver
for UFS devices
On Tue, 2025-09-23 at 13:27 -0700, Bart Van Assche wrote:
> On 9/23/25 8:39 AM, Bean Huo wrote:
> > + ret = scsi_execute_cmd(sdev, cdb, send ? REQ_OP_DRV_OUT :
> > REQ_OP_DRV_IN,
> > + buffer, len, /*timeout=*/30 * HZ, 0, NULL);
> > + return ret <= 0 ? ret : -EIO;
>
> scsi_execute_cmd() can return a negative value, zero, or a positive
> value. Both negative and positive values should be considered as an
> error.
>
> > +MODULE_DESCRIPTION("UFS RPMB integration into the RPMB framework using SCSI
> > Secure In/Out");
>
> That's a very long module description ... Can this description be made
> shorter without reducing clarity?
>
> > + u8 rpmb_region0_size;
> > + u8 rpmb_region1_size;
> > + u8 rpmb_region2_size;
> > + u8 rpmb_region3_size;
>
> Why four separate members instead of an array?
>
> Thanks,
>
> Bart.
Bart,
thanks, we will fix them in next version.
Kind regards,
Bean
Powered by blists - more mailing lists