Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934528Ab3DGXC7 (ORCPT ); Sun, 7 Apr 2013 19:02:59 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:41831 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758832Ab3DGXC5 (ORCPT ); Sun, 7 Apr 2013 19:02:57 -0400 X-AuditID: cbfee68d-b7f786d000005188-a2-5161fb1f5f6e From: Jonghwan Choi To: "'Jonghwan Choi'" , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "'Kukjin'" , "'Thomas Abraham'" References: In-reply-to: Subject: [RESEND PATCH 3.8-stable] ARM: EXYNOS: Fix crash on soft reset on EXYNOS5440 Date: Mon, 08 Apr 2013 08:02:55 +0900 Message-id: <004801ce33e4$0a2ffc00$1e8ff400$%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: Ac4vhL6OHdYi6A9aR4m9yzeDEXJPogAflJswAEJzDJAAAEqHoAC1cPGA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zA13534mBBgu2WVksaea26F1wlc3i 8q45bBYLNj5itOhYxujA6tG3ZRWjx+dNcgFMUVw2Kak5mWWpRfp2CVwZ1yeuZSlo56l4cvoo SwPjd84uRk4OCQETiQ+zrjJD2GISF+6tZwOxhQSWMUp0PvaCqdm5cCJLFyMXUHwRo8ST7VMZ IYr+Mkp8vi0FYrMJ6EocW7+FFcQWEfCWODXlF9hQZoEMiSsNB4HiHED13BKrm4NAwpwCPBLr /nSClQgLhEus2DKZHcRmEVCV2Lj3KtgYXgE7iROn+qFsQYkfk++xQIzUkli/8zgThC0vsXnN W2aQ8RIC6hKP/upCXOAmcenVVzaIEhGJfS/eMYKcLyFwiF2ieVUz1C4BiW+TD7FA9MpKbDoA DQZJiYMrbr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Ug2MLcE+E+7KJu/eF1KuLr9lpcQu lRQmj2ffRROPS5j/EF1cK/2yjTnb8OTvM1FZ9ne8fA7vchUR2stT5diV1/rsKJPihcwTj4S+ ddqpJn38vV3V5KoGs+7PmVGeFV7fWAJfuMRf8pq32WKOd/4LqW3WXYfbz/Mlun+8NnlzI+vq mVX8Wkc1i7yUWIozEg21mIuKEwEN3qm8NQMAAA== 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: 1739 Lines: 54 This patch looks like it should be in the 3.8-stable tree, should we apply it? ------------------ From: "Thomas Abraham " commit 60db7e5f9c9a25a7a9b01007e6e3f5a93bc16a3a upstream 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/