[PATCH 01/10] mtd: set the cell information for ONFI nand

Gupta, Pekon pekon at ti.com
Tue Aug 13 00:10:59 EDT 2013


> 
> On Tue, Aug 13, 2013 at 11:03:14AM +0800, Huang Shijie wrote:
> > 于 2013年08月13日 08:49, Brian Norris 写道:
> >      currently), we should modify it so that is a reliable source of
> >      *only* 1
> >      piece of information -- the number of bits per cell. Currently, it
> > do you need to rename the cellinfo to bits_per_cell, or add a new field :
> > bits_per_cell?
> 
> Well, my whole point was that 'cellinfo' is really not very useful for
> us. We just mask it off all the time, and it makes life more
> complicated.
> 
> So I'd just rename cellinfo to bits_per_cell and change its
> assignment/usage appropriately.
> 
[Pekon]: How about moving 'bit_per_cell' info to chip->options ?
Considering 'bit_per_cell' info is similar to NAND_BUSWIDTH_16..
- It can be determined by reading ONFI parameters. OR
- It can be taken from 'nand_flash_id' table. OR
- And it can be provided along with board-data (which now is obsolete).

with regards, pekon


More information about the linux-mtd mailing list