Message ID | MN2PR08MB5951D8BB1624C922812DB38EB8140@MN2PR08MB5951.namprd08.prod.outlook.com |
---|---|
State | Changes Requested |
Delegated to: | Miquel Raynal |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=micron.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IsfMK/OG"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=micron.com header.i=@micron.com header.b="voXMYeul"; 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 45HZl35877z9s4V for <incoming@patchwork.ozlabs.org>; Mon, 3 Jun 2019 22:54:39 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=b/zTSeS3G9/XB7ppo86DIc+ODAmpl1D5mfbMkSXFd6U=; b=IsfMK/OGrYg+q0 pFxBjE4PGJF3qeXDqgG5IKOgaobFkmP2Bad5lpbF5jQ/2aadewVi1sF5Ny9d6+dM5uhfYsEG+SD7B IK5HdSREzg6/WND3tfBhTnXsnSoFpcfYz2rN+v885iHLPA+4fkJXAhOlirhuNqXsDACHOVmPp3k0A g75KUzmN9yql5RHmWzQWVe8rkkQNPghU4F2E3fEv6dkCQSFiRnj+Chzsn0GMUN2TuJr2n+iBEPrZa xWTqjkvhVzT8dcqZI1KrSilV1DknoX4RLgfBLN9Ih3F1PKZqhVF7JhwBBaMmN8Qev/QwzMaUmlouO SELKTKOOG+hBPQIFOFog==; 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 1hXmTs-0002f9-Vk; Mon, 03 Jun 2019 12:54:29 +0000 Received: from mail-eopbgr750057.outbound.protection.outlook.com ([40.107.75.57] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXmJc-00047x-PP for linux-mtd@lists.infradead.org; Mon, 03 Jun 2019 12:44:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=micron.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KUGFUHjDuC9zQr7lFbbDIbJGIAyqnoCUl1vz0YJezgQ=; b=voXMYeuleti8qC6bYC9T86dJIz9KK4vRoQK8YuHQ9GMQhrtaj6FUkdkzEkNcyxyVpXDMa0/Ju/cNNwaYvtURFZfQTQnSUA721SzYiMrNQJWRGR6wCUoWP5OAB6Bmj/UN9QCBpI2b9j5ZeRe23xEgQucKecvnwlBBY/xzKZs0DuE= Received: from MN2PR08MB5951.namprd08.prod.outlook.com (20.179.85.220) by MN2PR08MB5872.namprd08.prod.outlook.com (20.179.86.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.18; Mon, 3 Jun 2019 12:43:32 +0000 Received: from MN2PR08MB5951.namprd08.prod.outlook.com ([fe80::f0f7:f262:a3c6:ce23]) by MN2PR08MB5951.namprd08.prod.outlook.com ([fe80::f0f7:f262:a3c6:ce23%7]) with mapi id 15.20.1943.018; Mon, 3 Jun 2019 12:43:32 +0000 From: "Shivamurthy Shastri (sshivamurthy)" <sshivamurthy@micron.com> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, Marek Vasut <marek.vasut@gmail.com>, Vignesh Raghavendra <vigneshr@ti.com>, Boris Brezillon <bbrezillon@kernel.org>, Yixun Lan <yixun.lan@amlogic.com>, Lucas Stach <dev@lynxeye.de>, Anders Roxell <anders.roxell@linaro.org>, Stefan Agner <stefan@agner.ch>, Marcel Ziswiler <marcel.ziswiler@toradex.com>, "Bean Huo (beanhuo)" <beanhuo@micron.com>, Paul Cercueil <paul@crapouillou.net>, Frieder Schrempf <frieder.schrempf@kontron.de>, Chuanhong Guo <gch981213@gmail.com>, "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: [PATCH v3 06/12] mtd: nand: Move ONFI code into nand/ directory Thread-Topic: [PATCH v3 06/12] mtd: nand: Move ONFI code into nand/ directory Thread-Index: AdUaBNtca2KDLPT1Q8mI6fj/40cXiw== Date: Mon, 3 Jun 2019 12:43:32 +0000 Message-ID: <MN2PR08MB5951D8BB1624C922812DB38EB8140@MN2PR08MB5951.namprd08.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sshivamurthy@micron.com; x-originating-ip: [165.225.81.42] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7939fbf2-89a4-4d78-aa13-08d6e821167a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR08MB5872; x-ms-traffictypediagnostic: MN2PR08MB5872:|MN2PR08MB5872: x-microsoft-antispam-prvs: <MN2PR08MB5872E75243C5B860E2C851DBB8140@MN2PR08MB5872.namprd08.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:651; x-forefront-prvs: 0057EE387C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(1496009)(396003)(376002)(136003)(346002)(39860400002)(366004)(189003)(199004)(76116006)(14454004)(99286004)(7696005)(71200400001)(71190400001)(66446008)(5660300002)(9686003)(52536014)(73956011)(66946007)(66476007)(66066001)(66556008)(64756008)(2201001)(55236004)(6116002)(478600001)(316002)(102836004)(110136005)(2906002)(3846002)(6506007)(86362001)(7416002)(53936002)(486006)(26005)(2501003)(8936002)(476003)(33656002)(14444005)(256004)(8676002)(74316002)(81166006)(81156014)(6436002)(68736007)(7736002)(305945005)(186003)(25786009)(55016002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR08MB5872; H:MN2PR08MB5951.namprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: micron.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 1wlj9f+DGpNcaLCEGDkK4qrMFf9kDneoUupWHf8OFKZM+nwxium/mOPHWV/RQcgNBxmvisLdyGpCX904ztXwmigw2xznh/aIgim+osbRFDsBL144IqfZ4d7sgGXN8cMm6lW4OP5kxuqXxX3/vZwNjiXSihtA+qWiqRGpZMLhnFr7iPq6nUCcfEp4Ox2ixop2XBKI0A0dKGjwM11WCARdi357tngUyeZbg3erO7WHx+rIOw6zC9VT7+BgFaDcOxC0EgrGqA7vJbeHzBCjUMVD3StB49ZQYJt6Mimdk3Y73FjFrtlT5Sqa1pg2uYn1GxJOOR//ye9oeBD8pE4ZVNkXphPHybYoPkSN0dZn8gH9xt4rSDPGju16adWS+dpLMjQRfzj2Q0AFFB+zH5KBP+RYFvQOTAtmyOdSjOLcb5hn3EQ= MIME-Version: 1.0 X-OriginatorOrg: micron.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7939fbf2-89a4-4d78-aa13-08d6e821167a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2019 12:43:32.6487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f38a5ecd-2813-4862-b11b-ac1d563c806f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sshivamurthy@micron.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR08MB5872 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190603_054353_537224_8927C0A2 X-CRM114-Status: GOOD ( 10.64 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.75.57 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Introduce generic ONFI support
|
expand
|
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index 7ecd80c0a66e..221945c223c3 100644 --- a/drivers/mtd/nand/Makefile +++ b/drivers/mtd/nand/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -nandcore-objs := core.o bbt.o +nandcore-objs := core.o bbt.o onfi.o obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o obj-y += onenand/ diff --git a/drivers/mtd/nand/raw/nand_onfi.c b/drivers/mtd/nand/onfi.c similarity index 99% rename from drivers/mtd/nand/raw/nand_onfi.c rename to drivers/mtd/nand/onfi.c index 05592f815949..fad03bb4b1ea 100644 --- a/drivers/mtd/nand/raw/nand_onfi.c +++ b/drivers/mtd/nand/onfi.c @@ -177,3 +177,4 @@ int nand_onfi_detect(struct nand_device *base) return ret; } +EXPORT_SYMBOL_GPL(nand_onfi_detect); diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile index ff7f90e9d417..9045336019d5 100644 --- a/drivers/mtd/nand/raw/Makefile +++ b/drivers/mtd/nand/raw/Makefile @@ -60,7 +60,6 @@ obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm32_fmc2_nand.o obj-$(CONFIG_MTD_NAND_MESON) += meson_nand.o nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o -nand-objs += nand_onfi.o nand-objs += nand_jedec.o nand-objs += nand_amd.o nand-objs += nand_esmt.o
Move generic ONFI code to nand/ directory, which can be used by SPI NAND layer. Signed-off-by: Shivamurthy Shastri <sshivamurthy@micron.com> --- drivers/mtd/nand/Makefile | 2 +- drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} | 1 + drivers/mtd/nand/raw/Makefile | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) rename drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} (99%)