From patchwork Mon Oct 15 12:31:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C39B18BC for ; Mon, 15 Oct 2018 12:33:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3770328B52 for ; Mon, 15 Oct 2018 12:33:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AA6A28B79; Mon, 15 Oct 2018 12:33:44 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EA0F28B52 for ; Mon, 15 Oct 2018 12:33:43 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=nMrDJJ584rlZUyxMu6p6z1OIkEtKsjDWdxVOW4qES8I=; b=onP4p+/eYfaKGICiXMHzxKDC17 xUVJ9uFk4SNdwdIaiHS0/muiOgkVDQcO4ieIN/1rPWFaHN+Ue3L0DlaFTbkKFfSRK9nalpwS1IBhN m1axFIYGpVthXXdQ93ONVaO9ESs/0IOXwXOtBT3BQCZGNeI1maxlZ8bc+GxnEi64i5GlUKFJkQDeZ sP3T9QQ1H27W7XnzDv/SefYvj4LSSyP0PlnGigLq13tBMa7VYyJLIZmefTICLkL8PBAPnm5iqXm6Y NWhrvMPv0xy1FoxpXikM6Hiq8nOczVJ0siiXbWpCb4oB1FRGmWVs0xDS55uggAuQQbaH2JeXpAULP FzSRVq9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC243-0001Lf-89; Mon, 15 Oct 2018 12:33:39 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22G-0000V5-7C for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:53 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123136euoutp01cdb676658468bcf30f9e1cf1b6ced1b4~dyCID2asL0673906739euoutp01u; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181015123136euoutp01cdb676658468bcf30f9e1cf1b6ced1b4~dyCID2asL0673906739euoutp01u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606696; bh=hE4KIJfsgG80RlWzLC4i+vSpLTiGkNSGTs/k+EYthPI=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=phOC8a6dSNWzc1Z2vqv+YrX8XXsKP2fi5rVT9pJnh+DUdkKAd36xiNy5QCaha3b12 v28+gioR+drxNV02sKQoqkN9tl4HweYIZ+HTlgFN87+eQo28I7B5srw5xA4d/mVYG9 g7zbkValw7R9pL7yTyQOpqMyJBkGOaLuYLZ+cgYY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123135eucas1p12a3f2190d4541140d8affa3a1ec722cc~dyCHjB8Eb1989019890eucas1p1l; Mon, 15 Oct 2018 12:31:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 1C.22.04441.7A884CB5; Mon, 15 Oct 2018 13:31:35 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68~dyCG4vPtX3197531975eucas1p2d; Mon, 15 Oct 2018 12:31:34 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-eb-5bc488a72289 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 26.EE.04284.6A884CB5; Mon, 15 Oct 2018 13:31:34 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:34 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] clocksource: exynos_mct: Remove dead code Date: Mon, 15 Oct 2018 14:31:07 +0200 Message-id: <20181015123112.9379-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djP87rLO45EG+z6yGexccZ6Vov3y3oY La5/ec5qMe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w9upet4CZ7xfndOxgbGDeydTFycEgImEjc+uTXxcjFISSwhFHi6K79TF2MnEBOE5NE xz4DEJtNwFCi620XG4gtIpAtMX9vNzuIzSywhFni5n0HEFtYwFHix+p1YL0sAqoS+7ccYgax eQVsJG4saWMBsSUE5CVWbzgAFucUsJU4/H8VC8QuG4kLx/4yTmDkWcDIsIpRJLW0ODc9t9hQ rzgxt7g0L10vOT93EyMwCLcd+7l5B+OljcGHGAU4GJV4eAV4jkQLsSaWFVfmHmKU4GBWEuGV CDkULcSbklhZlVqUH19UmpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNTqoExfFH7 DbEvARoRRi8E7hkLtWW6WJV4MITf+HLBZJnMVtMf5+5rr52b9WXKaoNCycbULlH9+90Mmed3 7FxfVherqJ2zflNCwJm9zPKtriGFZzW2bzi/NPVR1D6xSa9yNBInNv80bV67+fO8WZfEHWcb HJS5L/FaYa44k87Xr9eEVhR5fCu7sjZbiaU4I9FQi7moOBEAFHYTOT4CAAA= X-CMS-MailID: 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68 References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053148_424665_606DFEF7 X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 Exynos Multi-Core Timer driver is used only on device-tree based systems, so remove non-dt related code. In case of !CONFIG_OF the code is anyway equal because of_irq_count() has a stub returning 0. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 7a244b681876..43b335ff4a96 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -581,11 +581,7 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) * timer irqs are specified after the four global timer * irqs are specified. */ -#ifdef CONFIG_OF nr_irqs = of_irq_count(np); -#else - nr_irqs = 0; -#endif for (i = MCT_L0_IRQ; i < nr_irqs; i++) mct_irqs[i] = irq_of_parse_and_map(np, i); From patchwork Mon Oct 15 12:31:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 390DF112B for ; Mon, 15 Oct 2018 12:34:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2623029666 for ; Mon, 15 Oct 2018 12:34:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A6ED297A9; Mon, 15 Oct 2018 12:34:33 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9B93829666 for ; Mon, 15 Oct 2018 12:34:32 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=v1qHP2IA0gNE5vQMs0di8Wl39jlbi1muf7kAwB1CL9U=; b=oSTzKxFq07wjWn48zcuS3i5bGN 9o6tNZ+hndoJ+CJDDbNWfmap8orPkAaoZhrcaS7eQWDMkwip4HdMJ/v/kEzmoLVqBzlHZ1SN1LSmS Cv90gMK3wHyTtcnyA1xSA9ExxaWanhspOdIzv+FNcTLHLagncW797gCPKLWMN/QaFMQgmkrXe5KC6 LvrfnEmu5CAE5e3/c40Ef+7OoliAmDEYRKB+VINHJaTQkbEUJs5pPFPtrKfetsso1YJllZxnCYYUv N6eu2fijJWaVDpfMsPE8WfCt+0jKgPgKogt4CROvdoxNXkVQqkSqj6jMoVjRw6DYf5R0r2f2mYwN8 u9L4raOg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC24e-0001cH-Sc; Mon, 15 Oct 2018 12:34:16 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22G-0000V7-7D for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:53 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123136euoutp01f8f16327ec9e5fcc6111a2bd66984e0b~dyCIhAdf20681706817euoutp01i; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181015123136euoutp01f8f16327ec9e5fcc6111a2bd66984e0b~dyCIhAdf20681706817euoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606696; bh=cse+VOAcgPmNGKk2EiPdVIoBwnoLUK7Ug9Nh0R0rQ0I=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=hzieEwHKdRa1jnW2qU+jETDgRm8gMH4DoyIeC76q2U5TE4YRGS5pVRBEpz20q8Mdp 8ePV+nAfQcqIBHUclhr5jxg6fbOLJ4QcRgoT/G7pyMmVv79w93J7lFScO4o6ZBtj93 Ua8Jl+YGefuIzjhpSh8j1bNx0S6XeM7MAngh8MlE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123136eucas1p23e5fa00af4b528e2e093ab9b12a19347~dyCIFpbMe2085720857eucas1p2f; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 6C.6F.04806.7A884CB5; Mon, 15 Oct 2018 13:31:35 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123135eucas1p18df135504c9476cead8da6463226cdec~dyCHW-NcF1986619866eucas1p1v; Mon, 15 Oct 2018 12:31:35 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-91-5bc488a7f632 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 17.DE.04128.7A884CB5; Mon, 15 Oct 2018 13:31:35 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:35 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] clocksource: exynos_mct: Fix error path in timer resources initialization Date: Mon, 15 Oct 2018 14:31:08 +0200 Message-id: <20181015123112.9379-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsWy7djP87rLO45EG5xsMrLYOGM9q8X7ZT2M Fte/PGe1mPdZ1mLS/QksFufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i793/rFZbN40ldni 5ccTLA68HmvmrWH02LSqk83jzrU9bB7vzp1j99i8pN6jb8sqRo/Pm+QC2KO4bFJSczLLUov0 7RK4Mg4umcdY0M9VcWL2dvYGxoMcXYycHBICJhKz7k1i6mLk4hASWMEosXjuPmYI5zOjxKTJ 79lhqk7vXwaVWMYosXDaChYIp4FJYtvJ46wgVWwChhJdb7vYQGwRgWyJzscPGEFsZoFFzBIH jgmD2MICyRL3r68HinNwsAioSnzfB3YGr4CNxJ8v+1gglslLrN5wgBnE5hSwlTj8fxXYLgmB A2wSGyctYoMocpHYdqATyhaWeHV8C9SlMhKXJ3dDNTQzSrTPmMUO4fQwSmydswOqw1ri8PGL rBDX8UlM2jadGeQiCQFeiY42IYgSD4kJqxdCvTyBUeLJii+sExglFzAyrGIUTy0tzk1PLTbO Sy3XK07MLS7NS9dLzs/dxAiM59P/jn/dwbjvT9IhRgEORiUeXgGeI9FCrIllxZW5hx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20181015123135eucas1p18df135504c9476cead8da6463226cdec X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123135eucas1p18df135504c9476cead8da6463226cdec References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053148_409963_42285ACA X-CRM114-Status: GOOD ( 16.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 While freeing interrupt handlers in error path, don't assume that all requested interrupts are per-processor interrupts and properly release standard interrupts too. Suggested-by: Krzysztof Kozlowski Fixes: 56a94f13919c ("clocksource: exynos_mct: Avoid blocking calls in the cpu hotplug notifier") Signed-off-by: Marek Szyprowski Reported-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 43b335ff4a96..a379f11fad2d 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -562,7 +562,19 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * return 0; out_irq: - free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + if (mct_int_type == MCT_INT_PPI) { + free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + } else { + for_each_possible_cpu(cpu) { + struct mct_clock_event_device *pcpu_mevt = + per_cpu_ptr(&percpu_mct_tick, cpu); + + if (pcpu_mevt->evt.irq != -1) { + free_irq(pcpu_mevt->evt.irq, pcpu_mevt); + pcpu_mevt->evt.irq = -1; + } + } + } return err; } From patchwork Mon Oct 15 12:31:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B36B112B for ; Mon, 15 Oct 2018 12:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38E6629799 for ; Mon, 15 Oct 2018 12:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C74E297A4; Mon, 15 Oct 2018 12:32:33 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F17C29799 for ; Mon, 15 Oct 2018 12:32:32 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=dV4KuHELPZ8stB5koxxG1vrQoXw66Zb5sqPrTqwMVR4=; b=AL/UFRXOwIogrvsGah5vnfSat9 oX/pgbAP5DDeGhbHJ8gMCF419chUskcreVCmkrJuoiVdh8ljzSURMp3UwpSRdRCY1SIK3hUBc5fIn k5G9tcM44+9uqXhuISjX0ykciX+4xFD/hXwRuUV/EN+lysz5FAnr4RbmoCPaFu1mXPpVkZ+/IBKHz bOyCj0SQZrTHackIaZpPI2t9ZjzrMO6Pk+pkxBrqcBr60DC1t4Jz5BDLDLZQRbqoKmFoT9PJy/rvo Wb/dSCOmOGIYeWXVfUkWGLG4SAVvVTPJjVQSMabyjqWLyaNLAyRIZkg+b5qyto6N+8w8kJb+/5rRi mwk0X3gg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22u-0000oy-GB; Mon, 15 Oct 2018 12:32:28 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22F-0000VI-Fx for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:49 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123137euoutp02959350a1d04b8d6962a3d0574a94aa65~dyCI95cyV0736707367euoutp02m; Mon, 15 Oct 2018 12:31:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181015123137euoutp02959350a1d04b8d6962a3d0574a94aa65~dyCI95cyV0736707367euoutp02m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606697; bh=dLPRR3RFOQ7kx3DZxcRUOiHe8ffhAjgtdf+LPKBKU48=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=hH+rmRAeBcnGYaAhI6Zj3nRvGl28IjbF0XOjv83X3GUp8K5EoTnR8kvb02F7g0bU9 NvntQs4UiCjq6r5G99XIakWC8lYsUd+JwQwkmzJESfovX/NRQmYm56jLtX35vgKbC3 nKAMcZ9Gtzr3ADd2b9tkWh+qduHROByTl20qJe/Q= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123136eucas1p1eac06665ec0f052d8220f51f63d43e26~dyCIlCOG_1204612046eucas1p1o; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 29.DE.04294.8A884CB5; Mon, 15 Oct 2018 13:31:36 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123135eucas1p16a10ed68040141a714ab2977e2ad5e2d~dyCH61tfm1990719907eucas1p1p; Mon, 15 Oct 2018 12:31:35 +0000 (GMT) X-AuditID: cbfec7f4-c77a99c0000010c6-2b-5bc488a893a4 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 98.DE.04128.7A884CB5; Mon, 15 Oct 2018 13:31:35 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:35 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64 Date: Mon, 15 Oct 2018 14:31:09 +0200 Message-id: <20181015123112.9379-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7djPc7orOo5EGyy8KWqxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZcxefpi54IhyxeS2eWwNjHdluhg5OSQETCT+9n1m6mLk4hASWMEo8eDBbyaQhJDAZ0aJ G7/LYIpurJvNBhFfxijRucwboqGBSWLbyeOsIAk2AUOJrrddYEUiAtkSnY8fMILYzAKLmCUO HBMGsYUFYiR6HvxkBrFZBFQlDl/ZD1TDwcErYCNxfmsSxC55idUbDoCVcArYShz+v4oFZJeE wB42iXNdM9ggilwkfi3pZYewhSVeHd8CZctIXJ7cDdXQzCjRPmMWO4TTwyixdc4OqG5ricPH L7JCXMcnMWnbdGaQKyQEeCU62oQgSjwkXq9bwgbx5QRGiUMPFrNNYJRcwMiwilE8tbQ4Nz21 2CgvtVyvODG3uDQvXS85P3cTIzCWT/87/mUH464/SYcYBTgYlXh4BXiORAuxJpYVV+YeYpTg YFYS4ZUIORQtxJuSWFmVWpQfX1Sak1p8iFGag0VJnHfZvI3RQgLpiSWp2ampBalFMFkmDk6p BsbVb1637b8+VSLlakmqk1PFop43elFCfJ1JHy/OKpG7LKz4dwGzZJ+41IxvXWxh32XkSzJ8 3IP1Cm2v7xG6lhagvoixzev199cuwlWCG1J+RPsV3RIvNxcwPWdzMu9t8M+4AG3jz2ZJW4K/ eORJ3LdyXxCTk5H2+up9rzJT/fqDrKpzLK+WK7EUZyQaajEXFScCADT6AJPhAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xy7rLO45EG3R/NbDYOGM9q8X7ZT2M Fte/PGe1mPdZ1mLS/QksFufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i793/rFZbN40ldni 5ccTLA68HmvmrWH02LSqk83jzrU9bB7vzp1j99i8pN6jb8sqRo/Pm+QC2KO4bFJSczLLUov0 7RK4MmYvP8xccES5YnLbPLYGxrsyXYycHBICJhI31s1mA7GFBJYwSnx/qtLFyAVkNzFJnL5+ hREkwSZgKNH1tgusSEQgW2L+3m52EJtZYAmzxM37DiC2sECMRM+Dn8wgNouAqsThK/uBejk4 eAVsJM5vTYLYJS+xesMBsBJOAVuJw/9XsUDstZG4cOwv4wRGngWMDKsYRVJLi3PTc4uN9IoT c4tL89L1kvNzNzECg3DbsZ9bdjB2vQs+xCjAwajEwyvAcyRaiDWxrLgy9xCjBAezkgivRMih aCHelMTKqtSi/Pii0pzU4kOM0hwsSuK85w0qo4QE0hNLUrNTUwtSi2CyTBycUg2MJes2fr3b qLd82jKhkncfTr26OvOh3wnnGc7P33//q77kpO/WjlPLOWafUVx5/WJ9l0GtIuOhD7qdWVzz 7KfIMKSsbziyz027e8v1WauaorSuMXluE5U41Csw113Kre605kzDOl6lWw8/Pg66NuOpscu7 jDBpa53J1XzHr531YPhm+2df7xrVGCWW4oxEQy3mouJEAGHAIBs+AgAA X-CMS-MailID: 20181015123135eucas1p16a10ed68040141a714ab2977e2ad5e2d X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123135eucas1p16a10ed68040141a714ab2977e2ad5e2d References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053147_704530_03D18AAA X-CRM114-Status: GOOD ( 21.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 To get ARM Architected Timers working on Samsung Exynos SoCs, one has to first configure and enable Exynos Multi-Core Timer, because they both share some common hardware blocks. This patch adds a mode of cooperation with arch_timer driver, so kernel can use CP15 based timer interface via arch_timer driver, which is mandatory on ARM64. In such mode driver only configures MCT registers and starts the timer but don't register any clocksource or events in the system. Those are left to be handled by arch_timer driver. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 52 +++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index a379f11fad2d..06cd30a6d59a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -57,6 +57,7 @@ #define TICK_BASE_CNT 1 enum { + MCT_INT_NONE = 0, MCT_INT_SPI, MCT_INT_PPI }; @@ -238,6 +239,9 @@ static int __init exynos4_clocksource_init(void) { exynos4_mct_frc_start(); + if (!mct_int_type) + return 0; + #if defined(CONFIG_ARM) exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer; exynos4_delay_timer.freq = clk_rate; @@ -343,6 +347,9 @@ static struct irqaction mct_comp_event_irq = { static int exynos4_clockevent_init(void) { + if (!mct_int_type) + return 0; + mct_comp_device.cpumask = cpumask_of(0); clockevents_config_and_register(&mct_comp_device, clk_rate, 0xf, 0xffffffff); @@ -476,12 +483,12 @@ static int exynos4_mct_starting_cpu(unsigned int cpu) irq_force_affinity(evt->irq, cpumask_of(cpu)); enable_irq(evt->irq); - } else { + } else if (mct_int_type == MCT_INT_PPI) { enable_percpu_irq(mct_irqs[MCT_L0_IRQ], 0); } - clockevents_config_and_register(evt, clk_rate / (TICK_BASE_CNT + 1), - 0xf, 0x7fffffff); - + if (mct_int_type) + clockevents_config_and_register(evt, + clk_rate / (TICK_BASE_CNT + 1), 0xf, 0x7fffffff); return 0; } @@ -496,7 +503,7 @@ static int exynos4_mct_dying_cpu(unsigned int cpu) if (evt->irq != -1) disable_irq_nosync(evt->irq); exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); - } else { + } else if (mct_int_type == MCT_INT_PPI) { disable_percpu_irq(mct_irqs[MCT_L0_IRQ]); } return 0; @@ -529,7 +536,7 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * &percpu_mct_tick); WARN(err, "MCT: can't request IRQ %d (%d)\n", mct_irqs[MCT_L0_IRQ], err); - } else { + } else if (mct_int_type == MCT_INT_SPI) { for_each_possible_cpu(cpu) { int mct_irq = mct_irqs[MCT_L0_IRQ + cpu]; struct mct_clock_event_device *pcpu_mevt = @@ -564,7 +571,7 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * out_irq: if (mct_int_type == MCT_INT_PPI) { free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); - } else { + } else if (mct_int_type == MCT_INT_SPI) { for_each_possible_cpu(cpu) { struct mct_clock_event_device *pcpu_mevt = per_cpu_ptr(&percpu_mct_tick, cpu); @@ -585,17 +592,28 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) mct_int_type = int_type; - /* This driver uses only one global timer interrupt */ - mct_irqs[MCT_G0_IRQ] = irq_of_parse_and_map(np, MCT_G0_IRQ); + if (IS_ENABLED(CONFIG_ARM64) && IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) { + struct device_node *np = of_find_compatible_node(NULL, NULL, + "arm,armv8-timer"); + if (np) { + mct_int_type = MCT_INT_NONE; + of_node_put(np); + } + } - /* - * Find out the number of local irqs specified. The local - * timer irqs are specified after the four global timer - * irqs are specified. - */ - nr_irqs = of_irq_count(np); - for (i = MCT_L0_IRQ; i < nr_irqs; i++) - mct_irqs[i] = irq_of_parse_and_map(np, i); + if (mct_int_type) { + /* This driver uses only one global timer interrupt */ + mct_irqs[MCT_G0_IRQ] = irq_of_parse_and_map(np, MCT_G0_IRQ); + + /* + * Find out the number of local irqs specified. The local + * timer irqs are specified after the four global timer + * irqs are specified. + */ + nr_irqs = of_irq_count(np); + for (i = MCT_L0_IRQ; i < nr_irqs; i++) + mct_irqs[i] = irq_of_parse_and_map(np, i); + } ret = exynos4_timer_resources(np, of_iomap(np, 0)); if (ret) From patchwork Mon Oct 15 12:31:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F103E112B for ; Mon, 15 Oct 2018 12:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF309297A6 for ; Mon, 15 Oct 2018 12:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D31F8297AA; Mon, 15 Oct 2018 12:35:10 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5EB2B297A6 for ; Mon, 15 Oct 2018 12:35:10 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=3FmTdabxiDbiFKT+c294JnOSNuteDXNEnnGHRhKbt1g=; b=A7SaK0xt0XBsVUoqO2ZFd+n2bF sdeazoeRHk5Z7z3d8vegOYslExH2cfCRVd9sva87A6JO4mGiNmLgN70zJTbfMWATVePcOA4Q1xC49 ou+zVofrIUK9cIqF+BEf8iQxTDXb7LdgMGME2JvcpxKa2uEfc2Rwa/Q0r20F3l3f1rbXA+fjubPq6 eMU7rIx55df+OGrCiTTLiGFh/sCsZc9Jj2nu8KuCi4Y6F3DAZqNQNMPBFa+dDgPJbEL+SZyxuQboa K1jDrcqe0h/hBdFS8EWTS6jp/nzl3BnBwyLrXOca6qGgsV2h791i19q/hibqXMX7qnrzIJfesYVrZ iRmpkSnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC25G-0001uU-Vz; Mon, 15 Oct 2018 12:34:55 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22G-0000V8-7E for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:53 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123137euoutp01470b4f3fab724f194434fcfef1932e5d~dyCJmcZ3y0681706817euoutp01j; Mon, 15 Oct 2018 12:31:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181015123137euoutp01470b4f3fab724f194434fcfef1932e5d~dyCJmcZ3y0681706817euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606697; bh=P5wI1ifO1zqgHAbKZBI+jz0znA3KVWd2lDiGG6h9IJ4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=hombqJbMpm2Nq3hx1gOSsSkLA0w4la7ll3gdYPCljake9Yxwlnt0UvF30qP6yVQ/+ hPIcA/0Y97qIMv/AAdbUb5siuZi2fhOa40TiwC90i3QbFCdjsTe20P9uDjABPAN/mR gig/pH92huZObnnkLdBWMAYLQq/woxRJ8wEfg4EA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123137eucas1p1c44665123538fb3d494118016cdc2416~dyCJL_lDU1988219882eucas1p1p; Mon, 15 Oct 2018 12:31:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id FD.6F.04806.8A884CB5; Mon, 15 Oct 2018 13:31:36 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123136eucas1p2f7d4ae86ba3547b891749b01514cd335~dyCIYINp_3197531975eucas1p2e; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) X-AuditID: cbfec7f5-79db79c0000012c6-98-5bc488a81a6a Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C7.EE.04284.8A884CB5; Mon, 15 Oct 2018 13:31:36 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:36 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] clocksource: Change CPU hotplug priority of exynos_mct driver Date: Mon, 15 Oct 2018 14:31:10 +0200 Message-id: <20181015123112.9379-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsWy7djPc7orOo5EGxybYWaxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZbw/tYC9YAFHxZ6uyawNjFPYuxg5OSQETCS2LdjC2MXIxSEksIJRort9GTuE85lRYl/P B2aYqhN/J7BBJJYxSryacxjKaWCSWH57PitIFZuAoUTX2y42EFtEIFui8/EDRhCbWWARs8SB Y8IgtrBAuMShly1gU1kEVCXuzLwIdgevgI3EjOYTTBDb5CVWbzgAVsMpYCtx+P8qFpBlEgJ7 2CQuN32GOslFYva8bihbWOLV8S1QD8lIdHYcZIJoaGaUaJ8xix3C6WGU2DpnBxtElbXE4eMX WSHO45OYtG060CQOoDivREebEESJh8T0qRvASoQEJjBKNF3UmcAouYCRYRWjeGppcW56arFx Xmq5XnFibnFpXrpecn7uJkZgPJ/+d/zrDsZ9f5IOMQpwMCrx8ArwHIkWYk0sK67MPcQowcGs JMIrEXIoWog3JbGyKrUoP76oNCe1+BCjNAeLkjjvsnkbo4UE0hNLUrNTUwtSi2CyTBycUg2M OikTG2o26jOGPP/OcqGz+v1msS2adn27sj7mHXlRvfm8k/OxLxNm3O3tzFPtbd3M1chV3LQ2 Qj9jq6v67yUmxucUtk62WqlueSNUmrW4nvHDhKm88id5mGefVHv0p9jpluOFlZv4DgX0T37o 0l+4/73s40PqPzbYOvd1hPtMPZleKZ0wt+aZEktxRqKhFnNRcSIALAvtHOMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xy7orOo5EG/S9FLHYOGM9q8X7ZT2M Fte/PGe1mPdZ1mLS/QksFufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i793/rFZbN40ldni 5ccTLA68HmvmrWH02LSqk83jzrU9bB7vzp1j99i8pN6jb8sqRo/Pm+QC2KO4bFJSczLLUov0 7RK4Mt6fWsBesICjYk/XZNYGxinsXYycHBICJhIn/k5gA7GFBJYwSvy8CWRzAdlNTBLbrp5g AUmwCRhKdL3tAisSEciWmL+3G6yZWWAJs8TN+w5djBwcwgLhEjPb7EDCLAKqEndmXgQr4RWw kZjRfIIJYpe8xOoNB5hBbE4BW4nD/1exQOy1kbhw7C/jBEaeBYwMqxhFUkuLc9Nziw31ihNz i0vz0vWS83M3MQKDcNuxn5t3MF7aGHyIUYCDUYmHV4DnSLQQa2JZcWXuIUYJDmYlEV6JkEPR QrwpiZVVqUX58UWlOanFhxilOViUxHnPG1RGCQmkJ5akZqemFqQWwWSZODilGhjl1efr7nlQ nz5BxI2vm+/L/FtqbdtjOy7VvVJb8Wx2cNWyK4J9F6+clZ5qtMnnhXSER+Uu8yDZaX9aFr6a OumuIUM/34OL56MKzSUzP1XNveCby8SxKiRnodDBf/7a8r8WlfewOGkzFnoITL7m5ukb8kCe Z/vUQ/ufJC5Uvx9ofotxoeJcwyglluKMREMt5qLiRAAzhsi7PgIAAA== X-CMS-MailID: 20181015123136eucas1p2f7d4ae86ba3547b891749b01514cd335 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123136eucas1p2f7d4ae86ba3547b891749b01514cd335 References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053148_420079_A67E0C6E X-CRM114-Status: GOOD ( 14.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 Exynos Multi-Core Timer driver (exynos_mct) must be started before ARM Architected Timers (arch_timer), because both timers share common hardware block and turning on MCT is needed to get ARM Architected Timer working properly. Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- include/linux/cpuhotplug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index caf40ad0bbc6..5d9e4a6ea299 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -115,10 +115,10 @@ enum cpuhp_state { CPUHP_AP_PERF_ARM_ACPI_STARTING, CPUHP_AP_PERF_ARM_STARTING, CPUHP_AP_ARM_L2X0_STARTING, + CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING, CPUHP_AP_ARM_ARCH_TIMER_STARTING, CPUHP_AP_ARM_GLOBAL_TIMER_STARTING, CPUHP_AP_JCORE_TIMER_STARTING, - CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING, CPUHP_AP_ARM_TWD_STARTING, CPUHP_AP_QCOM_TIMER_STARTING, CPUHP_AP_ARMADA_TIMER_STARTING, From patchwork Mon Oct 15 12:31:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25E4418BC for ; Mon, 15 Oct 2018 12:32:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1386B29796 for ; Mon, 15 Oct 2018 12:32:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0675A29799; Mon, 15 Oct 2018 12:32:15 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51BE029796 for ; Mon, 15 Oct 2018 12:32:04 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=sV/aAGpMiz4i9d01SbFDTICLJBVzX1s0/lHD2akDpeE=; b=SOyoN14oa9O51r6dnW6G0l8Gl4 x0N98ddZA4gzjBlE/jnqXaAlJ8jAK6IzZlY6nqZYTlu8GD/f1/xkGIwECW3yOeiV1DdZmgDg4ySlX DAm45S7Q7HFbF98g2nmwrVr19iWkSinjMTIdtfsDs6lcqRnMYTpFQ64wIc6Aa7hDJLxu/8lYFZIKo oqWNnsLgKzBuSnGTt5QV1h817y6rXKYjiNMED7g2HocDieXJ8yHGw8/NX+HaRU1Rxlq9VfO66Vf8H 56Xf+NgXiWPiibVE2JtZ4cFIDjDSFyA1aBNQhuiPCcGoYQ0ksu7QR4h7nh0LSlr20k0HMnjpkbdLZ xfm05gnQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22M-0000ZR-Bq; Mon, 15 Oct 2018 12:31:54 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22F-0000VA-Fy for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:49 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123138euoutp027b60de0c35b26362ca986b518105c8f1~dyCKL0atM0591705917euoutp02h; Mon, 15 Oct 2018 12:31:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181015123138euoutp027b60de0c35b26362ca986b518105c8f1~dyCKL0atM0591705917euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606698; bh=kIXYHgbCw/TEbmTBRAWIfTvqOP+VrE5bWDenOgTQcoY=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NHnIYJRp7lXh+QNLuOWzKZ2Dw1jMRkE/9X0BYllongdjCzXfP/Pu4RNEuwKixL/8D M54lHE7E1rPdEqghrp7rBmp5t8/ifPiteoU1TKVMj/KScmElvP3SXv6t2NXnp1ndch vi+E5BVfICKsK7RPAfxpi5+950qBNWdAbGdCO2yw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123137eucas1p2951938764f36f3e8d85c9143452304a0~dyCJtUXcY2088020880eucas1p2p; Mon, 15 Oct 2018 12:31:37 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id DE.22.04441.9A884CB5; Mon, 15 Oct 2018 13:31:37 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123136eucas1p292c0d6662da5e6694e9f6773282ea017~dyCI2A4ek2088020880eucas1p2m; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-f9-5bc488a94e56 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 19.EE.04284.8A884CB5; Mon, 15 Oct 2018 13:31:36 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:36 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] arm64: dts: exynos: Move arch-timer node to right place Date: Mon, 15 Oct 2018 14:31:11 +0200 Message-id: <20181015123112.9379-6-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7djP87orO45EG1xZJGqxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4P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vYQGwRgWyJ+Xu72UFsZoElzBI37zuA2MIC/hKXp3xkBbFZBFQlpjUvYu5i 5ODgFbCRmLxDAWKZPNCyA8wgNqeArcTh/6vAxgsBlVw49pdxAiPPAkaGVYwiqaXFuem5xYZ6 xYm5xaV56XrJ+bmbGIFhuO3Yz807GC9tDD7EKMDBqMTDK8BzJFqINbGsuDL3EKMEB7OSCK9E yKFoId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYwp0lp6 yurbGQ6YzVc6zmdjdkP2EaOQ+xefSJfgWxN3KhYtWVHyL+uzf+qtTZyqv/T2nJv5J33ukQud qhfbH3xprV2Sv9KXcf6NxmWZ17aG2ulvEq7bbu0U+jDcS+Dk0slS8nbSiulukl89Ppss/Drz ffjMj6xPjyxb6Hetq/Lhz2Wbja7NlepVYinOSDTUYi4qTgQA8nznFj8CAAA= X-CMS-MailID: 20181015123136eucas1p292c0d6662da5e6694e9f6773282ea017 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123136eucas1p292c0d6662da5e6694e9f6773282ea017 References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053147_699574_CEAA155F X-CRM114-Status: GOOD ( 15.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 Move ARM architected timer device-tree node to the beginning of 'soc' node, to group it together with other ARM CPU core devices (like PMU). Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 2131f12364cb..fa20eb3495b3 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -255,6 +255,18 @@ interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; }; + timer: timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + chipid@10000000 { compatible = "samsung,exynos4210-chipid"; reg = <0x10000000 0x100>; @@ -1750,17 +1762,6 @@ }; }; - timer: timer { - compatible = "arm,armv8-timer"; - interrupts = , - , - , - ; - }; }; #include "exynos5433-bus.dtsi" From patchwork Mon Oct 15 12:31:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F19618BC for ; Mon, 15 Oct 2018 12:35:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B7212907F for ; Mon, 15 Oct 2018 12:35:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F64A297B4; Mon, 15 Oct 2018 12:35:43 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BCFE32907F for ; Mon, 15 Oct 2018 12:35:42 +0000 (UTC) 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:References: In-reply-to: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:List-Owner; bh=FxwJtCF95kTUDnMHxEMyyFCYmWjKRDHBTVvhUQx41mA=; b=Stzzm/N1viZ1Nrw2LVaPt7/rCp 7FT5AXI06kcR8UNpKiLFKMgEbYgu5J1aNjs/dm1Xy7fAo67NOL2Xw1ai6IMxui43YWtRUD7vVZQwe mF3mc9uBspYLZuQlyEyIoeOC9uG4CCfPERIO4ZaemCYr0ifAgATYfUMUKQSFrxS8ojxsr3AMHPAAK gb0K7IXhuPYOFlHQv5Khlm6lqOd72G3jqtZx+LbwiZSYqiUJTi6QIP45YgfZS7Je+UZlkcMAgLn+R MmCs1ZaHfJbc5b0RL6a3NBrg18aXNbNIs258DEiEtIKugpQm3SdfCoMgAueYKrYpFd2a08Gf9ctd3 3ROssspQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC25x-0003Pj-B5; Mon, 15 Oct 2018 12:35:37 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22G-0000VB-7B for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:53 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123138euoutp01ce6625f80a0a02ec738efdf946862c96~dyCKmgIfE0535705357euoutp01c; Mon, 15 Oct 2018 12:31:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181015123138euoutp01ce6625f80a0a02ec738efdf946862c96~dyCKmgIfE0535705357euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606698; bh=qeEVRttB2T9mgh+2zEC2o9kA/oN7J5+B2nsy6WtlGC0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Edheh4LqbK2S3y1Q8J8V9wfO7G3v+Ei9i4DC7sEJGDzZQbMxElSJDcn3q72nU7nQd VTnfbsOEf42fgTol3wTbuEEfe+PA8jjZuw5FvIhbBJBE8wnqwK72UzkmYN/Q5NlyXP 91IECxigz+wiWvGkkCpu7olit0Ufw1wzCW8D0CqM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123138eucas1p2cc2b7a7072e64a082d1cc84cd190daad~dyCKHa6_02085720857eucas1p2m; Mon, 15 Oct 2018 12:31:38 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 4B.DE.04294.9A884CB5; Mon, 15 Oct 2018 13:31:37 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123137eucas1p1cf043644b9b40e15c9d2f221f26bef51~dyCJaZuJ31988219882eucas1p1r; Mon, 15 Oct 2018 12:31:37 +0000 (GMT) X-AuditID: cbfec7f4-c77a99c0000010c6-33-5bc488a92ed2 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F9.DE.04128.9A884CB5; Mon, 15 Oct 2018 13:31:37 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:37 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] arm64: platform: Add enable Exynos Multi-Core Timer driver Date: Mon, 15 Oct 2018 14:31:12 +0200 Message-id: <20181015123112.9379-7-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djPc7orO45EG/RttrLYOGM9q8X7ZT2M Fte/PGe1mPdZ1mLS/QksFufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i793/rFZbN40ldni 5ccTLA68HmvmrWH02LSqk83jzrU9bB7vzp1j99i8pN6jb8sqRo/Pm+QC2KO4bFJSczLLUov0 7RK4Ms5efctU0MJWsXlXG0sDYydrFyMnh4SAiUT3707GLkYuDiGBFYwSty6sZYNwPjNKPD4+ l7mLkQOsqnFiPUR8GaPEpO55TBBOA5PEwTObmUBGsQkYSnS97WIDsUUEsiU6Hz9gBLGZBRYx Sxw4JgxiCwuESPw9vw0sziKgKnH/4AqwM3gFbCR+bX/CCHGSvMTqDQeYQWxOAVuJw/9XsYAs kxA4wCbx9HMnM0SRi0Tv/y6oBmGJV8e3sEPYMhKXJ3dDNTQzSrTPmMUO4fQwSmyds4MNospa 4vDxi6wQ5/FJTNo2HepPXomONiGIEg+J3ccOs4DYQgITGCU6FkdNYJRcwMiwilE8tbQ4Nz21 2CgvtVyvODG3uDQvXS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4alaSeSTlzy1Ls2VYmlOCPRUIu5qDgRAKPukG4/AgAA X-CMS-MailID: 20181015123137eucas1p1cf043644b9b40e15c9d2f221f26bef51 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123137eucas1p1cf043644b9b40e15c9d2f221f26bef51 References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053148_416522_C986ADF1 X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski 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 On Exynos SoCs enabling MCT driver is required even if ARM Architected Timer driver is used to for managing timer hardware and clock source events. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 51bc479334a4..7cc687580fad 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -62,6 +62,7 @@ config ARCH_BRCMSTB config ARCH_EXYNOS bool "ARMv8 based Samsung Exynos SoC family" select COMMON_CLK_SAMSUNG + select CLKSRC_EXYNOS_MCT select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS select EXYNOS_PMU select HAVE_S3C2410_WATCHDOG if WATCHDOG