[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241007103331.55f37dcb@xps-13>
Date: Mon, 7 Oct 2024 10:33:31 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Cheng Ming Lin <linchengming884@...il.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 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?
...
> > > 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.
Thanks,
Miquèl
Powered by blists - more mailing lists