From patchwork Tue Aug 8 19:05:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 109672 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3356142qge; Tue, 8 Aug 2017 12:06:21 -0700 (PDT) X-Received: by 10.84.217.144 with SMTP id p16mr6082350pli.276.1502219181897; Tue, 08 Aug 2017 12:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502219181; cv=none; d=google.com; s=arc-20160816; b=bLQ901N05ed6Ytslpck2VY6wGIosEAnJVTAs+Bm4psmQR2blsREHnJmBvSYTOt6PWU sXpPwwU77rCAJL0C/QiK9i8OhFu0/Al7uEviaXY022c0PNyqksasPEVh5ARuY4MmPR+Q XaxxuiNEK+j6pQtsAvpHF83oZVtgsKH9IFyk9CiDZ7Ho/zvwyLqB1C61LzBefq034kdZ YXHADNQrZW4QlMLODnLaaNUCRTvh86XCSGUdUsKA990z+ET+4jua9MbOVCzHHtdC1qzX 39yq8jICp81BQeL0s71H9zkRuEPXWwkRO+HpQI2Xx+mUk8ff7TEdTsvpuLWvcSUFNGN3 ORNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=Y5KydeuLwMyjin7VtLLWuZn5PYaANE+kYmfe1stPW1Y=; b=NY7IlrvDiWGC6zoe1a5N64a6vawBmgYTBKrKZ7wXT17be8r76Q9+4Hro+bMb7me4I7 Hvx0NfijP7eOgMsOYxeNK21+WxI4RZ/nMa5LQrI1z4jfScbS8Zw66il96hl05daEZkyj y4ySy5sJ4lP240wu2raCAN6Eq1uiQZU9R+tMEeMu1PnRQ4A9Fo71Nw57S0olvg7fpmlj E8aWo3iYMR+Tql+E8M/xO/MCKsesX+30Rxa8IhJDEcsKaw4i+5k+35xJdf1Riz+M3Dc4 gXpUV0v5XVykD7Kv2+7DYi+P0fQu0L5rWkAjxvmt/4+dyaYFNBHjODUN06qK6lLUNaEL Wilg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=DNQMYc6L; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HueyTkOL; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 31si1338077plk.258.2017.08.08.12.06.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 12:06:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=DNQMYc6L; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HueyTkOL; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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: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=Y5KydeuLwMyjin7VtLLWuZn5PYaANE+kYmfe1stPW1Y=; b=DNQ MYc6LGud34AQ1iV9r/0WCKhKleZOuwblB3s/xQ4FNi1QcGVvVVxWQ2C3IJEzM9/k8ZrjjCcYI1bat pezwIYNAI+dldxoNXFxFA7Yp3EXD/kdun6yvuhC/CupZu0yVvWp8CY12R9tNAYD2rUkGQyg+75ojt P98/eXra0gu6jCcDHO6Lq+d7JuRreBMJq2yvH21RD7BaXRnk+RheX4AxEFxvCswHBCdl2m9f9YkQw x7x7xk5gnr+HYMz3DINT1PzFDycqWO5eKUgceJZHtcecB8ovGVitPnPyGmkNF1zaK2UmjVgoj1cF0 YXp618+G9snT6Mbm5QNbrrR4C6OKWPQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1df9pP-00053A-T2; Tue, 08 Aug 2017 19:06:07 +0000 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df9p4-0004mc-Og for linux-mtd@lists.infradead.org; Tue, 08 Aug 2017 19:05:49 +0000 Received: by mail-lf0-x22d.google.com with SMTP id y15so18799534lfd.5 for ; Tue, 08 Aug 2017 12:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=nr2pVVNPgOcnklOSN5rnyA+YeJEP/f249+UeUXDVwy0=; b=HueyTkOLevVPEVf2dbO0Bi5v6pX7e0poNNZXZfpcaI46R4o6PimAs83i3IQRhP0qFS A4pzeHkJT8by/uV4xk24vRUsO6kvx6svtOWBEDo+MX7VVLpa3gszm/l0dhdEaxqo7Qu8 PBXyGOvyi/KUfhN1slvfdLdyGglUpsPV8dLdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nr2pVVNPgOcnklOSN5rnyA+YeJEP/f249+UeUXDVwy0=; b=WDhQxlEqGzkOHJXw9gHeZkvfI0PfzugkfeMaE7nuP6HzL22vfTqUFpQZbOekRuiNTV gs/8DHHyYGcUULGA53jaGJPcv/yz0cL3LkOFuNNSJv7GDU8rtqpNO52R5LfjCwhAJsRH xhhLp48wt/jPIB+u0sTa3MUzd1q/pYpg8lmXPjbexPUqxsV78gVg2IcsOWuXPXWFxI0p Eo+GVsNhF9T1iMh6c/WqPq0GJX1y5gzeIFaDFg/oGhjaI6F+xL934Ox0D2hkhnjupRZo /LhTSQCa6uigHJfgL7n/J8YbyflZiXu3gVTCIuxIi7bkqWAOdjwi60BIJlj2yn1n7C1j Umsg== X-Gm-Message-State: AHYfb5iYNd9pE9yfIKtjKLSNFTyYz1erzg7gbg25c2xW5Ph1MslGX0T4 m2xXXoOuUU7+0mam X-Received: by 10.25.181.74 with SMTP id e71mr1846516lff.100.1502219123705; Tue, 08 Aug 2017 12:05:23 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-4b7671d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.118.75]) by smtp.gmail.com with ESMTPSA id y25sm323650lja.49.2017.08.08.12.05.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 12:05:21 -0700 (PDT) From: Linus Walleij To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: physmap_of: Retire Gemini pad control Date: Tue, 8 Aug 2017 21:05:10 +0200 Message-Id: <20170808190510.11496-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170808_120547_015708_E8B035F8 X-CRM114-Status: GOOD ( 11.17 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: Linus Walleij , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org I wrote a proper pin control driver for the Gemini. Retire this SoC-specific pad control and rely on the pin controller to manage this. Signed-off-by: Linus Walleij --- drivers/mtd/maps/physmap_of_gemini.c | 16 ---------------- 1 file changed, 16 deletions(-) -- 2.9.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ Reviewed-by: Marek Vasut diff --git a/drivers/mtd/maps/physmap_of_gemini.c b/drivers/mtd/maps/physmap_of_gemini.c index 05b286b5289f..4ed1a6bb4d3c 100644 --- a/drivers/mtd/maps/physmap_of_gemini.c +++ b/drivers/mtd/maps/physmap_of_gemini.c @@ -43,13 +43,6 @@ #define FLASH_PARALLEL_HIGH_PIN_CNT (1 << 20) /* else low pin cnt */ -/* Miscellaneous Control Register */ -#define GLOBAL_MISC_CTRL 0x30 -#define FLASH_PADS_MASK 0x07 -#define NAND_PADS_DISABLE BIT(2) -#define PFLASH_PADS_DISABLE BIT(1) -#define SFLASH_PADS_DISABLE BIT(0) - static const struct of_device_id syscon_match[] = { { .compatible = "cortina,gemini-syscon" }, { }, @@ -102,15 +95,6 @@ int of_flash_probe_gemini(struct platform_device *pdev, map->bankwidth * 8); } - /* Activate parallel (NOR flash) mode */ - ret = regmap_update_bits(rmap, GLOBAL_MISC_CTRL, - FLASH_PADS_MASK, - SFLASH_PADS_DISABLE | NAND_PADS_DISABLE); - if (ret) { - dev_err(dev, "unable to set up physmap pads\n"); - return -ENODEV; - } - dev_info(&pdev->dev, "initialized Gemini-specific physmap control\n"); return 0;