Re: [PATCH 1/2] mtd: spi-nand: Add support for randomizer

From: Cheng Ming Lin
Date: Fri Aug 08 2025 - 07:35:59 EST


Hi Miquel,

Miquel Raynal <miquel.raynal@xxxxxxxxxxx> 於 2025年8月8日 週五 下午6:15寫道:
>
> Hi Cheng Ming,
>
> On 08/08/2025 at 17:55:02 +08, Cheng Ming Lin <linchengming884@xxxxxxxxx> wrote:
>
> > From: Cheng Ming Lin <chengminglin@xxxxxxxxxxx>
> >
> > Add randomizer operation support for user data scrambling.
> >
> > For more high-reliability concern, if subpage write not available with
> > hardware ECC and then to enable randomizer is recommended by default.
>
> Could we adopt a helper that allows to enable and disable the
> randomizer?

I understand the idea, but from the flash’s perspective, once the
randomizer is enabled, it’s generally not intended to be disabled. So I
feel that providing a disable option might not be meaningful in this
case.

>
> I have no use case in mind right now, but I feel like it would be a
> better approach.
>
> Thanks,
> Miquèl

Thanks,
Cheng Ming Lin