RE: [PATCH 12/12] mtd: nand-bbt: move nand_bbt.c to mtd folder

2015-09-28 Thread peterpandong
ut first, a simpler comment: > > On Fri, Sep 25, 2015 at 06:48:05AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > Since struct nand_chip is removed from nand_bbt.c, BBT is now > > shareable. Both NAND and SPI NAND can use it. So move nand_bbt.c > > from nand/ foler to mtd

RE: [PATCH 12/12] mtd: nand-bbt: move nand_bbt.c to mtd folder

2015-09-28 Thread peterpandong
ut first, a simpler comment: > > On Fri, Sep 25, 2015 at 06:48:05AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > Since struct nand_chip is removed from nand_bbt.c, BBT is now > > shareable. Both NAND and SPI NAND can use it. So move nand_bbt.c > > from nand/ foler to mtd

RE: [PATCH 00/12] mtd: nand_bbt: introduce independent nand BBT

2015-09-25 Thread peterpandong
command should do the trick: > > git send-email /*.patch > > Best Regards, > > Boris > > On Fri, 25 Sep 2015 06:34:34 + > Peter Pan 潘栋 (peterpandong) wrote: > > > Currently nand_bbt.c is tied with struct nand_chip, and it makes other > > NAND family chips

RE: [PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
+ Peter Pan 潘栋 (peterpandong) wrote: > Migrating existing BBT definitions from bbm.h to nand_bbt.h > > Signed-off-by: Brian Norris > [Peter: correct misspelling. s/neccecary/necessary/] > Signed-off-by: Peter Pan > --- > include/linux

[PATCH 12/12] mtd: nand-bbt: move nand_bbt.c to mtd folder

2015-09-25 Thread peterpandong
Since struct nand_chip is removed from nand_bbt.c, BBT is now shareable. Both NAND and SPI NAND can use it. So move nand_bbt.c from nand/ foler to mtd/ folder and create MTD_NAND_BBT config. Both NAND and SPI NAND should depend on MTD_NAND_BBT. Signed-off-by: Peter Pan --- drivers/mtd/Kconfig

[PATCH 10/12] mtd: nand_bbt: remove NAND_BBT_DYNAMICSTRUCT macro

2015-09-25 Thread peterpandong
nand_bbt doesn't need nand badblock_pattern any more. So remove NAND_BBT_DYNAMICSTRUCT from nand_bbt.h Signed-off-by: Brian Norris --- include/linux/mtd/nand_bbt.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/linux/mtd/nand_bbt.h b/include/linux/mtd/nand_bbt.h index

[PATCH 11/12] mtd: nand: remove nand_chip.bbt

2015-09-25 Thread peterpandong
With new nand_bbt.c, nand_chip doesn't need bbt element any more Signed-off-by: Brian Norris --- include/linux/mtd/nand.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index fb3f148..bc49f04 100644 --- a/include/linux/mtd/nand.h +++

[PATCH 09/12] mtd: nand_bbt: remove old API definitions

2015-09-25 Thread peterpandong
remove old BBT APIs Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_bbt.c | 110 +--- include/linux/mtd/nand.h| 3 -- 2 files changed, 22 insertions(+), 91 deletions(-) diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c

[PATCH 08/12] mtd: nand_bbt: remove struct nand_chip from nand_bbt.c

2015-09-25 Thread peterpandong
This commit contains most of modification. But the job is quite simple --- replace struct nand_chip with struct nand_bbt. There is no algorithm change, just replacement. Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_bbt.c | 393 ++-- 1 file

[PATCH 07/12] mtd: nand: make nand_erase_nand() static

2015-09-25 Thread peterpandong
nand_bbt.c doesn't need to call nand_erase_nand() any more. Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_base.c | 5 - include/linux/mtd/nand.h | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c

[PATCH 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-09-25 Thread peterpandong
Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris [Peter: remove @buf in create_bbt()] Signed-off-by: Peter Pan ---

[PATCH 05/12] mtd: nand: use new BBT API instead of old ones

2015-09-25 Thread peterpandong
Use new BBT APIs (nand_bbt_*()) in NAND. Keep old APIs (nand_*_bbt()) exist temporarily. Signed-off-by: Brian Norris [Peter: 1. use nand_bbt_markbad_factory() in docg4.c and implement 2. nand_create_factory_badblock_pattern(), nand_is_bad_bbm() and nand_default_bbt() in

[PATCH 04/12] mtd: nand_bbt: add nand_bbt_markbad_factory() interface

2015-09-25 Thread peterpandong
Some nand controller drivers(like docg4.c) mark factory bad block mark by accessing bbt buffer directly, so create this API to avoid breaking layer. Signed-off-by: Peter Pan --- drivers/mtd/nand/nand_bbt.c | 32 +--- include/linux/mtd/nand_bbt.h | 1 + 2 files

[PATCH 03/12] mtd: nand_bbt: add new API definitions

2015-09-25 Thread peterpandong
Add new API definitions for nand_bbt to replace old ones without any users. These API includes: int nand_bbt_init(struct nand_bbt *bbt); void nand_bbt_release(struct nand_bbt *bbt); int nand_bbt_markbad(struct nand_bbt *bbt, loff_t offs); int

[PATCH 02/12] mtd: nand_bbt: introduce struct nand_bbt

2015-09-25 Thread peterpandong
We put every information nand_bbt.c needed from outside into struct nand_bbt, include: @mtd: pointer to MTD device structure @is_bad_bbm:check if a block is factory bad block @mark_bad_bbm: imitate a block as factory bad block @erase: erase block bypassing

[PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
Migrating existing BBT definitions from bbm.h to nand_bbt.h Signed-off-by: Brian Norris [Peter: correct misspelling. s/neccecary/necessary/] Signed-off-by: Peter Pan --- include/linux/mtd/bbm.h | 96 +-- include/linux/mtd/nand_bbt.h | 118

FW: [PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
Migrating existing BBT definitions from bbm.h to nand_bbt.h Signed-off-by: Brian Norris [Peter: correct misspelling. s/neccecary/necessary/] Signed-off-by: Peter Pan --- include/linux/mtd/bbm.h | 96 +-- include/linux/mtd/nand_bbt.h | 118

[PATCH 00/12] mtd: nand_bbt: introduce independent nand BBT

2015-09-25 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Separate struct nand_chip from BBT code can make current BBT shareable. We create struct nand_bbt to take place of

[PATCH 02/12] mtd: nand_bbt: introduce struct nand_bbt

2015-09-25 Thread peterpandong
We put every information nand_bbt.c needed from outside into struct nand_bbt, include: @mtd: pointer to MTD device structure @is_bad_bbm:check if a block is factory bad block @mark_bad_bbm: imitate a block as factory bad block @erase: erase block bypassing

[PATCH 03/12] mtd: nand_bbt: add new API definitions

2015-09-25 Thread peterpandong
Add new API definitions for nand_bbt to replace old ones without any users. These API includes: int nand_bbt_init(struct nand_bbt *bbt); void nand_bbt_release(struct nand_bbt *bbt); int nand_bbt_markbad(struct nand_bbt *bbt, loff_t offs); int

[PATCH 07/12] mtd: nand: make nand_erase_nand() static

2015-09-25 Thread peterpandong
nand_bbt.c doesn't need to call nand_erase_nand() any more. Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_base.c | 5 - include/linux/mtd/nand.h | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c

[PATCH 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-09-25 Thread peterpandong
Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris [Peter: remove @buf in create_bbt()] Signed-off-by:

FW: [PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
Migrating existing BBT definitions from bbm.h to nand_bbt.h Signed-off-by: Brian Norris [Peter: correct misspelling. s/neccecary/necessary/] Signed-off-by: Peter Pan --- include/linux/mtd/bbm.h | 96 +--

[PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
Migrating existing BBT definitions from bbm.h to nand_bbt.h Signed-off-by: Brian Norris [Peter: correct misspelling. s/neccecary/necessary/] Signed-off-by: Peter Pan --- include/linux/mtd/bbm.h | 96 +--

[PATCH 04/12] mtd: nand_bbt: add nand_bbt_markbad_factory() interface

2015-09-25 Thread peterpandong
Some nand controller drivers(like docg4.c) mark factory bad block mark by accessing bbt buffer directly, so create this API to avoid breaking layer. Signed-off-by: Peter Pan --- drivers/mtd/nand/nand_bbt.c | 32 +---

[PATCH 05/12] mtd: nand: use new BBT API instead of old ones

2015-09-25 Thread peterpandong
Use new BBT APIs (nand_bbt_*()) in NAND. Keep old APIs (nand_*_bbt()) exist temporarily. Signed-off-by: Brian Norris [Peter: 1. use nand_bbt_markbad_factory() in docg4.c and implement 2. nand_create_factory_badblock_pattern(), nand_is_bad_bbm() and

[PATCH 09/12] mtd: nand_bbt: remove old API definitions

2015-09-25 Thread peterpandong
remove old BBT APIs Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_bbt.c | 110 +--- include/linux/mtd/nand.h| 3 -- 2 files changed, 22 insertions(+), 91 deletions(-) diff --git a/drivers/mtd/nand/nand_bbt.c

[PATCH 08/12] mtd: nand_bbt: remove struct nand_chip from nand_bbt.c

2015-09-25 Thread peterpandong
This commit contains most of modification. But the job is quite simple --- replace struct nand_chip with struct nand_bbt. There is no algorithm change, just replacement. Signed-off-by: Brian Norris --- drivers/mtd/nand/nand_bbt.c | 393

[PATCH 10/12] mtd: nand_bbt: remove NAND_BBT_DYNAMICSTRUCT macro

2015-09-25 Thread peterpandong
nand_bbt doesn't need nand badblock_pattern any more. So remove NAND_BBT_DYNAMICSTRUCT from nand_bbt.h Signed-off-by: Brian Norris --- include/linux/mtd/nand_bbt.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/linux/mtd/nand_bbt.h

[PATCH 11/12] mtd: nand: remove nand_chip.bbt

2015-09-25 Thread peterpandong
With new nand_bbt.c, nand_chip doesn't need bbt element any more Signed-off-by: Brian Norris --- include/linux/mtd/nand.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index fb3f148..bc49f04 100644 ---

RE: [PATCH 00/12] mtd: nand_bbt: introduce independent nand BBT

2015-09-25 Thread peterpandong
command should do the trick: > > git send-email /*.patch > > Best Regards, > > Boris > > On Fri, 25 Sep 2015 06:34:34 + > Peter Pan 潘栋 (peterpandong) <peterpand...@micron.com> wrote: > > > Currently nand_bbt.c is tied with struct nand_chip, and it

RE: [PATCH 01/12] mtd: nand_bbt: new header for nand family BBT

2015-09-25 Thread peterpandong
+ Peter Pan 潘栋 (peterpandong) <peterpand...@micron.com> wrote: > Migrating existing BBT definitions from bbm.h to nand_bbt.h > > Signed-off-by: Brian Norris <computersforpe...@gmail.com> > [Peter: correct misspelling. s/neccecary/necessary/] > Signed-off-by: Peter P

[PATCH 00/12] mtd: nand_bbt: introduce independent nand BBT

2015-09-25 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Separate struct nand_chip from BBT code can make current BBT shareable. We create struct nand_bbt to take place of

[PATCH 12/12] mtd: nand-bbt: move nand_bbt.c to mtd folder

2015-09-25 Thread peterpandong
Since struct nand_chip is removed from nand_bbt.c, BBT is now shareable. Both NAND and SPI NAND can use it. So move nand_bbt.c from nand/ foler to mtd/ folder and create MTD_NAND_BBT config. Both NAND and SPI NAND should depend on MTD_NAND_BBT. Signed-off-by: Peter Pan

[PATCH v2] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-07-07 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Parameterize a few relevant device detail information into a new nand_bbt struct, and set some hooks for chip specified

[PATCH v2] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-07-07 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Parameterize a few relevant device detail information into a new nand_bbt struct, and set some hooks for chip specified

RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-06-25 Thread peterpandong
ase > find it below. > > Best wishes, > Kamil Debski > > From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On > Behalf > Of Peter Pan ?? (peterpandong) > Sent: 15 May 2015 08:32 > > > Currently nand_bbt.c is tied with struct nand_chip, and it ma

RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-06-25 Thread peterpandong
: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf Of Peter Pan ?? (peterpandong) Sent: 15 May 2015 08:32 Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt

RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-06-02 Thread peterpandong
Ping > > Currently nand_bbt.c is tied with struct nand_chip, and it makes other > NAND family chips hard to use nand_bbt.c. Maybe it's the reason why > onenand has own bbt(onenand_bbt.c). > > Parameterize a few relevant device detail information into a new > nand_bbt struct, and set some hooks

RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-06-02 Thread peterpandong
Ping Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Parameterize a few relevant device detail information into a new nand_bbt struct, and set some hooks for chip

[PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-05-15 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Parameterize a few relevant device detail information into a new nand_bbt struct, and set some hooks for chip specified

[PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c

2015-05-15 Thread peterpandong
Currently nand_bbt.c is tied with struct nand_chip, and it makes other NAND family chips hard to use nand_bbt.c. Maybe it's the reason why onenand has own bbt(onenand_bbt.c). Parameterize a few relevant device detail information into a new nand_bbt struct, and set some hooks for chip specified

RE: [PATCH 1/6] mtd: nand_bbt: drop unnecessary header

2015-04-23 Thread peterpandong
On 23 April 2015 at 15:47, Rafał Miłecki wrote: > On 22 April 2015 at 19:50, Brian Norris > wrote: > > On Thu, Apr 16, 2015 at 02:09:41AM +, Peter Pan 潘栋 > (peterpandong) wrote: > >> > >> Signed-off-by: Brian Norris > >> Signed-off-by: Peter Pan >

RE: [PATCH 1/6] mtd: nand_bbt: drop unnecessary header

2015-04-23 Thread peterpandong
On 23 April 2015 at 15:47, Rafał Miłecki wrote: On 22 April 2015 at 19:50, Brian Norris computersforpe...@gmail.com wrote: On Thu, Apr 16, 2015 at 02:09:41AM +, Peter Pan 潘栋 (peterpandong) wrote: Signed-off-by: Brian Norris computersforpe...@gmail.com Signed-off-by: Peter Pan

RE: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread peterpandong
On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: > > On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > The diskonchip driver almost uses the default nand_base hooks as-is, > > except that it provides custom on-flash BBT descripto

RE: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread peterpandong
On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) wrote: The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using

[PATCH 6/6] mtd: nand: make new BBT work

2015-04-15 Thread peterpandong
Continue with Brain Norris's work. Allocate and initialize struct nand_bbt in nand_default_bbt()(nand_base.c). Remove .bbt from nand_chip. Complete hook nand_is_bad_bbm(nand_bbt.is_bad_bbm). Allocate and initialize badblock_pattern in nand_chip if badblock_pattern does not exist. And clean some

[PATCH 5/6] nand: big BBT overhaul

2015-04-15 Thread peterpandong
Not complete. Need to actually allocate and initialize struct nand_bbt. TBD: should struct nand_bbt be embedded in mtd_info? Might help provide some automatic routine registration. Signed-off-by: Brian Norris Signed-off-by: Peter Pan --- drivers/mtd/nand/docg4.c | 3 +-

[PATCH 4/6] mtd: nand_bbt: unify/fix error handling in nand_scan_bbt()

2015-04-15 Thread peterpandong
Don't leak this->bbt, and return early if check_create() fails. It helps to have a single error path to avoid these problems. Signed-off-by: Brian Norris Signed-off-by: Peter Pan --- drivers/mtd/nand/nand_bbt.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff

[PATCH 3/6] mtd: nand_bbt: make nand_scan_bbt() static

2015-04-15 Thread peterpandong
This implementation detail is no longer needed outside of nand_bbt.c. Signed-off-by: Brian Norris Signed-off-by: Peter Pan --- drivers/mtd/nand/nand_bbt.c | 2 +- include/linux/mtd/nand.h| 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_bbt.c

[PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-15 Thread peterpandong
The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization code into a private 'late_init' hook which handles all the private details. Note the

[PATCH 1/6] mtd: nand_bbt: drop unnecessary header

2015-04-15 Thread peterpandong
Signed-off-by: Brian Norris Signed-off-by: Peter Pan --- drivers/mtd/nand/nand_bbt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 9bb8453..307a285 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c @@

[PATCH 5/6] nand: big BBT overhaul

2015-04-15 Thread peterpandong
Not complete. Need to actually allocate and initialize struct nand_bbt. TBD: should struct nand_bbt be embedded in mtd_info? Might help provide some automatic routine registration. Signed-off-by: Brian Norris computersforpe...@gmail.com Signed-off-by: Peter Pan peterpand...@micron.com ---

[PATCH 3/6] mtd: nand_bbt: make nand_scan_bbt() static

2015-04-15 Thread peterpandong
This implementation detail is no longer needed outside of nand_bbt.c. Signed-off-by: Brian Norris computersforpe...@gmail.com Signed-off-by: Peter Pan peterpand...@micron.com --- drivers/mtd/nand/nand_bbt.c | 2 +- include/linux/mtd/nand.h| 1 - 2 files changed, 1 insertion(+), 2

[PATCH 4/6] mtd: nand_bbt: unify/fix error handling in nand_scan_bbt()

2015-04-15 Thread peterpandong
Don't leak this-bbt, and return early if check_create() fails. It helps to have a single error path to avoid these problems. Signed-off-by: Brian Norris computersforpe...@gmail.com Signed-off-by: Peter Pan peterpand...@micron.com --- drivers/mtd/nand/nand_bbt.c | 19 --- 1 file

[PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-15 Thread peterpandong
The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization code into a private 'late_init' hook which handles all the private details. Note the

[PATCH 1/6] mtd: nand_bbt: drop unnecessary header

2015-04-15 Thread peterpandong
Signed-off-by: Brian Norris computersforpe...@gmail.com Signed-off-by: Peter Pan peterpand...@micron.com --- drivers/mtd/nand/nand_bbt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 9bb8453..307a285 100644 ---

[PATCH 6/6] mtd: nand: make new BBT work

2015-04-15 Thread peterpandong
Continue with Brain Norris's work. Allocate and initialize struct nand_bbt in nand_default_bbt()(nand_base.c). Remove .bbt from nand_chip. Complete hook nand_is_bad_bbm(nand_bbt.is_bad_bbm). Allocate and initialize badblock_pattern in nand_chip if badblock_pattern does not exist. And clean some

RE: [PATCH 0/3] An alternative to SPI NAND

2015-02-01 Thread peterpandong
On Sat, Jan 31, 2015 at 15:02:29AM -0300, Brian Norris wrote: > > On Fri, Jan 30, 2015 at 08:47:29AM -0300, Ezequiel Garcia wrote: > > On 01/29/2015 09:57 PM, Peter Pan 潘栋 (peterpandong) wrote: > > [..] > > > > > > Currently, we are working on sharing the

RE: [PATCH 0/3] An alternative to SPI NAND

2015-02-01 Thread peterpandong
On Sat, Jan 31, 2015 at 15:02:29AM -0300, Brian Norris wrote: On Fri, Jan 30, 2015 at 08:47:29AM -0300, Ezequiel Garcia wrote: On 01/29/2015 09:57 PM, Peter Pan 潘栋 (peterpandong) wrote: [..] Currently, we are working on sharing the bbt code. I think your and Brain's suggestion

RE: [PATCH 0/3] An alternative to SPI NAND

2015-01-29 Thread peterpandong
wrote: > >>>> > >>>> Hi Qi Wang, > >>>> > >>>> On 01/07/2015 11:45 PM, Qi Wang 王起 (qiwang) wrote: > >>>>> Hi Brian, > >>>>> > >>>>> On Thu, Jan 08, 2015 at 9:03:24AM +, Brian Nor

RE: [PATCH 0/3] An alternative to SPI NAND

2015-01-29 Thread peterpandong
Brian, On Thu, Jan 08, 2015 at 9:03:24AM +, Brian Norris wrote: On Thu, Jan 08, 2015 at 12:47:24AM +, Peter Pan 潘栋 (peterpandong) wrote: Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 + drivers/mtd/Kconfig|2 + drivers/mtd

RE: [PATCH 0/3] An alternative to SPI NAND

2015-01-19 Thread peterpandong
> On Thu, Jan 08, 2015 at 12:47:24AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 + > > drivers/mtd/Kconfig|2 + > > drivers/mtd/Makefile |1 +

RE: [PATCH 0/3] An alternative to SPI NAND

2015-01-19 Thread peterpandong
On Thu, Jan 08, 2015 at 12:47:24AM +, Peter Pan 潘栋 (peterpandong) wrote: Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 + drivers/mtd/Kconfig|2 + drivers/mtd/Makefile |1 + drivers/mtd/spi-nand/Kconfig

RE: [PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-11 Thread peterpandong
> On 01/08/2015 02:04 AM, Peter Pan 潘栋 (peterpandong) wrote: > >>> This commit adds the devicetree binding document that specifies the > >>> spi nand devices support. > >>> > >>> Signed-off-by: Peter Pan > >>> ---

RE: [PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-11 Thread peterpandong
On 01/08/2015 02:04 AM, Peter Pan 潘栋 (peterpandong) wrote: This commit adds the devicetree binding document that specifies the spi nand devices support. Signed-off-by: Peter Pan peterpand...@micron.com --- Documentation/devicetree/bindings/mtd/spi-nand.txt | 22

RE: [PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-07 Thread peterpandong
> > This commit adds the devicetree binding document that specifies the > > spi nand devices support. > > > > Signed-off-by: Peter Pan > > --- > > Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 > ++ > > 1 file changed, 22 insertions(+) > > create mode 100644

[PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-07 Thread peterpandong
This commit adds the devicetree binding document that specifies the spi nand devices support. Signed-off-by: Peter Pan --- Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH 2/3] mtd: spi-nand: support spi-nand devices

2015-01-07 Thread peterpandong
This commit is to support Micron MT29F and Gigadevice GD5F spi nand devices under spi-nand framework. Signed-off-by: Peter Pan --- drivers/mtd/spi-nand/Makefile | 1 + drivers/mtd/spi-nand/spi-nand-device.c | 281 + 2 files changed, 282 insertions(+)

[PATCH 1/3] mtd: spi-nand framework

2015-01-07 Thread peterpandong
Add framework to support spi nand devices. The code is derived from parallel nand code. Signed-off-by: Peter Pan --- drivers/mtd/Kconfig |2 + drivers/mtd/Makefile |1 + drivers/mtd/spi-nand/Kconfig |7 + drivers/mtd/spi-nand/Makefile

[PATCH 0/3] An alternative to SPI NAND

2015-01-07 Thread peterpandong
This patchset is an alternative to Ezequiel's series[1]. This patchset separate SPI NAND code and Parallel NAND code, make SPI NAND have its own spi_nand_scan, read, write, BBM mechanism, so that it would be better for code maintenance in the future. TODO - 1. This patchset is

RE: [PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-07 Thread peterpandong
This commit adds the devicetree binding document that specifies the spi nand devices support. Signed-off-by: Peter Pan peterpand...@micron.com --- Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH 0/3] An alternative to SPI NAND

2015-01-07 Thread peterpandong
This patchset is an alternative to Ezequiel's series[1]. This patchset separate SPI NAND code and Parallel NAND code, make SPI NAND have its own spi_nand_scan, read, write, BBM mechanism, so that it would be better for code maintenance in the future. TODO - 1. This patchset is

[PATCH 1/3] mtd: spi-nand framework

2015-01-07 Thread peterpandong
Add framework to support spi nand devices. The code is derived from parallel nand code. Signed-off-by: Peter Pan peterpand...@micron.com --- drivers/mtd/Kconfig |2 + drivers/mtd/Makefile |1 + drivers/mtd/spi-nand/Kconfig |7 +

[PATCH 2/3] mtd: spi-nand: support spi-nand devices

2015-01-07 Thread peterpandong
This commit is to support Micron MT29F and Gigadevice GD5F spi nand devices under spi-nand framework. Signed-off-by: Peter Pan peterpand...@micron.com --- drivers/mtd/spi-nand/Makefile | 1 + drivers/mtd/spi-nand/spi-nand-device.c | 281 + 2 files

[PATCH 3/3] mtd: spi-nand: add devicetree binding

2015-01-07 Thread peterpandong
This commit adds the devicetree binding document that specifies the spi nand devices support. Signed-off-by: Peter Pan peterpand...@micron.com --- Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644