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: 952729 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=exceet.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="M4Or5aas"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=as-electronics.de header.i=@as-electronics.de header.b="te4NeCFl"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41h9Qh6k6Sz9s4s for ; Thu, 2 Aug 2018 23:05:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=5DhGZ1uBLJ3Pt4pPd3069EBfTcTydKVsm0kW6OtEAp0=; b=M4O r5aas4hIZh+hMojufaHBEAvmwpLTOtrkTGeqqLFLqgVgHv5G4/3Smb05knJnqgBNDxUNACbohRQ7I Ke4yY8g3DaPwKTMsOZF1wiBgIVfeWV2JlWH/wUT2+eGEnbqKbu9y9vy4zY7OSKltg2nYu+4mWlrBF EbTCG0XbLIejLSBq6nwEUtvyOyXR2MRnXnDEaYk27N/Yxw/yB7qHIA8jaTkrATH7j3T17DOfQp7ty aSGqEJMl/cKoJoXCnvq2oL5yQ4le8lzm48MrjVlCVxfdkfuMAQaUJ6pST6dl2CIgyOfL3eqUU1giN SVh3jIc5V9P0dAgAuubA3fCTInyxUpA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1flDIS-000731-HW; Thu, 02 Aug 2018 13:05:40 +0000 Received: from mo6-p05-ob.smtp.rzone.de ([2a01:238:20a:202:5305::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1flD7o-0006YF-Vg for linux-mtd@lists.infradead.org; Thu, 02 Aug 2018 12:54:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1533214468; 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=te4NeCFlnnk/0CDUJQQvX51A+eQp++QP5vDg/B1xcF0ZtGnQncTnJU8XKC6UJsE6st GxAIz8F+xJU0D7ih03MUkpTxYKliETVTzZTFUmSmRefet+LLNPM4IvyJiEDGKhh19538 i6LPSrzKtKSJc4cOEj0XrvXwDtg3ewvP/L15FrJHHD43qft0YxweyVFE+aeJGg7YKBjJ R5+fiyQV8Y8xByrBj4aKTgaFatwXlsg47KCDsktHtxU7nGml1UcvR63QXA78h72mXr5s jPJltCs3uCDgLyOkDN4Wb9P9DVMg56kAOigLm8oZyWQX7pw1dcYcPvVcagQwTR8DFVaJ cSyA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180802_055441_776645_082EC4C6 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a01:238:20a:202:5305:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, frieder.schrempf@exceet.de, pp@emlix.com, Zhiqiang.Hou@nxp.com, cyrille.pitchen@wedev4u.fr MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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(-)