Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2465679imm; Mon, 24 Sep 2018 05:00:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV60yVx8FIHyN9r4B9bd3Pa+Rxe9wc9rWWqzAZ5eksOwo3EOXAyuAmnJOb82VI+0xvR6KcdAU X-Received: by 2002:a17:902:654b:: with SMTP id d11-v6mr10512967pln.8.1537790434407; Mon, 24 Sep 2018 05:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537790434; cv=none; d=google.com; s=arc-20160816; b=Ws1dr1nqptiaV9gKZScDYx3oWzviKvqcDxTe70Npq8cHNjrtphQ6iWj/5iL5AdKbPB bqZQqxYyGs7zHRkYXJa8h8abBTpce22RZjvhWCpSqFQCfuaODEw9NwoT6IOvMKI7JGl1 3weghEV1tD76x4yHVHVSbHy74dv4YAeRnBqIFjJpMGhlWlteDOV0tnHqym4NvMbVICdG eYGPVRMFHBWtuJT/8WOw2R8i3+mdFUWfZ3kME30p00LkfQdi5R097w/mJCbgZc22FIDN XWhJ5b+6WXn3g1yLvP02RjU9A+rDNaMIvC9Dvm+zOJD3WF5qJnNH5n+6zLkkxOw+5RHe 8RDQ== 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=ZACekBns7GBFqR/eBXbaUe3WP1g6Eeyr7ra79u8of8U=; b=s/jwiLVRcvfoXAmm8TVl8rr6umIF8+1qanpLI09lomPZBT1W/Q4mh2lrJte8vkrILF B1JmGCcbDNH+u9sR5NcGLnkMtPLxBaxBSbIGh/ajnj3IZ9Xt6ySDi332og516TQguMGO +AIxzFE5CzzGOXgnrRHU4CDBRzZ6p022lsmkew6bERL/Yhsxo0Ujm8AGcGWB0GjHIJf6 3ZmM/Gx2xkhmO/HYowyPKPGexgmz0LCT0x2v8Vs9k1KITneWpWAnU+mjzDn7zIOVqPiw KBuCAwnbAarhedCmlX1OWgM9sd89/bFq3tzmfrOX1wqDC+CpOvbcWyvb7clnvd1wHSTA oJYQ== 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 x3-v6si14619086pgj.425.2018.09.24.05.00.18; Mon, 24 Sep 2018 05:00:34 -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 S1730501AbeIXSBA (ORCPT + 99 others); Mon, 24 Sep 2018 14:01:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52472 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730083AbeIXSBA (ORCPT ); Mon, 24 Sep 2018 14:01:00 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2F9C4D64; Mon, 24 Sep 2018 11:59:13 +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.9 015/111] MIPS: ath79: fix system restart Date: Mon, 24 Sep 2018 13:51:42 +0200 Message-Id: <20180924113105.772200273@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.337261320@linuxfoundation.org> References: <20180924113103.337261320@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.9-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)