Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2463433imm; Mon, 24 Sep 2018 04:58:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mhC6emyRXxL4kSm/NO9GlVbSredKK9lgc3v/WdnLSN/vFSIh9f4ptImCAFHUsQkJxvTvQ X-Received: by 2002:a65:498b:: with SMTP id r11-v6mr9451370pgs.153.1537790299619; Mon, 24 Sep 2018 04:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537790299; cv=none; d=google.com; s=arc-20160816; b=TfJ51IyABEnmlHaO4yGoLnQu4Vpnx4zS4czI1k9+MUvru93lreeyvNPCKbz6JlPyuG EF5ipzRRo5t5y7eNEhC3E3+gGO/UTF8h5G4V523RzfU3A41t+0Z9UWZpeLLrx7ZQqbeO PEe/lREZlXKmGbqTXEy1xi56yjTcBn84HiJntGbZbPM52YQKTyIpKfEvY10t3nKmhEY/ CK9dahRcAmZVqO9yS+o4kp67C0irkc83TPY2/dY5bFKG/pdpaP5O/T7cIk9c50Fe+1M8 OP7JOI5Mva1CULVAwNFrJnz/8lWAmlbPebaVEpl0iuaKwFwagIIIFgYCxId0HwlkB8VA PBpw== 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=KZn8mRuRcemfMPizg17WWpSWRwllYokNP+xjXU3DXKE=; b=AO3Mm62usf8Ic9wNUizScoTP96Cq2J4fK4PE9NYnWe/yogUpeg5ZCytWyk/lw+1cOH CuAHOamgR2Q65+ggOXob6+0ucWAGOhrQY68G1lpYfVroZzOBzakvwTrVn9/n243fbxHm 0R0V88cO8iseX6f4neRp7+zxcN1jfCRhyrZ2bmVC7wIhgAu3hUXh6Dzoi7gm46xFrNw1 kC/IgmCYvbdzrY1dJoJtzzu1APkkgKI0E0AbzpycVBxWHbX8oJSvkVawavupbYyJhq86 f3pcPcT+d2wiis52ChhR19Oy4arPUzayN8qFcq3ZH67/vkcxjUZ414kTQgY9llJd2TWV rwUQ== 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 b124-v6si11343391pgc.45.2018.09.24.04.58.04; Mon, 24 Sep 2018 04:58:19 -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 S1729944AbeIXR5t (ORCPT + 99 others); Mon, 24 Sep 2018 13:57:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51960 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729104AbeIXR5s (ORCPT ); Mon, 24 Sep 2018 13:57:48 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9FEBC1072; Mon, 24 Sep 2018 11:56:03 +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.4 09/70] MIPS: ath79: fix system restart Date: Mon, 24 Sep 2018 13:52:08 +0200 Message-Id: <20180924113059.416057452@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113058.420454070@linuxfoundation.org> References: <20180924113058.420454070@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.4-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 @@ -44,6 +44,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 @@ -133,6 +133,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)