Re: [PATCH 0/3] An alternative to SPI NAND
From: Brian Norris
Date: Wed Jan 07 2015 - 20:03:38 EST
On Thu, Jan 08, 2015 at 12:47:24AM +0000, 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 | 7 +
> drivers/mtd/spi-nand/Makefile | 3 +
> drivers/mtd/spi-nand/spi-nand-base.c | 2034 ++++++++++++++++++++
> drivers/mtd/spi-nand/spi-nand-bbt.c | 1279 ++++++++++++
I can already tell by the diffstat that I don't like this. We probably
don't need 3000 new lines of code for this, but we especially don't want
to duplicate nand_bbt.c. It won't take a lot of work to augment
nand_bbt.c to make it shareable. (I can whip that patch up if needed.)
I'll still take a look at the rest of the code eventually, but just
wanted to give my 2 cents up front.
> drivers/mtd/spi-nand/spi-nand-device.c | 281 +++
> include/linux/mtd/spi-nand.h | 317 +++
> 9 files changed, 3946 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mtd/spi-nand.txt
> create mode 100644 drivers/mtd/spi-nand/Kconfig
> create mode 100644 drivers/mtd/spi-nand/Makefile
> create mode 100644 drivers/mtd/spi-nand/spi-nand-base.c
> create mode 100644 drivers/mtd/spi-nand/spi-nand-bbt.c
> create mode 100644 drivers/mtd/spi-nand/spi-nand-device.c
> create mode 100644 include/linux/mtd/spi-nand.h
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/