All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <ffainelli@freebox.fr>
To: linux-arm-kernel@lists.infradead.org
Cc: Huang Shijie <b32955@freescale.com>,
	linux@arm.linux.org.uk, dwmw2@infradead.org,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH 5/7] add GPMI support for imx28
Date: Wed, 23 Mar 2011 16:16:56 +0100	[thread overview]
Message-ID: <201103231616.56375.ffainelli@freebox.fr> (raw)
In-Reply-To: <19850.2584.566366.251874@ipc1.ka-ro>

Hello,

On Wednesday 23 March 2011 15:56:24 Lothar Waßmann wrote:
> Hi,
> 
> Huang Shijie writes:
> > Hi Lothar:
> >     Thanks a lot for your carefully review.
> > > 
> > > Hi,
> > > 
> > > some general comments:
> > > - Why are you not using the existing nand_ids but inventing your own
> > > 
> > >    database?
> > 
> > The nand_ids{} contains poor information for me.
> > Such as :
> > [1]The nand_ids does not have the enough information for the page
> > size,oob size for some new NANDs.
> > 
> >     And you can not get the information from parsing the NAND ids, such
> > 
> > as some Micron NANDs.
> 
> You could use it for the standard chips where you do not need
> additional information. That way most NAND chips could be supported
> out of the box without having to modify the driver.
> 
> > [2]I need the timing information of the NAND. The nand_ids DOES not have
> > it. I have to
> > 
> >     read the datasheet of the NAND, and add it to my database.
> 
> Do we really need exact timing data for each individual chip?
> Or couldn't we live with some sane timing that works for most chips
> and provide some means to specify a different timing via
> platform_data?

I suppose this is the way it should be done, but then you might some need some 
sort of NAND detection available before registering the driver. Eventually, 
the bootloader might have configured the appropriate timings already.

Have you considered using ONFI chips? They have standard timings at least.

> 
> > > - What is the purpose of the 'rom_helpers'? To me it looks like they
> > > 
> > >    are doing something that should be done in the mtd partition
> > >    handlers, not in the flash chip driver.
> > 
> > We have saled a lot products based the imx23 or imx28.
> > All the products support the nand boot mode by flashing the kernel to
> > the kernel partitions of the nands.
> > In order to compliant to the old product, the layout of the nand is
> > constraint to the current situation:
> > [1] first a boot partition for the kernel.
> > [2] the rest is for other uses, such as rootfs.
> > 
> > So I have to use the rom_helpers to split the kernel partition before
> > the real MTD partition initializations.
> 
> Why can't you just create appropriate partitions using the standard
> partition handlers?
> 
> 
> Lothar Waßmann

WARNING: multiple messages have this Message-ID (diff)
From: ffainelli@freebox.fr (Florian Fainelli)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7] add GPMI support for imx28
Date: Wed, 23 Mar 2011 16:16:56 +0100	[thread overview]
Message-ID: <201103231616.56375.ffainelli@freebox.fr> (raw)
In-Reply-To: <19850.2584.566366.251874@ipc1.ka-ro>

Hello,

On Wednesday 23 March 2011 15:56:24 Lothar Wa?mann wrote:
> Hi,
> 
> Huang Shijie writes:
> > Hi Lothar:
> >     Thanks a lot for your carefully review.
> > > 
> > > Hi,
> > > 
> > > some general comments:
> > > - Why are you not using the existing nand_ids but inventing your own
> > > 
> > >    database?
> > 
> > The nand_ids{} contains poor information for me.
> > Such as :
> > [1]The nand_ids does not have the enough information for the page
> > size,oob size for some new NANDs.
> > 
> >     And you can not get the information from parsing the NAND ids, such
> > 
> > as some Micron NANDs.
> 
> You could use it for the standard chips where you do not need
> additional information. That way most NAND chips could be supported
> out of the box without having to modify the driver.
> 
> > [2]I need the timing information of the NAND. The nand_ids DOES not have
> > it. I have to
> > 
> >     read the datasheet of the NAND, and add it to my database.
> 
> Do we really need exact timing data for each individual chip?
> Or couldn't we live with some sane timing that works for most chips
> and provide some means to specify a different timing via
> platform_data?

I suppose this is the way it should be done, but then you might some need some 
sort of NAND detection available before registering the driver. Eventually, 
the bootloader might have configured the appropriate timings already.

Have you considered using ONFI chips? They have standard timings at least.

