Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2482612imm; Mon, 24 Sep 2018 05:15:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZdY594ddTos3X66PcZzvuYgbnNd0IEfN9UrciSkAmyaC0nN1zXTCkP0uP24iYNQbhBjFos X-Received: by 2002:a62:6b85:: with SMTP id g127-v6mr1454389pfc.204.1537791336591; Mon, 24 Sep 2018 05:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537791336; cv=none; d=google.com; s=arc-20160816; b=LJ+MLZ2/QX9vFsiOVSzY9jT8GUKJSlkidgzgBw/N3H5QGnAbIGWSGQIGNfgmi3CvcP IozclqWyc1QrmYAkTIgY3mQh+Q8wwm3DBq2h1Mqn0UQtsEUao41MzWN4IapukQmTwjM0 6FGy4JVazkiaa/bmkekmQsN3WclgDMvTOcukIsQx7c9+F6b9JWqGW85atxn3hJpLGmGR qMy7qfe0Nh8tMB9Hj+oK1RLaM27Euladzloa1FJz6J/srN6SEQiuaB4OfoxFE5542ZFL AoiuYVUJAjm/OTJ4KeyMnGqzanw3WWLiouavRjB7L4RSWrMTMpwjZ0SQHaMje7pIKVSA y+rQ== 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=v2wcdhpCYXEOtDoED/+X4bCQrAshhOlCEl9GljgaJvc=; b=Fd0/7tpRAHN2vANNDP+r2wGhgwo36SOv+j4Ya8UMm8hFIMGVrGHcnQulOK+IBs9X9R qxb3HoFDCL3SnSrH9sif/k1nVvn3A1gYMU6huFf5aMNQ52eWMTK/AJSToO7p7qreEwUH yq9uhyjC7pqvcWOkjbnrrBQc82VblUTi4To9tzlgpLKwwsZxSAIfX0pnT3uFkDTOJNhQ CNipPklewbtXSxp5XfYkEaW/+bwqurhXT2PtoEFX1xtoDkErzSCGX6oZfqloUtWQmaUb sk/9IPlhUU39KgDRFM6daUl41S75lWDJz9G8hoyyyaUIqq2suT2oJM7+1U02pqnpQtsw czyw== 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 x23-v6si2315506plr.57.2018.09.24.05.15.21; Mon, 24 Sep 2018 05:15:36 -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 S1731585AbeIXSPG (ORCPT + 99 others); Mon, 24 Sep 2018 14:15:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55156 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730280AbeIXSPF (ORCPT ); Mon, 24 Sep 2018 14:15:05 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0C5941098; Mon, 24 Sep 2018 12:13:14 +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.14 027/173] MIPS: ath79: fix system restart Date: Mon, 24 Sep 2018 13:51:01 +0200 Message-Id: <20180924113117.821897550@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113114.334025954@linuxfoundation.org> References: <20180924113114.334025954@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.14-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)