Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2072806imm; Thu, 2 Aug 2018 05:55:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd4M+NTPnxbLk69zLWICz6h+w/w0kEvngJroreVzRvBxI7M33Mcf3bu9ymypi3ENP31m497 X-Received: by 2002:a62:1e81:: with SMTP id e123-v6mr2949037pfe.24.1533214549748; Thu, 02 Aug 2018 05:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533214549; cv=none; d=google.com; s=arc-20160816; b=wHdAGjaxbqQBfR6elA2oFbQMBcNZrqHNvrEr4SGuv8w/rp1k1c9IgtEu2pAaCciRPo 4lQC9M8lB/aaHN5fcaAbYtzWOeWSZSLymbNiaT2Oeo5rdRE/oZG/8t0hOUFAoQvTTH6S EjYZYwuVHZg2QVR8cbfiTp5ORFPtdq7N1c1CBVFtq71qbGV3Lyrj6Eq70ZnJekWQB6FU SkBzpZH7mDr+xkWdpxN77wbACxxXSbo4foYP1q5NjWkimEggZy8gB2gFTl3pxTIfto7K 9J+X8ZpEOtw2mC43WpGkFxBuikoljTTUDJNSjhA0oHyARoOmhb1K3oh4M2V/ipSfslz5 zBog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=I626qcWW8PuHqooUV4ueTApLv6RpCSD9LCbqvGnyZ9g=; b=0S5xEWu2jNggcGz9SFsDQrS8swzu38qLAX0XuN6+2w8QlNsW2i07PUKMtPcInsv6ol Wtup/AQ6uSu0DOMW29r6RWIAFUN+rB+r66rnamVVxPwGcSR7ILltYNG9CgWeHeEe+2Xi A301lfofXbnHhy8VUyinG35TmKyPcu3eYPQfeJets+TXSbC0W9TmNGTZQxTFV1y5yhzI sUXyl/o806tHNQUdVy2x5CtEnfmr7WUYWAJmppSht7TVe6BBOicmSRF1UgETkkTOGam+ vvc3xMu4flAMbiM5UVyxDs/bzEOrAwXtQuwbgsfWP8hhWd3R/BNTEQaYC2w7V0OeJ+4+ kdtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=YyCMQLd2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21-v6si1657143pgn.365.2018.08.02.05.55.33; Thu, 02 Aug 2018 05:55:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=YyCMQLd2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387479AbeHBOpb (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4