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: 11518915 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B527B92A for ; Wed, 29 Apr 2020 22:33:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 81F152076B for ; Wed, 29 Apr 2020 22:33:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jKfaYoep" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 81F152076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=GzMx8RIi/THSU8SUG78gEnWeB9FrFGq9TdvpngA1HKg=; b=jKfaYoepyhrnK1 d+l5hFQEfRKastRbzv9wMmIsubIGXpQW6Hf6PlUuXeaRL63lZ4xK2U3bW5WgpKrCf1Xu/7BbHpTNz t2SbFuDsE4t7Xv5kz2iXmeE3SquLwP5apQsXN+7qfG28lCp5+H4Vabu+IF+eiGW+SeBajllyA2xP6 +sXiMIZZJlAkfxXj0dMP41DoVz3akkT09u3R3ORGxbGntj+Hzc7YigNeZz/Mv6el9U6ETWH630SC+ t9I0nwhzJSbc40/FXEOtbU+m345VnSS/AtyKhpTP+jcbPu+akofHDlL8xWo0vkdQCFd2E2Q4Hsz3x 5FjilqWkbzPQejtPIB0Q==; 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 1jTvGd-0005hn-Ct; Wed, 29 Apr 2020 22:33:23 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.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