[PATCH 4/8] mtd: Add support for emulated SLC mode on MLC NANDs

Miquel Raynal miquel.raynal at bootlin.com
Thu Jan 9 11:22:22 PST 2020


Hi Boris,

Boris Brezillon <boris.brezillon at collabora.com> wrote on Thu, 9 Jan
2020 20:19:35 +0100:

> On Thu, 9 Jan 2020 19:39:42 +0100 (CET)
> Richard Weinberger <richard at nod.at> wrote:
> 
> > Miquel,
> > 
> > ----- Ursprüngliche Mail -----  
> > >> I suggest giving a name which indicates that we are actually emulating
> > >> an SLC. Maybe MTD_SLC_EMULATION?
> > >> Some MLC NANDs support SLC mode in hardware, MTD_MLC_IN_SLC_MODE reads like
> > >> this feature.    
> > > 
> > > You're right. What about MTD_SLC_ON_MLC_EMULATION?    
> > 
> > Makes sense.
> >     
> > >> The name is misleading. We don't do OOB IO on a SLC NAND,
> > >> we emulate SLC.    
> 
> We should really replace those mtd_oob_ prefixes by something
> more accurate like mtd_io_ at some point (those helpers can do more than
> just read/write the OOB region).

I think I have some WIP about this. Not the time for everything just
during these vacations :p

> 
> > > 
> > > What would you recommend? mtd_oob_io_emul_slc?    
> > 
> > Yes. Let's use "emul_slc" to indicate SLC emulation.  
> 
> How about mtd_io_emulated_slc()?

Fine!

Thanks,
Miquèl



More information about the linux-mtd mailing list