From patchwork Fri Nov 20 17:51:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Karszniewicz X-Patchwork-Id: 11921465 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92E71C2D0E4 for ; Fri, 20 Nov 2020 17:52:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0FCF122240 for ; Fri, 20 Nov 2020 17:52:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Wls1YxHe"; dkim=temperror (0-bit key) header.d=phytec.de header.i=@phytec.de header.b="IO5Hqx8M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FCF122240 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=eTwjyjZYEvTOjgFfYwwcqro5wKIeHXpI0YeIW4rG7kw=; b=Wls1YxHeb25ltMt/0LqAZ+CNR1 4w2yuuKoB7PrXH1lBOb13mhQKYmjUT4i6+FzM5QbzseV8xQgGGtWBDGbB7cpGEIPFi+bjVen1KQtw TdJJNA7WCs22uYwvMJjff02MRsLDtA6cce2VNA/kU9W2JDo7+Tk2rK/jXuBIPIh1BVa08CXNmRoYn B1YhGGpnWt3rIWwA6eSS1PBp+TgNemSjk/3xKfsDO+HIqHmwaPxhbIPqL0dYO1dGzhTUwM8OaNGO9 gDgRbkKrUMdWP18uKy40IO6sKxczxmW2vBueNCz5WzxmDEsGURsL61aeSp3JAZpwdbUwdHqwcHHOr 7/7J8W8w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgAZH-0004l3-Ky; Fri, 20 Nov 2020 17:51:31 +0000 Received: from mickerik.phytec.de ([195.145.39.210]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgAZF-0004k8-MZ for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 17:51:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1605894685; x=1608486685; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z6rwBq5JPR0vFRoy2bzdOPas5ntKnEdeCzqCwluX1gk=; b=IO5Hqx8MsH5OD9RoFP2Z+sRhqqpj+U84oNEVqESVEq1tuSPDlUHy4dH4hvADsL0h xlYItEEabVo1jjDCn2aXcgzlS280CPQdaL9YuyZiMnhq0NmsIJtYAiHL8STeQ4Ig n3sHTjvBjbkgu43fUKlo6qWNyF/GKwbl7tEWWFO0zAs=; X-AuditID: c39127d2-6f5ff70000001abf-d3-5fb8021d7d65 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id E4.C9.06847.D1208BF5; Fri, 20 Nov 2020 18:51:25 +0100 (CET) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2020112018512496-835912 ; Fri, 20 Nov 2020 18:51:24 +0100 From: Robert Karszniewicz To: Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: imx: Use correct SRC base address Date: Fri, 20 Nov 2020 18:51:24 +0100 Message-Id: <1605894684-310524-1-git-send-email-r.karszniewicz@phytec.de> X-Mailer: git-send-email 2.7.4 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 20.11.2020 18:51:25, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 20.11.2020 18:51:25, Serialize complete at 20.11.2020 18:51:25 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJJMWRmVeSWpSXmKPExsWyRoCBS1eWaUe8wYW1chabHl9jtfi7fROL xYst4g7MHptWdbJ5bF5S79H/1yCAOYrLJiU1J7MstUjfLoErY9rs4IKN7BWnL7WyNDD2sHUx cnJICJhIbOrfy9TFyMUhJLCVUaLp1Cp2COc8o8T7tlNgVWxAVbubbzF3MXJwiAgUSJx85gFi CguYS8ybLQBSwSKgKvF59SVWEJtXwFPi0q39rBDz5SRunutkBhkpIdDIJNF9/wc7REJI4vTi s8wTGLkXMDKsYhTKzUzOTi3KzNYryKgsSU3WS0ndxAj07uGJ6pd2MPbN8TjEyMTBeIhRgoNZ SYR3rebWeCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8G3hLwoQE0hNLUrNTUwtSi2CyTBycUg2M c39WnWaMVme8GdB13twgLtatmOPem/2Swo5a8YtuaLhf9rr7UyTlq95Modrud7Y1LtrHv7zh qJdPyTjiz2qd91P03vTPd9Yc/p34T3VLa3HE3tPxJR82bn6zbf66Fw2LJkvo3G00+px4WrTo wD6VLd9XFAo2HariST/5QWNujH7/kRjr2J2VSizFGYmGWsxFxYkA6eZYU9wBAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_125129_915641_F72E25B7 X-CRM114-Status: GOOD ( 13.06 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 4a4fb66119eb ("ARM: imx: Add missing of_node_put()") accidentally forgot to rename a variable, which caused the wrong address to be used and, in our case, the ULL getting falsely identified as ULZ. Fixes: 4a4fb66119eb ("ARM: imx: Add missing of_node_put()") Signed-off-by: Robert Karszniewicz Reviewed-by: Fabio Estevam --- arch/arm/mach-imx/anatop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index d841bed8664d..7bb47eb3fc07 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -136,7 +136,7 @@ void __init imx_init_revision_from_anatop(void) src_np = of_find_compatible_node(NULL, NULL, "fsl,imx6ul-src"); - src_base = of_iomap(np, 0); + src_base = of_iomap(src_np, 0); of_node_put(src_np); WARN_ON(!src_base); sbmr2 = readl_relaxed(src_base + SRC_SBMR2);