public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] NAND: DaVinci: allow forced disable of subpage writes
Date: Tue, 18 Feb 2014 09:57:56 -0500	[thread overview]
Message-ID: <20140218145756.GC19081@bill-the-cat> (raw)
In-Reply-To: <1392249622.6733.510.camel@snotra.buserror.net>

On Wed, Feb 12, 2014 at 06:00:22PM -0600, Scott Wood wrote:
> 
> On Tue, 2014-01-28 at 23:19 +0000, Karicheri, Muralidharan wrote:
> > >-----Original Message-----
> > >From: Scott Wood [mailto:scottwood at freescale.com]
> > >Sent: Wednesday, January 22, 2014 3:48 PM
> > >To: Karicheri, Muralidharan
> > >Cc: u-boot at lists.denx.de; Rini, Tom; Andrianov, Vitaly
> > >Subject: Re: [U-Boot] [PATCH 5/5] NAND: DaVinci: allow forced disable of subpage writes
> > >
> > >On Mon, 2014-01-20 at 17:10 -0500, Murali Karicheri wrote:
> > >> This patch introduces a configurable mechanism to disable subpage
> > >> writes in the DaVinci NAND driver.
> > >>
> > >> Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
> > >> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
> > >> ---
> > >>  drivers/mtd/nand/davinci_nand.c |    3 +++
> > >>  1 file changed, 3 insertions(+)
> > >>
> > >> diff --git a/drivers/mtd/nand/davinci_nand.c
> > >> b/drivers/mtd/nand/davinci_nand.c index 5b17d7b..75b03a7 100644
> > >> --- a/drivers/mtd/nand/davinci_nand.c
> > >> +++ b/drivers/mtd/nand/davinci_nand.c
> > >> @@ -609,6 +609,9 @@ void davinci_nand_init(struct nand_chip *nand)
> > >> #ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
> > >>  	nand->bbt_options	  |= NAND_BBT_USE_FLASH;
> > >>  #endif
> > >> +#ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
> > >> +	nand->options	  |= NAND_NO_SUBPAGE_WRITE;
> > >> +#endif
> > >>  #ifdef CONFIG_SYS_NAND_HW_ECC
> > >>  	nand->ecc.mode = NAND_ECC_HW;
> > >>  	nand->ecc.size = 512;
> > >
> > >Why does it need to be configurable?
> > >
> > 
> > Same driver used in multiple platforms, and on some platforms like the one
> > I work with doesn't support subpage writes and has to be disabled.
> 
> The option needs to be documented, and it should be either named in a
> davinci-specific manner, or the documentation should clearly list which
> drivers pay attention to it.

Agreed.

> It seems odd though, that the ability to support subpage writes is an
> independent thing rather than a consequence of some other variable such
> as controller version.

I suspect this is similar to the OMAP driver where we could support
subpages but it gets tricky coordinating with the HW ECC engine for BCH8
and higher.  Perhaps there are davinci targets with smaller ECC levels
where it works out OK but keystone is doing BCH8 or 16 and it's not
worth the savings.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140218/c75a2a56/attachment.pgp>

  reply	other threads:[~2014-02-18 14:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 22:10 [U-Boot] [PATCH 0/5] preparation to intriduce keystone support Murali Karicheri
2014-01-20 22:10 ` [U-Boot] [PATCH 1/5] tools: mkimage: add support for gpimage format Murali Karicheri
2014-01-20 22:46   ` Wolfgang Denk
2014-01-20 22:56     ` Tom Rini
     [not found]     ` <3E54258959B69E4282D79E01AB1F32B70466CE4A@DFLE11.ent.ti.com>
2014-01-21 19:34       ` Wolfgang Denk
2014-01-21 21:23         ` Tom Rini
2014-01-20 22:10 ` [U-Boot] [PATCH 2/5] ubifs: fix checkpatch warning Murali Karicheri
2014-02-21 19:56   ` [U-Boot] [U-Boot,2/5] " Tom Rini
2014-01-20 22:10 ` [U-Boot] [PATCH 3/5] ubifs: return filesize from ubifs load operations Murali Karicheri
2014-02-21 19:14   ` Tom Rini
2014-01-20 22:10 ` [U-Boot] [PATCH 4/5] arm: add support for arch timer Murali Karicheri
2014-01-20 22:50   ` Wolfgang Denk
     [not found]     ` <3E54258959B69E4282D79E01AB1F32B70466CE69@DFLE11.ent.ti.com>
2014-01-21 19:35       ` Wolfgang Denk
2014-01-20 22:10 ` [U-Boot] [PATCH 5/5] NAND: DaVinci: allow forced disable of subpage writes Murali Karicheri
2014-01-20 22:51   ` Wolfgang Denk
     [not found]     ` <3E54258959B69E4282D79E01AB1F32B70466CE81@DFLE11.ent.ti.com>
2014-01-21 19:37       ` Wolfgang Denk
2014-01-22 20:48   ` Scott Wood
     [not found]     ` <3E54258959B69E4282D79E01AB1F32B704672974@DFLE11.ent.ti.com>
2014-02-13  0:00       ` Scott Wood
2014-02-18 14:57         ` Tom Rini [this message]
2014-02-19 23:33           ` Murali Karicheri

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=20140218145756.GC19081@bill-the-cat \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /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