Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933555Ab3DDI1y (ORCPT ); Thu, 4 Apr 2013 04:27:54 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:40726 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933141Ab3DDI1v (ORCPT ); Thu, 4 Apr 2013 04:27:51 -0400 X-AuditID: cbfee68e-b7f946d000001e37-4c-515d3985b6c4 From: Jonghwan Choi To: "'Jonghwan Choi'" , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "'Kukjin'" , "'Thomas Abraham'" References: In-reply-to: Subject: [PATCH 3.8-stable] ARM: EXYNOS: Fix crash on soft reset on EXYNOS5440 Date: Thu, 04 Apr 2013 17:27:48 +0900 Message-id: <000101ce310e$4a8c3990$dfa4acb0$%choi@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4vhL6OHdYi6A9aR4m9yzeDEXJPogAflJswAEJzDJAAAEqHoA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsVy+t8zQ91Wy9hAg3l9ghZLmrktehdcZbO4 vGsOm8WCjY8YLTqWMTqwevRtWcXo8XmTXABTFJdNSmpOZllqkb5dAlfGpFuXmQrOclesnjKJ qYHxIGcXIyeHhICJxMquV+wQtpjEhXvr2boYuTiEBJYxSrR8a2CHKXpzrY0ZIjGdUWJq+0VG COcvo8ScnxtZQarYBHQljq3fAmaLCHhLnJryixnEZhbIkLjScBAozgHUwC2xujkIJMwpwCOx 7k8nWImwgJ/Euh8zwZaxCKhKdC38ygJi8wrYSew4/4wNwhaU+DH5HgvESC2J9TuPM0HY8hKb 17xlBhkvIaAu8eivLsQFThLrz7RBlYtI7HvxDuxkCYFD7BKzZqxmgtglIPFt8iEWiF5ZiU0H mCH+lZQ4uOIGywRGiVlINs9Csn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bS4bVhXltBWlrOk8EVvv LPHvx68DO+T+PePtVjfvOvPl6MGMNG8LnerJlb9afddYCH5aX6xWG2DvLBTScWy2VaBxsRh3 fuDZau1Asxb2i3uenmUy/npgwVs1Bfv7+xqWKW6eNVHo/MO33VXvr539tfYb+3fXDJlDvZfY u394/Q40YlNiKc5INNRiLipOBAAv7gwHNgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1682 Lines: 53 This patch looks like it should be in the 3.8-stable tree, should we apply it? ------------------ From: "Thomas Abraham " The soft-reset control register is located in the XMU controller space. Map this controller space before writing to the soft-reset controller register. Signed-off-by: Thomas Abraham Signed-off-by: Girish K S Signed-off-by: Kukjin Signed-off-by: Jonghwan Choi --- arch/arm/mach-exynos/common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 1a89824..3b6de7a 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -299,6 +299,7 @@ void exynos4_restart(char mode, const char *cmd) void exynos5_restart(char mode, const char *cmd) { + struct device_node *np; u32 val; void __iomem *addr; @@ -306,8 +307,9 @@ void exynos5_restart(char mode, const char *cmd) val = 0x1; addr = EXYNOS_SWRESET; } else if (of_machine_is_compatible("samsung,exynos5440")) { - val = (0x10 << 20) | (0x1 << 16); - addr = EXYNOS5440_SWRESET; + np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); + addr = of_iomap(np, 0) + 0xcc; + val = (0xfff << 20) | (0x1 << 16); } else { pr_err("%s: cannot support non-DT\n", __func__); return; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/