From patchwork Tue Oct 30 13:36:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 10660935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8F3B17DF for ; Tue, 30 Oct 2018 13:36:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C681B2A506 for ; Tue, 30 Oct 2018 13:36:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9E4A2A508; Tue, 30 Oct 2018 13:36:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E2F2A507 for ; Tue, 30 Oct 2018 13:36:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728022AbeJ3WaX (ORCPT ); Tue, 30 Oct 2018 18:30:23 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57769 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbeJ3WaX (ORCPT ); Tue, 30 Oct 2018 18:30:23 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 2112F208B0; Tue, 30 Oct 2018 14:36:50 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-12-210.w90-88.abo.wanadoo.fr [90.88.133.210]) by mail.bootlin.com (Postfix) with ESMTPSA id B8BF620711; Tue, 30 Oct 2018 14:36:39 +0100 (CET) From: Boris Brezillon To: Mark Brown , linux-spi@vger.kernel.org, David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org Cc: Vignesh R , Cyrille Pitchen , Tudor Ambarus , Yogesh Narayan Gaur , Frieder Schrempf , Miquel Raynal Subject: [PATCH v2 0/7] spi: spi-mem: Add a direct mapping API Date: Tue, 30 Oct 2018 14:36:31 +0100 Message-Id: <20181030133638.3322-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, I didn't have much review on the RFC, so I'm resending this series without "RFC" in the subject. Maybe I'll get more reviews this time. A few things have changed since I submitted the RFC - The spi-nand framework has been merged, and I can thus patch this driver to use the dirmap API - The MXIC controller has been submitted, and since I did my tests with this controller, I can also add a patch showing how to implement the dirmap hooks Other changes are addressing the comments I received from Miquel. I'd still like to get feedback on the API and controller interface if anyone is interested in reviewing it. Thanks, Boris Boris Brezillon (7): spi: spi-mem: Add missing word in the SPI_MEM_DATA_OUT description spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum spi: spi-mem: Split spi_mem_exec_op() code spi: spi-mem: Add a new API to support direct mapping mtd: devices: m25p80: Use the spi-mem dirmap API mtd: spinand: Use the spi-mem dirmap API spi: mxic: Add support for direct mapping drivers/mtd/devices/m25p80.c | 142 +++++++++++------- drivers/mtd/nand/spi/core.c | 231 +++++++++++++++++------------- drivers/spi/spi-mem.c | 269 ++++++++++++++++++++++++++++++++--- drivers/spi/spi-mxic.c | 140 ++++++++++++++---- include/linux/mtd/spinand.h | 7 + include/linux/spi/spi-mem.h | 84 ++++++++++- 6 files changed, 670 insertions(+), 203 deletions(-) Reviewed-by: Miquel Raynal