Messages in this thread | | | From | Peter Pan 潘栋 (peterpandong) <> | Subject | RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c | Date | Wed, 3 Jun 2015 01:31:27 +0000 |
| |
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 >
| |