RE: [PATCH 1/1] mtd: nand_bbt: separate struct nand_chip from nand_bbt.c
From: Peter Pan ææ (peterpandong)
Date: Tue Jun 02 2015 - 21:33:41 EST
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@xxxxxxxxx>.
> http://git.infradead.org/users/norris/linux-
> mtd.git/shortlog/refs/heads/nand-bbt
>
> Signed-off-by: Peter Pan <peterpandong@xxxxxxxxxx>
> Signed-off-by: Brian Norris <computersforpeace@xxxxxxxxx>
> ---
> 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
>
N§²æ¸yú²X¬¶ÇvØ)Þ{.nÇ·¥{±êX§¶¡Ü}©²ÆzÚj:+v¨¾«êZ+Êzf£¢·h§~Ûÿû®w¥¢¸?¨è&¢)ßfùy§m
á«a¶Úÿ0¶ìå