> 
> > > - What is the purpose of the 'rom_helpers'? To me it looks like they
> > > 
> > >    are doing something that should be done in the mtd partition
> > >    handlers, not in the flash chip driver.
> > 
> > We have saled a lot products based the imx23 or imx28.
> > All the products support the nand boot mode by flashing the kernel to
> > the kernel partitions of the nands.
> > In order to compliant to the old product, the layout of the nand is
> > constraint to the current situation:
> > [1] first a boot partition for the kernel.
> > [2] the rest is for other uses, such as rootfs.
> > 
> > So I have to use the rom_helpers to split the kernel partition before
> > the real MTD partition initializations.
> 
> Why can't you just create appropriate partitions using the standard
> partition handlers?
> 
> 
> Lothar Wa?mann

  reply	other threads:[~2011-03-23 15:16 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16  1:42 [PATCH 0/7] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-03-16  1:42 ` [PATCH 1/7] ARM: add GPMI support for imx23/imx28 Huang Shijie
2011-03-16 10:13   ` Lothar Waßmann
     [not found]     ` <4D809453.4090603@freescale.com>
     [not found]       ` <19840.43943.592336.854865@ipc1.ka-ro>
2011-03-17  2:19         ` Huang Shijie
2011-03-17  2:19           ` Huang Shijie
2011-03-17 10:36           ` Lothar Waßmann
2011-03-17 10:36             ` Lothar Waßmann
2011-03-18  2:06             ` Huang Shijie
2011-03-18  2:06               ` Huang Shijie
2011-03-16  1:42 ` [PATCH 2/7] add the common code for GPMI driver Huang Shijie
2011-03-22 12:36   ` =?utf-8?Q?Lothar_Wa=C3=9Fmann?=
2011-03-23  3:41     ` Huang Shijie
2011-03-23  3:41       ` Huang Shijie
2011-03-16  1:42 ` [PATCH 3/7] add the database for the NANDs Huang Shijie
2011-03-16  1:42 ` [PATCH 4/7] add GPMI support for imx23 Huang Shijie
2011-03-16  1:42 ` [PATCH 5/7] add GPMI support for imx28 Huang Shijie
2011-03-22 12:46   ` Lothar Waßmann
2011-03-23  3:11     ` Huang Shijie
2011-03-23  3:11       ` Huang Shijie
2011-03-23 14:56       ` Lothar Waßmann
2011-03-23 14:56         ` Lothar Waßmann
2011-03-23 15:16         ` Florian Fainelli [this message]
2011-03-23 15:16           ` Florian Fainelli
2011-03-24  3:07           ` Huang Shijie
2011-03-24  3:07             ` Huang Shijie
2011-03-24  3:03         ` Huang Shijie
2011-03-24  3:03           ` Huang Shijie
2011-03-24  7:34           ` Lothar Waßmann
2011-03-24  7:34             ` Lothar Waßmann
2011-03-24  8:26             ` Jason Liu
2011-03-24  8:26               ` Jason Liu
2011-03-24  8:32               ` Wolfram Sang
2011-03-24  8:32                 ` Wolfram Sang
2011-03-24  8:33               ` Lothar Waßmann
2011-03-24  8:33                 ` Lothar Waßmann
2011-03-24  8:51             ` Huang Shijie
2011-03-24  8:51               ` Huang Shijie
2011-03-24 13:54               ` Florian Fainelli
2011-03-24 13:54                 ` Florian Fainelli
2011-03-25  2:50                 ` Huang Shijie
2011-03-25  2:50                   ` Huang Shijie
2011-03-16  1:42 ` [PATCH 6/7] dmaengine: change the flags of request_irq() Huang Shijie
2011-03-16 10:13   ` Lothar Waßmann
2011-03-16 12:31     ` 答复: " Huang Shijie-B32955
2011-03-18  6:12     ` Huang Shijie
2011-03-16  1:42 ` [PATCH 7/7] MTD : add GPMI driver in the config and Makefile Huang Shijie
  -- strict thread matches above, loose matches on Subject: below --
2011-03-16  1:55 [PATCH 0/7] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-03-16  1:55 ` [PATCH 5/7] add GPMI support for imx28 Huang Shijie
2011-03-16  1:55   ` Huang Shijie
2011-03-31  9:47   ` Artem Bityutskiy
2011-03-31  9:47     ` Artem Bityutskiy
2011-03-31 10:09     ` Huang Shijie
2011-03-31 10:09       ` Huang Shijie
2011-03-31  9:49   ` Artem Bityutskiy
2011-03-31  9:49     ` Artem Bityutskiy
2011-03-31  9:49   ` Artem Bityutskiy
2011-03-31  9:49     ` Artem Bityutskiy

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=201103231616.56375.ffainelli@freebox.fr \
    --to=ffainelli@freebox.fr \
    --cc=b32955@freescale.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux@arm.linux.org.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.