From patchwork Tue Nov 6 16:05:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 10670745 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 7C71714E2 for ; Tue, 6 Nov 2018 16:05:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 684E5287EA for ; Tue, 6 Nov 2018 16:05:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BD3F2A4A4; Tue, 6 Nov 2018 16:05:51 +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 E1B47287EA for ; Tue, 6 Nov 2018 16:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389058AbeKGBbn (ORCPT ); Tue, 6 Nov 2018 20:31:43 -0500 Received: from mail.bootlin.com ([62.4.15.54]:55058 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388527AbeKGBbn (ORCPT ); Tue, 6 Nov 2018 20:31:43 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8393420864; Tue, 6 Nov 2018 17:05:48 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-93-44.w90-88.abo.wanadoo.fr [90.88.34.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 260BE2039F; Tue, 6 Nov 2018 17:05:38 +0100 (CET) From: Boris Brezillon To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org, Mark Brown , linux-spi@vger.kernel.org Cc: Vignesh R , Cyrille Pitchen , Tudor Ambarus , Yogesh Narayan Gaur , Frieder Schrempf , Miquel Raynal , Piotr Bugalski Subject: [PATCH v3 0/7] spi: spi-mem: Add a direct mapping API Date: Tue, 6 Nov 2018 17:05:29 +0100 Message-Id: <20181106160536.13415-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, Here is a v3 addressing the comment I received from Yogesh on the m25p80 modifications. Note that this part is still untested (I only tested on a spinand device so far), so that'd be great if someone could test 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 | 102 ++++++++++++- drivers/mtd/nand/spi/core.c | 231 +++++++++++++++++------------- drivers/spi/spi-mem.c | 269 ++++++++++++++++++++++++++++++++--- drivers/spi/spi-mxic.c | 137 ++++++++++++++---- include/linux/mtd/spinand.h | 7 + include/linux/spi/spi-mem.h | 84 ++++++++++- 6 files changed, 677 insertions(+), 153 deletions(-)