From patchwork Thu Oct 29 07:46:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Fedin X-Patchwork-Id: 7516981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 14E5DBEEA4 for ; Thu, 29 Oct 2015 07:48:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28B892087E for ; Thu, 29 Oct 2015 07:48:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 575E52081A for ; Thu, 29 Oct 2015 07:48:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zrhuw-00022c-Ph; Thu, 29 Oct 2015 07:46:38 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zrhut-0001wB-6j for linux-arm-kernel@lists.infradead.org; Thu, 29 Oct 2015 07:46:36 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NWZ00E6I1L0J730@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 29 Oct 2015 07:46:12 +0000 (GMT) X-AuditID: cbfec7f4-f79c56d0000012ee-f7-5631cec4478a Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 9D.01.04846.4CEC1365; Thu, 29 Oct 2015 07:46:12 +0000 (GMT) Received: from fedinw7x64 ([106.109.131.169]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NWZ00MV61KZVC80@eusync2.samsung.com>; Thu, 29 Oct 2015 07:46:12 +0000 (GMT) From: Pavel Fedin To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 RESEND] ARM: exynos: Bring back reboot on Exynos5410 Date: Thu, 29 Oct 2015 10:46:11 +0300 Message-id: <008101d1121d$e1b9b250$a52d16f0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: AdESHdQYU/XBmsDqTK2k/gngzW9mTQ== Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsVy+t/xK7pHzhmGGVy5wGvx+oWhRf/j18wW mx5fY7WYcX4fk8WCjY8YHVg9Nq3qZPPYvKTeo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDLm NG9gLvjDV7FlWR9zA+Meni5GDg4JAROJ/9tLuxg5gUwxiQv31rN1MXJxCAksZZS4PPEolPOd UWLZ0lZ2kCohATOJ5wvPsILYbALqEqe/fmABsUUEvCUmn/nLDjKUWSBPYucuT5CwsIC7xKLe R4wgNouAqsS8DSvZQGxeAUuJxStPQNmCEj8m3wMbwyygJbF+53EmCFteYvOat8wQxylI7Dj7 mhFilZ7E36t9bBA1IhLT/t1jnsAoOAvJqFlIRs1CMmoWkpYFjCyrGEVTS5MLipPScw31ihNz i0vz0vWS83M3MUIC/ssOxsXHrA4xCnAwKvHwLjAyDBNiTSwrrsw9xCjBwawkwivNAhTiTUms rEotyo8vKs1JLT7EKM3BoiTOO3fX+xAhgfTEktTs1NSC1CKYLBMHp1QDY2tzZRjDrA/H8n/t NtKRvLF5EVPWhDVvd95Yrrz4JktsenFAbfzbqxlty/Z93bbYxDNDcYey5Qt9J8sq06z+NCmn Gw9fP3rs/fFUbNrziTlHHisGzK2P5J778GdpeG7Ynl1H06ZZ3r1bnLCK5VXJb86rx08Yfaj+ 6xKtfLDI9kLWb9a5K0vPWCuxFGckGmoxFxUnAgBnxeQ1dAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151029_004635_451581_937F341C X-CRM114-Status: GOOD ( 16.46 ) X-Spam-Score: -6.9 (------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 'Krzysztof Kozlowski' , 'Kukjin Kim' , stable@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Since 8cfc7fdd33080e30b86d21b1a8c9ad0686427ddc ("ARM: EXYNOS: move restart code into pmu driver") PMU support is required in order for the reboot to work. Unfortunately, there is currently no PMU support for 5410. This patch adds exynos5410-pmu to the list of recognized devices. It is okay for the code to have empty struct exynos_pmu_data, in this case only minimal support is enabled. This is enough for SWRESET to work. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski Cc: Fixes: 8cfc7fdd3308 ("ARM: EXYNOS: move restart code into pmu driver") --- v1 => v2: - Added 'const' - Resend: added missing Cc: tag --- arch/arm/mach-exynos/pmu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index de68938..ecbe980 100644 --- a/arch/arm/mach-exynos/pmu.c +++ b/arch/arm/mach-exynos/pmu.c @@ -908,6 +908,10 @@ static const struct exynos_pmu_data exynos5250_pmu_data = { .powerdown_conf = exynos5_powerdown_conf, }; +static const struct exynos_pmu_data exynos5410_pmu_data = { + /* Only SWRESET is currently supported on 5410 */ +}; + static struct exynos_pmu_data exynos5420_pmu_data = { .pmu_config = exynos5420_pmu_config, .pmu_init = exynos5420_pmu_init, @@ -934,6 +938,9 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = { .compatible = "samsung,exynos5250-pmu", .data = &exynos5250_pmu_data, }, { + .compatible = "samsung,exynos5410-pmu", + .data = &exynos5410_pmu_data, + }, { .compatible = "samsung,exynos5420-pmu", .data = &exynos5420_pmu_data, },