From patchwork Mon Jan 5 09:14:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 5566021 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5DCF39F2ED for ; Mon, 5 Jan 2015 09:22:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D08120172 for ; Mon, 5 Jan 2015 09:22:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C6C2200DE for ; Mon, 5 Jan 2015 09:22:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753444AbbAEJWO (ORCPT ); Mon, 5 Jan 2015 04:22:14 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:18368 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753807AbbAEJWL (ORCPT ); Mon, 5 Jan 2015 04:22:11 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP009QL60XRH00@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 05 Jan 2015 18:22:09 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id B9.42.19034.1C75AA45; Mon, 05 Jan 2015 18:22:09 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-7a-54aa57c1d324 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0D.D7.09430.1C75AA45; Mon, 05 Jan 2015 18:22:09 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHP00EQD60BCB30@mmp1.samsung.com>; Mon, 05 Jan 2015 18:22:08 +0900 (KST) From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: kgene@kernel.org, thomas.ab@samsung.com, Pankaj Dubey Subject: [PATCH] ARM: EXYNOS: do not try to map PMU for exynos5440 Date: Mon, 05 Jan 2015 14:44:28 +0530 Message-id: <1420449268-24707-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.2.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrALMWRmVeSWpSXmKPExsWyRsSkSvdg+KoQg8NnhSz6H79mttj0+Bqr xYzz+5gsFm39wm7RsYzRgdVj06pONo/NS+o9+rasYvT4vEkugCWKyyYlNSezLLVI3y6BK2N6 QydjwT32ip7dF9gaGHexdTFycEgImEgsXsrdxcgJZIpJXLi3HijMxSEksJRR4sm044wQCROJ H1PfM0IkFjFKdM3cBFU1gUli4/teFpAqNgFdiSfv5zKDTBUR8JZYfk0RJMwsECYx6cVBNhBb WMBJ4nTLT3aQEhYBVYmmz7EgYV4BD4l9u4+wQuySk9hy6xE7yHgJgcdsEpuP3wQbzyIgIPFt 8iEWiKNlJTYdYIaol5Q4uOIGywRGwQWMDKsYRVMLkguKk9KLTPWKE3OLS/PS9ZLzczcxAgPy 9L9nE3cw3j9gfYhRgINRiYfX48TKECHWxLLiytxDjKZAGyYyS4km5wPDPq8k3tDYzMjC1MTU 2Mjc0kxJnFdH+mewkEB6YklqdmpqQWpRfFFpTmrxIUYmDk6pBkb7kruz5DTcUviZf+jePH52 Vpl/2dqJG87bzZV80mu9dVPRvIddxmGZHcyhZ/99y+AJPBj0TfmG/PHHy0o3FTIfPDDdjy+w tFPiBs+3+KvPdmTxJ+5pUbkcmLOxfVXBXEtel/vBwbERNT2H/EpW6ic8XnUlKTNq5t7WtLfc e/8K3kkXjhH5wKzEUpyRaKjFXFScCAB33KbmQwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsVy+t9jAd2D4atCDLb/4LLof/ya2WLT42us FjPO72OyWLT1C7tFxzJGB1aPTas62Tw2L6n36NuyitHj8ya5AJaoBkabjNTElNQihdS85PyU zLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKC1SgpliTmlQKGAxOJiJX07TBNC Q9x0LWAaI3R9Q4LgeowM0EDCGsaM6Q2djAX32Ct6dl9ga2DcxdbFyMkhIWAi8WPqe0YIW0zi wr31QHEuDiGBRYwSXTM3QTkTmCQ2vu9lAaliE9CVePJ+LnMXIweHiIC3xPJriiBhZoEwiUkv DoINFRZwkjjd8pMdpIRFQFWi6XMsSJhXwENi3+4jrBC75CS23HrEPoGRewEjwypG0dSC5ILi pPRcI73ixNzi0rx0veT83E2M4IB/Jr2DcVWDxSFGAQ5GJR5ejxMrQ4RYE8uKK3MPMUpwMCuJ 8K67BRTiTUmsrEotyo8vKs1JLT7EaAq0fCKzlGhyPjAa80riDY1NzE2NTS1NLEzMLJXEeZXs 20KEBNITS1KzU1MLUotg+pg4OKUaGMNqA7S4LtfUiSuWzHwnLLSCx/HuNwXz9Qq/l3+ZeHaa z8+prNKWPCm/3p7f9eqGmX5j2MS0JYFecztYL5RnJgX97uUWcHV6fTmkWbx9k9SzwL4SzZct SX8fPMk2/Tin8zxfZNREL8eV04/VNAoZbDux6szq3+sMwl5WfP55vnt7qYhAhLrZRSWW4oxE Qy3mouJEAH6+4xGOAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit id: 2e94ac42898f84d76e3c21dd91bc is not taking care of mapping of exynos5440 PMU register which will result in kernel panic on exynos5440. As exynos5440 DTS does not have PMU node, and also we are skipping exynos_pm_init in case of exynos5440, let's avoid mapping of exynos5440 PMU. Reported-by: Ming Lei Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index c13d083..1891b8c 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -208,7 +208,8 @@ static void __init exynos_init_irq(void) * DT is not unflatten so we can't use DT APIs before * init_irq */ - exynos_map_pmu(); + if (!of_machine_is_compatible("samsung,exynos5440")) + exynos_map_pmu(); } static void __init exynos_dt_machine_init(void)