From patchwork Mon Nov 14 05:02:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9426487 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 AD46660233 for ; Mon, 14 Nov 2016 05:06:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E3E3288B4 for ; Mon, 14 Nov 2016 05:06:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9019E288F7; Mon, 14 Nov 2016 05:06:50 +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 67C4D288B4 for ; Mon, 14 Nov 2016 05:06:49 +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 1c69S4-0002iN-07; Mon, 14 Nov 2016 05:05:04 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c69Mu-0005v1-H6 for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2016 04:59:46 +0000 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGM00LQ78IMQU50@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2016 13:59:24 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-86-582944ac5c32 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 6C.23.25310.CA449285; Mon, 14 Nov 2016 13:59:24 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGM009SR8IFBJ70@mmp2.samsung.com>; Mon, 14 Nov 2016 13:59:24 +0900 (KST) From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/16] ARM: STi: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:01 +0530 Message-id: <1479099731-28108-7-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> References: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRmVeSWpSXmKPExsVy+t9jQd01LpoRBp33zC3+TjrGbjF39iRG i+atXxktzp/fwG6x6fE1VovLu+awWTxY/ZbNYtHWL+wWc05cZbS41D+RyWL+t5OsFh3LGC02 PzjG5sDrcfnaRWaP378mMXpMPKvrsXPWXXaPTas62Tw2L6n36NuyitHj6Y+9zB5zfn5j8fi8 SS6AK8rNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMO zgHuwUr6dgluGdePN7IWzOWo+NZl0cD4lK2LkZNDQsBE4lTTVFYIW0ziwr31QHEuDiGBWYwS d86uZgdJCAn8ZJTY9oYLxGYT0JV48n4uM4gtIuAmcaOxgwmkgVlgOZPE5YvrWUASwgKOEgde 9oAVsQioSvzZshJsA6+Ah8T+tZNZILbJSdw81wlWwyngKTGn8wwbxDIPiec3rjNOYORdwMiw ilEitSC5oDgpPdcwL7Vcrzgxt7g0L10vOT93EyM4dp5J7WA8uMv9EKMAB6MSD+8BM80IIdbE suLK3EOMEhzMSiK8rjZAId6UxMqq1KL8+KLSnNTiQ4ymQIdNZJYSTc4HxnVeSbyhibmJubGB hbmlpYmRkjhv4+xn4UIC6YklqdmpqQWpRTB9TBycUg2MR+qytyTvDJ2374G7aFNN3I9mwZ1L de++d15jPc/4n7bxGTv+HVeYdMU/iS/gPRfqt+rLBdfFKuGHujLS2Orvz4k+XWo8q7qMYeOB FdY3rs6fnSLwy/j+pCV7Ux6oPfxQ9VHY+bpuwlKWRrnGQ6ePz7jU0fHl381/FxkuTl921dqk /f1GhVfWvEosxRmJhlrMRcWJALMbJRazAgAA X-MTR: 20000000000000000@CPGS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161113_205944_877006_E8DFC08D X-CRM114-Status: GOOD ( 10.68 ) 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: arnd@arndb.de, geert+renesas@glider.be, vireshk@kernel.org, magnus.damm@gmail.com, Patrice Chotard , krzk@kernel.org, rmk+kernel@armlinux.org.uk, horms@verge.net.au, thomas.ab@samsung.com, Pankaj Dubey , shiraz.linux.kernel@gmail.com MIME-Version: 1.0 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 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Patrice Chotard Signed-off-by: Pankaj Dubey --- arch/arm/mach-sti/platsmp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-sti/platsmp.c b/arch/arm/mach-sti/platsmp.c index ea5a227..0bc7ff8 100644 --- a/arch/arm/mach-sti/platsmp.c +++ b/arch/arm/mach-sti/platsmp.c @@ -99,19 +99,12 @@ static int sti_boot_secondary(unsigned int cpu, struct task_struct *idle) static void __init sti_smp_prepare_cpus(unsigned int max_cpus) { struct device_node *np; - void __iomem *scu_base; u32 __iomem *cpu_strt_ptr; u32 release_phys; int cpu; unsigned long entry_pa = virt_to_phys(sti_secondary_startup); - np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); - - if (np) { - scu_base = of_iomap(np, 0); - scu_enable(scu_base); - of_node_put(np); - } + of_scu_enable(); if (max_cpus <= 1) return;