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.89 #1 (Red Hat Linux)) id 1eXvJp-00033A-Sf for linux-mtd@lists.infradead.org; Sat, 06 Jan 2018 20:43:55 +0000 Date: Sat, 6 Jan 2018 21:43:41 +0100 From: Boris Brezillon To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org Cc: Peter Pan , Kyungmin Park , Robert Jarzmik , Frieder Schrempf Subject: Re: [PATCH v3 0/4] mtd: Preparation patches for the SPI NAND framework Message-ID: <20180106214341.606213db@bbrezillon> In-Reply-To: <20171215123954.30017-1-boris.brezillon@free-electrons.com> References: <20171215123954.30017-1-boris.brezillon@free-electrons.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 Fri, 15 Dec 2017 13:39:50 +0100 Boris Brezillon wrote: > Hello, > > Here is a set of patches to prepare the introduction of the generic > NAND and SPI frameworks. > > The last 2 patches have already been submitted here [1], and the first > two are new, and should also help simplify other drivers/frameworks > in providing generic code for already existing logic. > > If you want to see the overall picture of the SPI NAND framework you can > have a look at this branch [2]. > > Regards, > > Boris > > [1]https://patchwork.ozlabs.org/patch/780477/ > [2]https://github.com/bbrezillon/linux-0day/commits/nand/spi-nand-squashed > > Boris Brezillon (4): > mtd: Do not allow MTD devices with inconsistent erase properties > mtd: Add an helper to make erase request aligned on ->erasesize > mtd: Stop directly calling master ->_xxx() hooks from mtdpart code > mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing Applied the whole series. I'm preparing a patch to remove unneeded checks done in part_read/write_oob() (as suggested by Peter). > > drivers/mtd/devices/docg3.c | 65 ----------------- > drivers/mtd/mtdcore.c | 36 +++++++++- > drivers/mtd/mtdpart.c | 141 ++++++++++++++----------------------- > drivers/mtd/nand/nand_base.c | 56 --------------- > drivers/mtd/onenand/onenand_base.c | 63 ----------------- > include/linux/mtd/mtd.h | 28 ++++++++ > 6 files changed, 115 insertions(+), 274 deletions(-) >