Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2499887imm; Mon, 24 Sep 2018 05:31:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV63h0g6Gex4hL7vGwlgDqYztKtWf2mjRFJr49SICBJfWfFtzSBhMqHndemgxU13mltX+4lGh X-Received: by 2002:a17:902:101:: with SMTP id 1-v6mr7863980plb.15.1537792298920; Mon, 24 Sep 2018 05:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792298; cv=none; d=google.com; s=arc-20160816; b=sIF5tYhovkh3u4RkQJMcQu8Xa5QdoMMKniBhzQTE8u4x993TPJRK1NwltpG7sG8xpn Jvx4j2Yk6y5RaQ2/zql0FE8khjpljfPo/Xuo32RvK9ywBx/0fKudVaIFYEovfFq5q1AU h1VVDQcPeBpiUQSz9Xqs4zdvEWHbsnYErRE4YEKu/JVBCtIa2kVEr45uhz9fmlRSO9FI V4q0B82UENMQzCgBaGGYATIoBCqVddBuhbKyu8IAO68GwR79KWfYRLdkUwbCBWWnwqdL 7r+uBov/sfJ9DedsnATPf0L/S5CpcqQl0SWtCXuvIM11+BqWqdDl+6mBkJGTuPRNAWdf A2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=mU3MIgKV75RFkwbJhya+z663FfrcaC9U1WJ4K5qmyzo=; b=z7wIojl4GrKRIxp0AXeuOekkqcZrL93Xj6roLrREjweh9ThUy4HQZIqmy8IiI4OhXv /c67Pu5A+h23/GN/U1tWXnfHyugrb5yDTOwgWYDhcQCQvot3X84a492HQbTI+BvObFIg Dp7SXpeVh4xxjRanmTj/g7fNu2FcQkrMPTZfpFAGdHminx4OPo16KndePTlsdBQvvd7Z icZhGe/C6gm5F/G4ngdy2Q7wxLCWn7timZhRtqMhzTIw2yeFGIBXC8Y+Kx24ehhnIo/X uaLLBg3lIEuUCnzIbTt5ppCX0+Q9CmNAySaOev99y2RazMQMN9G6KlYmy1Z7B+Vr80w2 UcaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j35-v6si8665979pgj.614.2018.09.24.05.31.23; Mon, 24 Sep 2018 05:31:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387620AbeIXSaq (ORCPT + 99 others); Mon, 24 Sep 2018 14:30:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57512 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732275AbeIXSap (ORCPT ); Mon, 24 Sep 2018 14:30:45 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4BF761018; Mon, 24 Sep 2018 12:28:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , John Crispin , Paul Burton , James Hogan , Ralf Baechle , linux-mips@linux-mips.org, Sasha Levin Subject: [PATCH 4.18 038/235] MIPS: ath79: fix system restart Date: Mon, 24 Sep 2018 13:50:24 +0200 Message-Id: <20180924113108.866333740@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Fietkau [ Upstream commit f8a7bfe1cb2c1ebfa07775c9c8ac0ad3ba8e5ff5 ] This patch disables irq on reboot to fix hang issues that were observed due to pending interrupts. Signed-off-by: Felix Fietkau Signed-off-by: John Crispin Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/19913/ Cc: James Hogan Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/ath79/setup.c | 1 + arch/mips/include/asm/mach-ath79/ath79.h | 1 + 2 files changed, 2 insertions(+) --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c @@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP static void ath79_restart(char *command) { + local_irq_disable(); ath79_device_reset_set(AR71XX_RESET_FULL_CHIP); for (;;) if (cpu_wait) --- a/arch/mips/include/asm/mach-ath79/ath79.h +++ b/arch/mips/include/asm/mach-ath79/ath79.h @@ -134,6 +134,7 @@ static inline u32 ath79_pll_rr(unsigned static inline void ath79_reset_wr(unsigned reg, u32 val) { __raw_writel(val, ath79_reset_base + reg); + (void) __raw_readl(ath79_reset_base + reg); /* flush */ } static inline u32 ath79_reset_rr(unsigned reg)