Re: [PATCH] scsi: ufs: core: Fix RPMB region size detection for UFS 2.2
From: Alexey Charkov
Date: Thu Feb 05 2026 - 03:33:17 EST
Hi Bean,
On Wed, Feb 4, 2026 at 12:37 PM Bean Huo <huobean@xxxxxxxxx> wrote:
>
> On Fri, 2026-01-30 at 18:49 +0400, Alexey Charkov wrote:
> > > > The spec says it can only be up to 16MB maximum (see section 12.4.3.1
> > > > RPMB Resources), so it should always fit. Happy to add a comment about
> > > > that.
> > > >
> > > > Best regards,
> > > > Alexey
> > >
> > > Hi Alexey,
> > >
> > > Thanks for the clarification on the 16MB RPMB limit - that addresses the
> > > overflow concern.
> > >
> > >
> > > In your above operation, why not use SZ_128K to avoid the magic number?
> > > BTW, please update your comment.
> >
> > Good point, thanks Bean! Will amend in v2.
> >
> > Best regards,
> > Alexey
>
> Alexey,
>
> did you send your new version patch?
Just sent it out, thanks for your help!
Best regards,
Alexey