From patchwork Thu Oct 18 09:57:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 149113 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1756214lji; Thu, 18 Oct 2018 02:57:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV60u0KvjavAs9BmEZkyy6pVqAqwsALvnFhBJAxp0PkKzKj44FZtCJvbUC9jTmWWOQO5cj3mN X-Received: by 2002:a17:902:b90c:: with SMTP id bf12-v6mr29646965plb.259.1539856643035; Thu, 18 Oct 2018 02:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539856643; cv=none; d=google.com; s=arc-20160816; b=H/XRlan7AoEOEI1itFw3//WsBYCTWtak1raIyB9nv4nBd7rui08k/LKlSyshS1PHF/ ZFGNW4BWopokQq3OswYO3kDTwjV6xZhE3k2f2XSywIMqEQ6DzdcKMRkhqcq3B4RtqDvP gl9brjv95zeqeDdObJA787p8vJA48e99cYnVh3Jd6RrOdAErEVdaGJbE9ix42egN+rOE uecaTQEJMdWzqxV7IPY+2ajz1i57je15ls/102SGuyNVQypuDfseDXofhKe+MpmjfOcz EpwRqUg+qzqvP2wdzI3SdTq5q8cGlnjFnECW0B4jLK5/6+q2yiaMKcwrAxmHOf6L/Hqe xKuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=zJetpoNhW01GT4Xt0gk6SKTpHAA/tdY/kH9zyQ9f4Ok=; b=MfyT2OHXFwJizcae9RP0vrPZ0q0pOBIjUdTuf4aqwJH0xoHWUqyKt3rRxKGb2U+Dj7 4QkG4tyNVFJjofmh93TabspPlUgFERe8+oGFcqYD0Gzw+inOZupglJXYOvZVYDipYAFb 52dzux8nHiVp9NH7TelB7RnSLn1QAbwqsD2Vqz6EL1yIjzhZozr/bxecei2q367Xcbj4 dshhc8ZUVg+iCi3sIT8qlxA9GHXZxxRJUqzSnDFq4Xe7nc+FGfpNbFH0OW6ivAU5l/1M LqYu+APhreRFDh5oVkhFwo7q9va66c8TosoWpvYS7zS5LB3mzWKMvRd4ap4E7EzA4pyt f8WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aTgk1rfP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si19975249pls.27.2018.10.18.02.57.22; Thu, 18 Oct 2018 02:57:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aTgk1rfP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728026AbeJRR5f (ORCPT + 32 others); Thu, 18 Oct 2018 13:57:35 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53116 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbeJRR5d (ORCPT ); Thu, 18 Oct 2018 13:57:33 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095717euoutp0111210dd8069639dc7b4488c71f5a1527~eq3QTbLOQ0107701077euoutp01Z; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095717euoutp0111210dd8069639dc7b4488c71f5a1527~eq3QTbLOQ0107701077euoutp01Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856637; bh=zJetpoNhW01GT4Xt0gk6SKTpHAA/tdY/kH9zyQ9f4Ok=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=aTgk1rfPeEW8tqfWTdwSg4TZQyK0mLQm3GVknpbI4DBOGG3NTEGMKLpylEnTksvV/ CVhXhn0S/KQgn+iD8KChOBSjDnCd2GxjMJsqmDUT2rw7p7sAlXfQaXUOtN3aEjB0ZI QTeXf7NYERUX/YClBqN1+KjwT+ZVGdSHIM636Wfw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p2f656677dcc7d03550eb6c8ca5f12f8a5~eq3PyTstY2351323513eucas1p2E; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 9D.D1.04294.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095716eucas1p192004241424d1cf581f715558b2e67a4~eq3O6tUM92351723517eucas1p1G; Thu, 18 Oct 2018 09:57:16 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-fb-5bc858fcf29a Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id AB.D2.04284.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:16 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae , Mark Rutland Subject: [PATCH v4 1/6] clocksource: exynos_mct: Remove dead code Date: Thu, 18 Oct 2018 11:57:03 +0200 Message-id: <20181018095708.1527-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsWy7djP87p/Ik5EG/xeYWCxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoErY9cq24LJfBV7GhvYGhgfcncxcnJICJhINK84xg5iCwmsYJRoWiLbxcgFZH9m lJjy9y4jTNGKZ9uZIYqWMUr8+JYAUdTAJPF3wwk2kASbgKFE19suMFtEIFui8/EDRpAiZoGT zBL/bm4CWyEs4Cjx5PZbFhCbRUBV4tnZFrA4r4CNxLGZb5ggtslLrN5wAGwbp4CtxJn571hA BkkIHGGTuPehhQWiyEVi+s3NzBC2sMSr41vYIWwZic6Og0wQDc2MEu0zZrFDOD2MElvn7GCD qLKWOHz8IiuIzSzAJzFp23SgSRxAcV6JjjYhiBIPicUf1zBD/DmBUeLR2uOsExglFzAyrGIU Ty0tzk1PLTbKSy3XK07MLS7NS9dLzs/dxAiM69P/jn/ZwbjrT9IhRgEORiUe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FxUnAgBdwqAyRQIAAA== X-CMS-MailID: 20181018095716eucas1p192004241424d1cf581f715558b2e67a4 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095716eucas1p192004241424d1cf581f715558b2e67a4 References: <20181018095708.1527-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Device node pointer is always provided when driver has been probed from device tree. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 7a244b681876..ef18bbf8d20c 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -507,13 +507,12 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * int err, cpu; struct clk *mct_clk, *tick_clk; - tick_clk = np ? of_clk_get_by_name(np, "fin_pll") : - clk_get(NULL, "fin_pll"); + tick_clk = of_clk_get_by_name(np, "fin_pll"); if (IS_ERR(tick_clk)) panic("%s: unable to determine tick clock rate\n", __func__); clk_rate = clk_get_rate(tick_clk); - mct_clk = np ? of_clk_get_by_name(np, "mct") : clk_get(NULL, "mct"); + mct_clk = of_clk_get_by_name(np, "mct"); if (IS_ERR(mct_clk)) panic("%s: unable to retrieve mct clock instance\n", __func__); clk_prepare_enable(mct_clk); @@ -581,11 +580,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 Thu Oct 18 09:57:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 149116 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1756704lji; Thu, 18 Oct 2018 02:57:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61cuCOa9FKmbu6WwMAjvruiyK+Aae2NDJvinHqR16+ViA1BBpg8+FtPJ/Mph69EirNmVjqh X-Received: by 2002:a17:902:7142:: with SMTP id u2-v6mr29526835plm.154.1539856669436; Thu, 18 Oct 2018 02:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539856669; cv=none; d=google.com; s=arc-20160816; b=00zi3f5ieTVTvMBQVePL4TCW6IwmZExncKYu6hir9cIweQtmZ3syro47Mk1DBBQrwF Xe7L7PIXsSzj61nuDp89Byr045uyZzbAn1qIrOZ8F12F11ChP2TcMttQMInks1+D5T8e RREC1vOfsnJHXhOY82rL0spEp4TEVqonemO45d3JlZcateMYKOh8gzU+yuxm1VHdpvhx nsZa2H6TGKGnipHhAI7KdrjLFq6fe4zGrlt6cIWZbE/ylTZYrBP64IcSq3HHnnSjUF3Z mAGjI5rLRoW9t5WsoWKrhgwnAfR+N6u0Be7xJUbbEjlhsS87NQFEO6PMxZEdhEG0mKnf EhfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=23R/J6B8yoCfPOWlxldxP5D7mXL7n7ZMaMuWjzEhIWQ=; b=MaMY1QGRAWT59idKxMjIdVQkzBzXsDHsIgFTMTbnvTqsvqujHt8ZQ0PVNgrASiFTG0 zHuoxYTE4H8Fdtf9uCSFSz6hNTDJ3FmDKw2A07obDZI2vXSCqV0aZOJeqrqo1DR69sNC LK7Fz4lSzd3QwKp5TcixpC5LsTVbAfDSVJxAWfoclBuK5K1loGPJEcaXRbeFSja0GGDr VDZtGSN+8H3a+2jhiRNuf8GJIq9ZUlIWj7b//n9P+niVd54oLpwAtQkBeqDcvJdIpJd5 Wg1GNWX3RMPBfVCfQYCWtPLInb5/YBBcKZq7h/mdDBFCEOtSODyN9hknYz6id8Al6vNs /caQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dBrHmwsU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r29-v6si22989162pff.262.2018.10.18.02.57.49; Thu, 18 Oct 2018 02:57:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dBrHmwsU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727995AbeJRR5e (ORCPT + 32 others); Thu, 18 Oct 2018 13:57:34 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58937 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbeJRR5d (ORCPT ); Thu, 18 Oct 2018 13:57:33 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095717euoutp0244b3117ec04057e0f96e184197362be3~eq3QpAt2j3210732107euoutp02q; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181018095717euoutp0244b3117ec04057e0f96e184197362be3~eq3QpAt2j3210732107euoutp02q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856638; bh=23R/J6B8yoCfPOWlxldxP5D7mXL7n7ZMaMuWjzEhIWQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=dBrHmwsUvh/Emgqaf1MT1jV5kIXzQO2P6ajX08nU9XWBCn7i/oLIvaOFBmfKIs+8z XnmkVvViXf2k0RVF2f94zd2fUKIL1c+fK+PrxaJy0kkSicn/CWdco5Y3UpAeob0iJl 3Th9Mx2gj+GRBruGfl7aGxD7IWkutIzZA1VfcOno= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p1d3672ab28cff9ac1551d45b80ea4a18a~eq3QKIJ891223412234eucas1p10; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8E.D1.04294.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967~eq3Pc6OL01224112241eucas1p1j; Thu, 18 Oct 2018 09:57:16 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-fc-5bc858fd08bb Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FC.D2.04284.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:16 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae , Mark Rutland Subject: [PATCH v4 2/6] clocksource: exynos_mct: Fix error path in timer resources initialization Date: Thu, 18 Oct 2018 11:57:04 +0200 Message-id: <20181018095708.1527-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7djPc7p/I05EG2yawW2xccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEr4+eGi+wFX7kq7p7YxdTAOJezi5GTQ0LARGLCq71sILaQwApGidP9Fl2MXED2 Z0aJPS8/McMU3Tzdxw6RWMYocev/YRYIp4FJ4u+GE2DtbAKGEl1vu8BsEYFsic7HDxhBipgF TjJL/Lu5iR0kISyQLHHr3l1WEJtFQFVi84LnTCA2r4CNxO01Vxkh1slLrN5wAGw1p4CtxJn5 78C2SQgcYZP4fPYoG0SRi8SV/jPsELawxKvjW6BsGYnOjoNMEA3NjBLtM2axQzg9jBJb5+yA 6raWOHz8ItgZzAJ8EpO2TQdaxwEU55XoaBOCKPGQmDbvDRvEnxMYJa5sW8w+gVFyASPDKkbx 1NLi3PTUYqO81HK94sTc4tK8dL3k/NxNjMDYPv3v+Jcd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fUr73y4vc8y4J+68osRRnJBpqMRcVJwIAH9crDEUCAAA= X-CMS-MailID: 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967 References: <20181018095708.1527-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While freeing interrupt handlers in error path, don't assume that all requested interrupts are per-processor interrupts and properly release standard interrupts too. Reported-by: Krzysztof Kozlowski Fixes: 56a94f13919c ("clocksource: exynos_mct: Avoid blocking calls in the cpu hotplug notifier") Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index ef18bbf8d20c..49413900b24c 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -561,7 +561,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 Thu Oct 18 09:57:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 149117 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1756740lji; Thu, 18 Oct 2018 02:57:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV62fuJka3zl+W1zDv5rJq5HaLC+D6Q0DGS1rUldKBhpX/muspiceUBxUfYdLayc8icvgLa9D X-Received: by 2002:a62:210:: with SMTP id 16-v6mr30913642pfc.100.1539856670911; Thu, 18 Oct 2018 02:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539856670; cv=none; d=google.com; s=arc-20160816; b=gUUwGrZn1iTGV08zhSNtkEImQp/ypRI8tDSScEQQT0PuZPR8wm95dun9bJmWQYgf3s yCTif26ELkNv76xMUCYJummHn4hwiTBnjbZ6BhIISJ/c9kQHAJbSYOzlhxg9i/2K6ZBe nS89ff3zG/zkB6HVSsecfLFlgvjrTxSrTAebpwYnmQP721/IfcbiYG37a/OHmp/8SdNK yvGXSfiRYhztEAcw29PIPDI6a1GAxnp+D3h5U3bb0wYFhaeDIgepJU/uWMelHqBmeRYu J5CrMZVheB3XaIBK/nZuPZS6b8SjUi+iuitzBPN63f6GG6aSIGLT9VXGyDGt97ryneTn l9qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=7RzFxofNGfgWBQtiHbTFe9TEVqpCi1g2karnmb1X59I=; b=fwF66HkT2TcSDVoG5Bgg9QPDZ0dbVM9ZTXOr7XuRT4QgRFhREfA18gk9sR6LWt9lkK TPTZ5cL9tud+stBRDb3lsd29RQHIMx1DqrS7QwRuFC50VzQQP2CiWW93/8UwcWAqstWT XPalk0rwLlsKGKCygq5xkHThorH/IIoy+7GsQJp53w4AzPDbqgN8pGCtn79gFGSTCQlQ Zc61dK9YviMC7hv0umbtxXg8yZUswptBQvH+nHuek+D/6d/ezp/1DDvgVhuu4Dy8C6pG ajlmu71ZN2T9nHKfx0wA0BXEDMRlLHLrWBQGm/4a3jATbu97tDjxX0OngszYJpRYsmzx 206Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=krfirxAz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si19196882pgr.403.2018.10.18.02.57.50; Thu, 18 Oct 2018 02:57:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=krfirxAz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbeJRR6C (ORCPT + 32 others); Thu, 18 Oct 2018 13:58:02 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53145 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbeJRR5e (ORCPT ); Thu, 18 Oct 2018 13:57:34 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095719euoutp011b840002f9645bdc3babcb8f38f7bdc4~eq3R1SW150108101081euoutp01U; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095719euoutp011b840002f9645bdc3babcb8f38f7bdc4~eq3R1SW150108101081euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856639; bh=7RzFxofNGfgWBQtiHbTFe9TEVqpCi1g2karnmb1X59I=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=krfirxAzO7Qq5s/ssVN+WwSU3qIg0R/JW2QqcVPuuVdbjb6OZgXY+JXsg/etwYgza spT2ReJCudf3/zRXmgQNZCwri4td8ZebkrQIx0Au62PDD5jkGVu8LLuph2IggccQlW VjMWdDmrMWh0V8+B8+BeD3DoXHRuPBgadnre/9GU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095718eucas1p195d0397d91b2620e70fb24d070d38f04~eq3RR8IuI2351723517eucas1p1L; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A3.B1.04806.EF858CB5; Thu, 18 Oct 2018 10:57:18 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9~eq3Qh5W422119521195eucas1p2U; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-b4-5bc858fe9a3d Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id EC.C2.04128.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:17 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae , Mark Rutland Subject: [PATCH v4 4/6] clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64 Date: Thu, 18 Oct 2018 11:57:06 +0200 Message-id: <20181018095708.1527-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWy7djPc7r/Ik5EG9w6IGaxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEro3lVcMFC7opt1/cxNjCu5Oxi5OCQEDCR2LU/v4uRi0NIYAWjxJ9nB1ggnM+M ErMvzGLuYuQEK1o/8w1UYhmjxNulC6GcBiaJna2PWUCq2AQMJbredrGB2CIC2RKdjx8wghQx C5xklvh3cxM7yD5hgRiJN/tjQGpYBFQlVr2fxAwS5hWwkZjf5gOxTF5i9YYDYIs5BWwlzsx/ B7ZLQuAEm8SJZRdZIIpcJOa8/gp1nbDEq+Nb2CFsGYnLk7uhGpoZJdpnzGKHcHoYJbbO2cEG UWUtcfj4RVYQm1mAT2LStunMkMDglehoE4Io8ZCYeHkJI8SXExglzt1YwTSBUXIBI8MqRvHU 0uLc9NRi47zUcr3ixNzi0rx0veT83E2MwKg+/e/41x2M+/4kHWIU4GBU4uF9kHo8Wog1say4 MvcQowQHs5IIb7XZiWgh3pTEyqrUovz4otKc1OJDjNIcLErivMvmbYwWEkhPLEnNTk0tSC2C yTJxcEo1MCYE8N0If+Fw4W1yoO0Ox2vcsi8XNovtqw5nyqzxdZ+ekll6W+yosMHCv/KvzL5F Nizmv3fD5YT1y86FwSGqD2eLrHD0+GIZf/xqxqlVCp8cLgXc/dI++dpWYZGf2o1nDl1+VrPh 17vef+Y7T/vrTLR7c0DrwrUJGoXv278eP+414YeGZ+q/i6eUWIozEg21mIuKEwELsIgY5gIA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrALMWRmVeSWpSXmKPExsVy+t/xq7p/I05EGxz/YGKxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEro3lVcMFC7opt1/cxNjCu5Oxi5OSQEDCRWD/zDUsXIxeHkMASRokpb3czQjhN TBJX3qxlB6liEzCU6HrbxQZiiwhkS8zf280OUsQscJJZ4tLjd0DtHBzCAjESb/bHgNSwCKhK rHo/iRkkzCtgIzG/zQdimbzE6g0HmEFsTgFbiTPzQTo5gXbZSHT/Wc8+gZFnASPDKkaR1NLi 3PTcYiO94sTc4tK8dL3k/NxNjMBw3Hbs55YdjF3vgg8xCnAwKvHwPkg9Hi3EmlhWXJl7iFGC g1lJhLfa7ES0EG9KYmVValF+fFFpTmrxIUZpDhYlcd7zBpVRQgLpiSWp2ampBalFMFkmDk6p Bkb3bVcfTa+Zu+WtUOMefcEJOj9uTDpg6nNZXTs+4jj7wcP/9qS926Dk7P5E9Puchh72m5es +H7u8OqUkGj7Wa/Ump90s7riQMirQ1VPGUubHXe5mN4+/O5idjvjl6OZihEVUyWO2517V2l5 rObTAtmyNXW+qTpfa+0C9vXN2eHT/3DFg2sNub5KLMUZiYZazEXFiQC2MYxoQwIAAA== X-CMS-MailID: 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9 References: <20181018095708.1527-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (global system counter). 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 MCT driver only enables its clocks and starts global timer. Everything else will be handled by arch_timer driver. Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.17.1 diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 4c886ff2941a..1f5249fb25fd 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -606,6 +606,16 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) if (ret) return ret; + 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) { + of_node_put(np); + exynos4_mct_frc_start(); + return 0; + } + } + ret = exynos4_timer_interrupts(np, int_type); if (ret) return ret; From patchwork Thu Oct 18 09:57: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: 149115 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1756376lji; Thu, 18 Oct 2018 02:57:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV63nRolhuZMgam6cx13XAO5YM0rnX7aqqXYkrCmQNvfyog8NhyBrEaG++ermcse64CVKHIsd X-Received: by 2002:a63:bd01:: with SMTP id a1-v6mr27979838pgf.58.1539856649667; Thu, 18 Oct 2018 02:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539856649; cv=none; d=google.com; s=arc-20160816; b=i3+HgiDgTZ2a2L2O3aQeOisCgx2WF2trFz+30TbLMuMolYqM5MPGdQLeG7G6Q3xGMK 2zDAx8qpz/1YsJtgCtCZJnPOJt4rKgxcpwPDl8wD8BsIQBSuHxZeg4epPKLNKe8AhX4z x3tSWPkr+SapULducignJZmVyvbYgDry+dOJ0JShIRnFF/BN5nkuJvknGLSyR8DIfddv 12PHGbW+LP7nhImAOzDLr/8HyaHl1UL4dasYaxwe5805TIeq7fizI8aFdu8esyykG3NK AMuHykGkM1ammuvaB3Rhh56VwapxFL3+HLDrc3yRICQUFtLIrEFnFZs5WJeId/lwSbc0 qkFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=Flm64HIKyGpGJJ++WR5bD05/fn6GV6v+Pg40dM+Jxdg=; b=bQSwRYYs1840dBbpjY/WPnH1VSmpVfowxCrK6zCpBJ0mL7WkNxJfvfbb05DpqumZgH LwtaivFM2G6qzlJt6SAzhi1Aa1zbaPKHGjUDZ2LavLX+rUGf0JldjCeE43W2bACs2h9D X0R6Tb48JckHYzx6oyJS6xWIgMBuvE+9bYfvokOAeKulH3FFyAlVCo1r3vvEk63VAglV 5gTwWGn88DMxRW5b5yv4uzboTaDfeQjOv/GfwzDWnLPQ+fjHAZ/nZWZ2wVamUfeUzqK9 58j9FqACsZv8mTjkapf9XMJBwNXkMqlzwUUQLQx9ore7l18w+DPTWvQV0W4QpOB9oveI 5g2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NN7YGIRJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si20399214pgi.139.2018.10.18.02.57.29; Thu, 18 Oct 2018 02:57:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NN7YGIRJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728047AbeJRR5f (ORCPT + 32 others); Thu, 18 Oct 2018 13:57:35 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53153 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbeJRR5f (ORCPT ); Thu, 18 Oct 2018 13:57:35 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095719euoutp01d2838277dbccbd78b006fbc20c19f301~eq3SUf2Um0160201602euoutp01f; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095719euoutp01d2838277dbccbd78b006fbc20c19f301~eq3SUf2Um0160201602euoutp01f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856639; bh=Flm64HIKyGpGJJ++WR5bD05/fn6GV6v+Pg40dM+Jxdg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NN7YGIRJweT4UFtrUkfKqB5tJlwsnweWLCiT3wX8uX25NLZEp+vq4Mwab1+oTfadf UG+y6ozmaSBSNsz2eV2aJb+ftj2w6y/5bEPrilkRFVC0snUVpavFKHCXC/7LzMo3Yu JbIDFn6fNfXjUCJJ5EOPk/mB8+w3OAIXix4LvYvc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p2b2edc39c08bc260229864241c6467a29~eq3R4Et2y0201302013eucas1p2u; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 30.E1.04294.EF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f~eq3RFN3X91872818728eucas1p15; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-02-5bc858fe7559 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 20.E2.04284.EF858CB5; Thu, 18 Oct 2018 10:57:18 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:18 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae , Mark Rutland Subject: [PATCH v4 5/6] arm64: dts: exynos: Move arch-timer node to right place Date: Thu, 18 Oct 2018 11:57:07 +0200 Message-id: <20181018095708.1527-6-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzVRa0hTYRju2zk757haHTbDz1uXQReCLEXiQy0N+nFAyKR+ZAty5Wma7kx2 3MoiXFama5YZMgnTChWdhrqZqZjUGk1LHWIqoqZh0MUbNvsxqVXz6L/neZ/neS+8FCb7iIdQ GVwOq+NUWQpCgre987r3/z3dozzY3y5CLeVNYrRYawZodPmrGFV6wlHpVAmO3O5mEtlmRsRo qLOCQOXubhF67pwk0Z8JH4FqRgdFyG4rw9D3pR48YTPTWNkIGJu1iGAmRroIZmFggGTs1XnM vVYrYDy2bSfIM5K4NDYrw8DqDhxJlaT3DhWA7DrpFW+Z2ggWJSYQQEE6Gr5/bCRNQELJ6DoA 68dr1ogHwA7HJ7DuMltWcEGoBdB7/5lYIEYRHB6ZXHURdCQ0zZsIPw6kM2HRzDTwmzC6F4O+ MRvpF+R0Mnx42yEyAYrC6V3wi1HuL0vpOPhqrp8Qpm2HDc2vMT8OoA/DvqqF1cmQdhLQme8T C6Zj0PrTsxaQwx+uVlLAYbCo8I1ICNwE8E75I1IgZgBfVLSvJWLhW9fgaieM3gxL2yyYfyNI S2FhgUyADJztChOuLAFwqqCYKAHBT8AGKwhi9bxGzfJRHHs5gldpeD2njrig1djA/19/8LmW 20Hn7/MOQFNAsUk6zbqUMrHKwOdqHABSmCJQeu1Qj1ImTVPlXmV12nM6fRbLO0AohSuCpLWV LUoZrVblsJksm83q1lURFRBiBKSzoympWz9O9CfstcejYoPrgXXYoXXVzFMxW8aOLkgwX/Xx WfMOd/xL+9jQHDfReDFWHhlab7mef3dgyWAfTkyc+/XZ6zKdtCY3cM68yWitWsZ11TmJJOtu pyc4ZefZvqiVvBSLZGvl1MZvETdu6bg9T8NjqtypS4WnLq0ocD5dFbkP0/Gqf5X6O4znAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrILMWRmVeSWpSXmKPExsVy+t/xq7r/Ik5EG0x7LW2xccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEr4+TlNsaCFbwVP6emNzC+5+pi5OSQEDCR6Jn+i6WLkYtDSGAJo8T6PctZIZwm Jon2Bb8YQarYBAwlut52sYHYIgLZEvP3drODFDELnGSWuPT4HQtIQljAX2Lj8n9ACQ4OFgFV iScNwiBhXgEbib1vzrJBbJOXWL3hADOIzSlgK3FmPkSrEFBN95/17BMYeRYwMqxiFEktLc5N zy021CtOzC0uzUvXS87P3cQIDMhtx35u3sF4aWPwIUYBDkYlHt4HqcejhVgTy4orcw8xSnAw K4nwVpudiBbiTUmsrEotyo8vKs1JLT7EKM3BoiTOe96gMkpIID2xJDU7NbUgtQgmy8TBKdXA 2P7OQZxhDqPeDYGHk4Nn+yo52Ho1H3R4sFzTrUd8WcoFRh3/6U5+3ooM//eyqwuvzovg6O2e +i1z/vq0ePMPavJeGzyKNObazSiYn/qF858w97w7Oduzd92+u2K9eb/pgpgZli9a98blTytY 8uSJwoHHuU+CZd5ePrdQ6722leMrwWeVM/6+VWIpzkg01GIuKk4EANyZ4zZEAgAA X-CMS-MailID: 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f References: <20181018095708.1527-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1 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 Thu Oct 18 09:57: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: 149114 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1756318lji; Thu, 18 Oct 2018 02:57:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63EsLOXAz24J9rxPWbZEibBA342Vw+NNoHAT+r8upNT6GDyyvJ97+0rF8+3mBP3E0/JOdpe X-Received: by 2002:a62:f20f:: with SMTP id m15-v6mr29521667pfh.244.1539856645430; Thu, 18 Oct 2018 02:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539856645; cv=none; d=google.com; s=arc-20160816; b=UohtZdjzTzs6YU7POqunxspy320AV743Sb64Clj26XnSpfH3oNVmbWjc4dwvVrVzCi ZjX8dATHWWz3ZaOC6p+d58ubbiB+I6gmrA33NDz5U4f26F+cabnyZCAydL8FUBY3xs6v SwL30025vw/PJfn5ZKPTmcSSd3RU6pq1BCuCEM6glkWyMY57NSx0U9DvbHve9V67G5vN fkgW4e/c41QZXp8e68xUmz+A0P9zu/o6kj2O+mXe8uN9/wYvq0tTyxH/67nVEcY1SlZZ bo/Nsa88/3Uhyl4SGLV4haCpzTzHsgy5eOovM/pLwWOat0dbpZxuPavTa9OFp26x52cr 33qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=JbawqqnuJmBPjDcr8q+jVFNwx8wHm3+63GETfeiWmM0=; b=yYR0PX/oCbi3Yy8vmRGl5et3h6mCuh1hBivqnSwZ9dp3kwHLD33LboO3AHK+wbcbgM +mBc8M2BV1BnrUDPTkPqrU9R1BXm8qUrxAdduwUZ7yXZ1dR/GtpcnMwetNxCAVRmYF0c aIWA7a5YqhgRm7lTF/tSPZuI78dov9cvmEwr/UGjIg8RsguLA3+PcLmNZR1sA5qtE3JK PJnkXtlgrRwHU2Q4HjmC1QkLmagqMmLpmnL9lw60CrguRYPTTMsRtWTLcC+k7q6CbULL egeKC4k77oXL2T9d0qg8FmafXJQ6j2iivbkG3XLK4WtRk9kuLG0eUJ26UmXpe6ildk4c eF/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q9uYZdYF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6-v6si22668432pgc.133.2018.10.18.02.57.24; Thu, 18 Oct 2018 02:57:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q9uYZdYF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728067AbeJRR5g (ORCPT + 32 others); Thu, 18 Oct 2018 13:57:36 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58967 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727997AbeJRR5f (ORCPT ); Thu, 18 Oct 2018 13:57:35 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095720euoutp022f9f0a605126b1e654091eaf692e6b50~eq3Sz2mcQ3210532105euoutp02z; Thu, 18 Oct 2018 09:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181018095720euoutp022f9f0a605126b1e654091eaf692e6b50~eq3Sz2mcQ3210532105euoutp02z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856640; bh=JbawqqnuJmBPjDcr8q+jVFNwx8wHm3+63GETfeiWmM0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Q9uYZdYFUvMcis5O22jtqppTl7hl/4CPrsdlGYPX0URfloFk26eZCwnEJw5lmb+78 8nLVFA3PtHRvCUkYYj4ns3Yy5LKQw4Z30eUoSGUYQnmozeBOH8L7d8MjPVA6N2m8k4 mQkST35PGi229BZYqUpFFtdGTd3oUNxAF9D1wT44= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p14a5ba239fba9a472368332262f9acb53~eq3SYkGck1223012230eucas1p1s; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BF.63.04441.FF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p27732208abef3397d28640c4e519d5bca~eq3RuB4RF2701327013eucas1p2o; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-75-5bc858ffa2b4 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FE.C2.04128.FF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:19 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae , Mark Rutland Subject: [PATCH v4 6/6] arm64: platform: Add enable Exynos Multi-Core Timer driver Date: Thu, 18 Oct 2018 11:57:08 +0200 Message-id: <20181018095708.1527-7-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWy7djPc7r/I05EG/x+rmyxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81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rEBHIlpi/txusiFngJLPEpcfvWLoYOTiEBUIkbvypATFZBFQl pp/TBinnFbCRaPm8BWqZvMTqDQeYQWxOAVuJM/NBOjmBdtlIdP9Zzz6BkWcBI8MqRpHU0uLc 9NxiI73ixNzi0rx0veT83E2MwIDcduznlh2MXe+CDzEKcDAq8fA+SD0eLcSaWFZcmXuIUYKD WUmEt9rsRLQQb0piZVVqUX58UWlOavEhRmkOFiVx3vMGlVFCAumJJanZqakFqUUwWSYOTqkG RnPuqkuXVWfXr+m2enPt4Ou3U4/fTvzWLJ7qvUqgukS5olRw2u9qk+pl7yy1i2Nm7I6sFHhz TvArZ8UGyVutJ288CYzr3bDmxnVftT6P6cYi3NG6O5LPr+heWqZ20C565lq13F31Sye4ZdWU s33XkVr8sGiqYZjRmd9vympOdDxSm6KulPHMU4mlOCPRUIu5qDgRAN3coEBEAgAA X-CMS-MailID: 20181018095719eucas1p27732208abef3397d28640c4e519d5bca X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095719eucas1p27732208abef3397d28640c4e519d5bca References: <20181018095708.1527-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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