From patchwork Tue Jan 3 10:01:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 9494685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 175B060414 for ; Tue, 3 Jan 2017 10:03:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1DF626490 for ; Tue, 3 Jan 2017 10:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D22DD269DA; Tue, 3 Jan 2017 10:02:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7282F26490 for ; Tue, 3 Jan 2017 10:02:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOLuZ-0002Cp-S5; Tue, 03 Jan 2017 10:01:43 +0000 Received: from mail1.bemta12.messagelabs.com ([216.82.251.9]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOLuV-00028I-Uh; Tue, 03 Jan 2017 10:01:40 +0000 Received: from [216.82.251.38] by server-9.bemta-12.messagelabs.com id 03/99-06674-E667B685; Tue, 03 Jan 2017 10:01:18 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNIsWRWlGSWpSXmKPExsVy+LrFKt28suw Ig/VrxSwOvFjIYrHp8TVWi91Ny9gtJu98w+jA4vFk00VGj81L6j1uzisMYI5izcxLyq9IYM34 NbeHseABa8WKXV3sDYytrF2MXBxCAksZJc4eXsTYxcjJISIQJ7H28jcWEJtZIEFiz53VTCA2m 4CJxM3758DiwgKuEnseX2XrYuTg4BVwlmheKQ4SZhFQkVj2/w1YuShQ64pzc8BsXgFBiZMzn0 CN1Jdo2jqHGcIWlFjyeg0jhC0vsf0tRFxIQFvi/cbFrCC2hICCxNTJrcwTGPlmIRk1C8moWUh GzUIyagEjyypG9eLUorLUIl1zvaSizPSMktzEzBxdQ0MjvdzU4uLE9NScxKRiveT83E2MwIBl AIIdjJsnOR9ilORgUhLljWbIjhDiS8pPqcxILM6ILyrNSS0+xCjDwaEkwctUCpQTLEpNT61Iy 8wBxg5MWoKDR0mEVw8kzVtckJhbnJkOkTrFqMtx4P2Kp0xCLHn5ealS4ryTQIoEQIoySvPgRs Di+BKjrJQwLyPQUUI8BalFuZklqPKvGMU5GJWEIS7hycwrgdv0CugIJqAjtgeAHVGSiJCSamB cpTrrgMXD+WpyfxP33/0uNznt8Sdbj9n3l/vkcCT8uTDvtN4SoZar+kXql1d0dhaWNR76/XcJ f/1FqbYK3l0dR0/LmKsF610qOVjzsHy9l+jvbVNP6svtvPJF4UFAj8sc1bPXv7NJ/P5b5Z8wV 7v51lKb3Did6K9KK30rZs7viV7K8/SZju0SJZbijERDLeai4kQALCwzet4CAAA= X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-4.tower-163.messagelabs.com!1483437676!104515939!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 71143 invoked from network); 3 Jan 2017 10:01:18 -0000 Received: from 195-215-56-170-static.dk.customer.tdc.net (HELO CPH-EX1.SDESIGNS.COM) (195.215.56.170) by server-4.tower-163.messagelabs.com with AES128-SHA encrypted SMTP; 3 Jan 2017 10:01:18 -0000 Received: from [172.27.0.114] (172.27.0.114) by CPH-EX1.sdesigns.com (192.168.10.36) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 3 Jan 2017 11:01:15 +0100 To: Boris Brezillon , Richard Weinberger From: Marc Gonzalez Subject: [PATCH v1] mtd: nand: tango: Reset pbus to raw mode in probe Message-ID: Date: Tue, 3 Jan 2017 11:01:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 SeaMonkey/2.47 MIME-Version: 1.0 Content-Language: X-Originating-IP: [172.27.0.114] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170103_020140_089464_E88944F8 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd , Linux ARM Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Linux should not expect the boot loader to properly configure the peripheral bus "pad mode", so reset PBUS_PAD_MODE to raw. Signed-off-by: Marc Gonzalez --- drivers/mtd/nand/tango_nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/tango_nand.c b/drivers/mtd/nand/tango_nand.c index d370c0382808..2456640fe4d5 100644 --- a/drivers/mtd/nand/tango_nand.c +++ b/drivers/mtd/nand/tango_nand.c @@ -644,6 +644,8 @@ static int tango_nand_probe(struct platform_device *pdev) if (IS_ERR(nfc->pbus_base)) return PTR_ERR(nfc->pbus_base); + writel_relaxed(MODE_RAW, nfc->pbus_base + PBUS_PAD_MODE); + clk = clk_get(&pdev->dev, NULL); if (IS_ERR(clk)) return PTR_ERR(clk);