lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAyq3SZv__sJhc5aQ7AUCYKpumu79hq=1ci-wekM9PgghM9zuQ@mail.gmail.com>
Date: Tue, 8 Oct 2024 17:19:42 +0800
From: Cheng Ming Lin <linchengming884@...il.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: vigneshr@...com, linux-mtd@...ts.infradead.org, 
	linux-kernel@...r.kernel.org, richard@....at, alvinzhou@...c.com.tw, 
	leoyu@...c.com.tw, Cheng Ming Lin <chengminglin@...c.com.tw>
Subject: Re: [PATCH 1/2] mtd: spi-nand: Add fixups for read retry

Hi Miquel,

Miquel Raynal <miquel.raynal@...tlin.com> 於 2024年10月8日 週二 下午4:55寫道:
>
> Hi,
>
> linchengming884@...il.com wrote on Tue, 8 Oct 2024 14:25:25 +0800:
>
> > Hi Miquel,
> >
> > Miquel Raynal <miquel.raynal@...tlin.com> 於 2024年10月7日 週一 下午4:33寫道:
> > >
> > > Hi Cheng Ming,
> > >
> > > > > > @@ -325,7 +373,8 @@ static const struct spinand_info macronix_spinand_table[] = {
> > > > > >                                             &update_cache_variants),
> > > > > >                    SPINAND_HAS_QE_BIT,
> > > > > >                    SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout,
> > > > > > -                                  mx35lf1ge4ab_ecc_get_status)),
> > > > > > +                                  mx35lf1ge4ab_ecc_get_status),
> > > > > > +                  SPINAND_FIXUPS(&read_retry_fixups)),
> > > > > >       SPINAND_INFO("MX35UF1GE4AC",
> > > > > >                    SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x92, 0x01),
> > > > > >                    NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
> > > > >
> > > > > I expect a patch targeting the core first, and then the changes in the
> > > > > Macronix driver.
> > > >
> > > > Got it, so do you prefer that we switch to using flags instead?
> > >
> > > Not necessarily, did I?
> > >
> > > ...
> > >
> >
> > Using a flag instead of fixups allows this patch to target the core first,
> > and reduces changes in the Macronix driver.
>
> Propose what ever you think is best. You can also look at how it is
> done in raw NAND. But always include the core changes first, please.
> It is not related to how you implement it.
>

Thank you so much for your suggestion. I will ensure the core changes are
addressed first, as you mentioned. Also, I did refer to how it's done in raw
NAND when working on this patch. I really appreciate your guidance and will
definitely keep your words in mind.

> >
> > > > > >       const struct spinand_manufacturer *manufacturer;
> > > > > >       void *priv;
> > > > > > +     int read_retries;
> > > > >
> > > > > Any reason to keep this variable signed?
> > > >
> > > > No, we can simply change from int to u8.
> > >
> > > Just unsigned int is fine.
> > >
> >
> > Sure, thanks!
> >
> > > Thanks,
> > > Miquèl
> >
> > Thanks,
> > Cheng Ming Lin
>
>
> Thanks,
> Miquèl

Thanks,
Cheng Ming Lin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