lkml.org 
[lkml]   [2015]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c
Date
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 specified part. Allocate
> and initialize struct nand_bbt in nand_base.c.
>
> Most of the patch is borrowed from Brian Norris
> <computersforpeace@gmail.com>.
> http://git.infradead.org/users/norris/linux-
> mtd.git/shortlog/refs/heads/nand-bbt
>
> Signed-off-by: Peter Pan <peterpandong@micron.com>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> ---
> drivers/mtd/nand/docg4.c | 8 +-
> drivers/mtd/nand/nand_base.c | 145 +++++++++++-
> drivers/mtd/nand/nand_bbt.c | 518 +++++++++++++++++------------------
> --------
> include/linux/mtd/bbm.h | 96 +-------
> include/linux/mtd/nand.h | 11 +-
> include/linux/mtd/nand_bbt.h | 160 +++++++++++++
> 6 files changed, 516 insertions(+), 422 deletions(-)
> create mode 100644 include/linux/mtd/nand_bbt.h
>

\
 
 \ /
  Last update: 2015-06-03 04:01    [W:1.997 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site