From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1clXDD-0006YC-9y for linux-mtd@lists.infradead.org; Wed, 08 Mar 2017 08:44:48 +0000 Date: Wed, 8 Mar 2017 09:44:25 +0100 From: Boris Brezillon To: Peter Pan Cc: , , , , Subject: Re: [PATCH v2 6/6] nand: spi: Add generic SPI controller support Message-ID: <20170308094425.694c5e07@bbrezillon> In-Reply-To: <1488358330-23832-7-git-send-email-peterpandong@micron.com> References: <1488358330-23832-1-git-send-email-peterpandong@micron.com> <1488358330-23832-7-git-send-email-peterpandong@micron.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 1 Mar 2017 16:52:10 +0800 Peter Pan wrote: > This commit supports to use generic spi controller > as spi nand controller. > > Signed-off-by: Peter Pan > --- > drivers/mtd/nand/spi/Kconfig | 2 + > drivers/mtd/nand/spi/Makefile | 1 + > drivers/mtd/nand/spi/chips/Kconfig | 5 + > drivers/mtd/nand/spi/chips/Makefile | 1 + > drivers/mtd/nand/spi/chips/generic_spi.c | 158 +++++++++++++++++++++++++++++++ Hm, I would name the directory controllers and not chips. What could go into chips are all the vendor specific drivers. > 5 files changed, 167 insertions(+) > create mode 100644 drivers/mtd/nand/spi/chips/Kconfig > create mode 100644 drivers/mtd/nand/spi/chips/Makefile > create mode 100644 drivers/mtd/nand/spi/chips/generic_spi.c Just controllers/generic.c?