From patchwork Wed Apr 29 22:31:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 1279756 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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=fail (p=none dis=none) header.from=collabora.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=mCw0UtM7; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49CCwp5F14z9sSK for ; Thu, 30 Apr 2020 08:34:02 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=zYlyfsGbQoW87xFTV+09ztb1/yBcG9Tijz+aauvPRDA=; b=mCw0UtM7fjRuU9 LWw0r8QJx4OrvPszmJ1F+UDOHluT73CwcdEl9xaEDljBs9zHJyADiFLswGfwPSHsilGBdPMVAltlP IHItn1voVTNSmGMFJUh79OtC1gtbQnFdAI/81KQBt2FmiNsbjfWNpf7bjuF9YxAM4TJvgNLa7L66T 8SU4Lbjrzjp8YoW8MIcfqjnokfydkoaGO3HLEKNHOq19CzlLFodkaalNV+70c8bA6WK0wZK2sXD/i A0Un1aT1ybxkBmZWIc2JedOTMhIgzHRfsA4fHs2jccAquD/Kcev+V+8UscUiaRhYFLtVtkPaVgAPA ZJGTQOR0A1O60e7u2U5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTvH4-0006BV-RC; Wed, 29 Apr 2020 22:33:50 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTvFL-0004Tb-Ot; Wed, 29 Apr 2020 22:32:06 +0000 Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:2c:6930:b93f:9fae:b276:a89a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id A4B5F2A1735; Wed, 29 Apr 2020 23:31:58 +0100 (BST) From: Boris Brezillon To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Miquel Raynal , linux-mtd@lists.infradead.org Subject: [PATCH 0/3] mtd: rawnand: Get rid of the cmx270 driver Date: Thu, 30 Apr 2020 00:31:31 +0200 Message-Id: <20200429223134.789322-1-boris.brezillon@collabora.com> X-Mailer: git-send-email 2.25.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200429_153203_944458_CDA86974 X-CRM114-Status: GOOD ( 12.61 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [46.235.227.227 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vignesh Raghavendra , Arnd Bergmann , Tudor Ambarus , Richard Weinberger , Boris Brezillon , Mike Rapoport , linux-arm-kernel@lists.infradead.org Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, As part of my attempt to convert all NAND drivers to exec_op() I noticed the cmx270 board didn't really deserve a custom driver since other boards using the same SoC (em-x270 to name one) are using the gen_nand driver. I think the only issue with the CM-X270 is that the chip is connected to D[16:23] (or D[16:31] if it's a 16bit bus). Adjusting the mem resource offset should do the trick. I hope someone still has a board to test that. Regards, Boris Boris Brezillon (3): ARM: pxa: cm-x270: Use gen_nand to expose the NAND device ARM: pxa: Stop selecting CONFIG_MTD_NAND_CM_X270 mtd: rawnand: Remove the cmx270 NAND controller driver arch/arm/configs/cm_x2xx_defconfig | 1 - arch/arm/configs/pxa_defconfig | 1 - arch/arm/mach-pxa/cm-x270.c | 131 ++++++++++++++++ drivers/mtd/nand/raw/Kconfig | 4 - drivers/mtd/nand/raw/Makefile | 1 - drivers/mtd/nand/raw/cmx270_nand.c | 236 ----------------------------- 6 files changed, 131 insertions(+), 243 deletions(-) delete mode 100644 drivers/mtd/nand/raw/cmx270_nand.c