linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: "'bbrezillon@kernel.org'" <bbrezillon@kernel.org>,
	"'richard@nod.at'" <richard@nod.at>,
	"'frieder.schrempf@kontron.de'" <frieder.schrempf@kontron.de>,
	"'marek.vasut@gmail.com'" <marek.vasut@gmail.com>,
	"'linux-mtd@lists.infradead.org'" <linux-mtd@lists.infradead.org>,
	"'kernel@pengutronix.de'" <kernel@pengutronix.de>,
	'Peter Pan' <peterpandong@micron.com>,
	"Shivamurthy Shastri \(sshivamurthy\)" <sshivamurthy@micron.com>
Subject: Re: [EXT] Re: [PATCH] mtd: spinand: micron: add support for MT29F1G01AAADD
Date: Sat, 24 Aug 2019 12:40:48 +0200	[thread overview]
Message-ID: <20190824124048.6345abb3@xps13> (raw)
In-Reply-To: <20190821071914.ymfpvio3o5ano2y5@pengutronix.de>

Hi Marco,

Marco Felsch <m.felsch@pengutronix.de> wrote on Wed, 21 Aug 2019
09:19:14 +0200:

> Hi Shivamurthy, Miquel,
> 
> On 19-08-20 11:33, Shivamurthy Shastri (sshivamurthy) wrote:
> > Hi Marco,  
> 
> [ ... ]
> 
> > > > Okay. Just one last question. What is the common way to go to specify
> > > > the free area? By this I mean that the NAND has two areas to store the
> > > > user metadata calling it 'user metadata I' and 'user metadata II'. 'user
> > > > metadata II' isn't ecc protected so I skip them. But the current
> > > > supported chip does not skip the user metadata area which isn't
> > > > protected [1] table 10.
> > > >
> > > > [1] https://www.micron.com/~/media/documents/products/data-
> > > > sheet/nand-flash/70-series/m79a_2gb_3v_nand_spi.pdf  
> 
> @Miquel
> Do you can me help with that?

The xxx_ooblayout_free/ecc helpers are here for that. Section is the
number of distinct chunks you have in the OOB. If you have two chunks
but (metadata I and II) but you don't want to expose the unprotected
bytes, then just hide metadata II with a

if (section)
       return -ERANGE


Does this answer your question?

> 
> > > 
> > > I have written patch to make helpers to be more generic.
> > > They work for Micron's M78A, M79A and M70A series SPI NANDs.
> > >   
> > 
> > I missed link in last email, here it is.
> > 
> > http://patchwork.ozlabs.org/patch/1134724/  
> 
> This patch seem not to address my ooblayout.. So my patch is still
> needed.
> 
> Regards,
>   Marco
> 

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2019-08-24 10:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14  8:22 [PATCH] mtd: spinand: micron: add support for MT29F1G01AAADD Marco Felsch
2019-08-19  8:17 ` Miquel Raynal
2019-08-19 13:30   ` Marco Felsch
2019-08-19 14:34     ` Miquel Raynal
2019-08-20  6:39       ` Marco Felsch
2019-08-20 11:31         ` [EXT] " Shivamurthy Shastri (sshivamurthy)
2019-08-20 11:33           ` Shivamurthy Shastri (sshivamurthy)
2019-08-21  7:19             ` Marco Felsch
2019-08-24 10:40               ` Miquel Raynal [this message]
2019-08-20 11:35           ` Marco Felsch
2019-08-20  8:28   ` Uwe Kleine-König
2019-08-20  8:32     ` Miquel Raynal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190824124048.6345abb3@xps13 \
    --to=miquel.raynal@bootlin.com \
    --cc=bbrezillon@kernel.org \
    --cc=frieder.schrempf@kontron.de \
    --cc=kernel@pengutronix.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=m.felsch@pengutronix.de \
    --cc=marek.vasut@gmail.com \
    --cc=peterpandong@micron.com \
    --cc=richard@nod.at \
    --cc=sshivamurthy@micron.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).