From patchwork Thu Aug 2 12:53:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 10553561 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 DE782139A for ; Thu, 2 Aug 2018 12:54:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2F982B3F6 for ; Thu, 2 Aug 2018 12:54:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C716F2B9A7; Thu, 2 Aug 2018 12:54:29 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 DB77A2B3F6 for ; Thu, 2 Aug 2018 12:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387446AbeHBOpb (ORCPT ); Thu, 2 Aug 2018 10:45:31 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.136]:14052 "EHLO mo4-p05-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387413AbeHBOpb (ORCPT ); Thu, 2 Aug 2018 10:45:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1533214466; s=strato-dkim-0002; d=as-electronics.de; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=I626qcWW8PuHqooUV4ueTApLv6RpCSD9LCbqvGnyZ9g=; b=YyCMQLd2jQ8FQk4CaI9Lr2tukfbOCwIxYaJmVZ3sObp7OIOIeRyWCGmDRDJ8RpAKpR WCcUmUBc/uQETIUOpK1aOhClEyy3lbG2eWD9NZQKxuZHgkg20ZfwG2sDkD/KKm/V8wNA +AqQrIkBnDMbq8zCeBiwFF9T2K1QL1VkcqfEn3ZQ/PBo/Q6xutfzzSX/jHxrU61qDkQx PhtCbjVNhcrMfGB3RCkvEwSzWRKSFnq18iJkEb9+hIluKTYW5qIm3EgoEKngGulC3M/1 QubMMu64Cyp1MJv55hXl3QNli32SegPsk2NzT/bfD+xA++NWM1pRzkcgMQYilQuoVDpC IWcA== X-RZG-AUTH: ":LX8JdEmkW/4tAFwMkcNJIloh1hrA5u3owhPk7bdT5Fx22AatU+eLaHfutoZdl+X9BETxn4/4+IVqx+ReE5zXU1i255vGQvjM+ToVYx2MGL/3gV0P3t0=" X-RZG-CLASS-ID: mo05 Received: from fs-work.fritz.box by smtp.strato.de (RZmta 43.14 AUTH) with ESMTPSA id Z0998bu72CsJ7PX (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 2 Aug 2018 14:54:19 +0200 (CEST) From: Frieder Schrempf To: dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, marek.vasut@gmail.com, richard@nod.at, broonie@kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org Cc: cyrille.pitchen@wedev4u.fr, frieder.schrempf@exceet.de, pp@emlix.com, Zhiqiang.Hou@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] Extend the SPI mem interface to set a custom memory name Date: Thu, 2 Aug 2018 14:53:51 +0200 Message-Id: <1533214434-28761-1-git-send-email-frieder.schrempf@exceet.de> X-Mailer: git-send-email 2.7.4 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 These changes were previously send with the series that transforms the FSL QSPI driver to the SPI mem interface [1]. As these changes are needed for other drivers too I send them separately now. The first patch fixes a typo, the second extends the interface to set and get a custom name for the memory device and the third patch makes use of this in the m25p80 driver. [1] https://patchwork.ozlabs.org/cover/939864/ Changes in v3: ============== * Move fix for typo in spi-mem.h to a separate patch * Fix documentation of spi_mem_get_name() and get_name() * Avoid overwriting the name of the memory device in probe of m25p80 * Add Suggested-by tags Changes in v2: ============== * Add a name field to struct spi_mem and fill it while probing Frieder Schrempf (3): spi: spi-mem: Fix a typo in the documentation of struct spi_mem spi: spi-mem: Extend the SPI mem interface to set a custom memory name mtd: m25p80: Call spi_mem_get_name() to let controller set a custom name drivers/mtd/devices/m25p80.c | 3 +++ drivers/spi/spi-mem.c | 28 ++++++++++++++++++++++++++++ include/linux/spi/spi-mem.h | 14 +++++++++++++- 3 files changed, 44 insertions(+), 1 deletion(-)