Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp41454ybi; Fri, 26 Jul 2019 05:52:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoMcBwFgGUw0OrhZEnGzh3wfNn5kv2l1ALopoS6nBbpuVYjciLsExdyOx3s9O7r+RQetnR X-Received: by 2002:aa7:8ad0:: with SMTP id b16mr20326899pfd.45.1564145525166; Fri, 26 Jul 2019 05:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564145525; cv=none; d=google.com; s=arc-20160816; b=OHG14OBygoYjxsakZKdog8mYZmROzFzzisj132JqNqEJ5DhhPsOpXnPpfv2ROyOgr9 V/9Ls/pjfGAC4Nq9Wk+E8VOJt9A1+zyC/Mk5ko1XnKuzPdX7el97zPmgPtmycZR0mruB vWnofpKN6KEKzey6hioLcK3DfX1nN4Oe+DrY1icFS+ro5WAHN9GVeJvfRvH+KGF9fRgn ZxIQdBhgn3PYhssiCr4CX6QooD1lzwRy+pOjg464IDkbpnjfYPtHMIXauqsAtHsCFPoX +43VX6DohzvJJJKZpbpdaM5yziB0EOjAAh8VKjKy36zTrIvYsWFb8pdW9k5Wba+v1oAg Nu/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=ZSAFp4Q6v+yIVYlu0OxWtsyuhfSD5zJfL+9vw/k5KdM=; b=TetxE887JoUohdJnKjEB45NB4iOyGwWPdlJzIPQerG2ctaVxl5bktfTcGqStThPg6c TY2NAeFqySgUi++H5EGV1OejoEAso+4VgNuh7+K7aZZNYqoPZBPQmcZA1bdX0L4jEwiw CB6qkN9mcrARhCWbrzlIj2V/WRuijxpuH1tTRnzmbXqnHExqIUP5rBkGJdlMoELxqUCO dWaFaldBjdI5MDpIxo40DtNnTy/BIMrsObe17YsgqoqExczuy6N20+erEuOI9HGTpAUe mnS+Pwjbx8gqJGZ6Jt5b6qyYp57xHzqrguSYo35hP2bi72y9ObhFCFUrHQP7YKU0/wXD XjZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=RLFSTwJa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si20319349plh.380.2019.07.26.05.51.49; Fri, 26 Jul 2019 05:52:05 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=RLFSTwJa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbfGZMMj (ORCPT + 99 others); Fri, 26 Jul 2019 08:12:39 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36546 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfGZMMh (ORCPT ); Fri, 26 Jul 2019 08:12:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ZSAFp4Q6v+yIVYlu0OxWtsyuhfSD5zJfL+9vw/k5KdM=; b=RLFSTwJa8Aka Da5Awmtb0PtcUM6vmjvwCyrYta+1Nd+Kpnh9NgA5ZrMdoEkglqtZ9bD59VeiB6iL0/tGBak74gIEF C0AlgFew+6ppy4+84fNJpE4dX5NyoHqBzJdV267I/4tBvqdeXkOrwOSxwHJYQxb+7ptIxD8Z6k6Gq BHmX4=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hqz5F-0001aa-4t; Fri, 26 Jul 2019 12:12:25 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 8440C2742BAB; Fri, 26 Jul 2019 13:12:24 +0100 (BST) From: Mark Brown To: Chenxu Wei Cc: Baolin Wang , baolin.wang@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , mark.rutland@arm.com, orsonzhai@gmail.com, robh+dt@kernel.org, sherry.zong@unisoc.com, vincent.guittot@linaro.org, weicx@spreadst.com, zhang.lyra@gmail.com Subject: Applied "spi: sprd: adi: Add a reset reason for TOS panic" to the spi tree In-Reply-To: <97583aad1f2b849d69b4e76e8d29113da72a9fff.1564125131.git.baolin.wang@linaro.org> X-Patchwork-Hint: ignore Message-Id: <20190726121224.8440C2742BAB@ypsilon.sirena.org.uk> Date: Fri, 26 Jul 2019 13:12:24 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: sprd: adi: Add a reset reason for TOS panic has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From cc6b3431b36a1109d44cb8e4015cc68dddc75208 Mon Sep 17 00:00:00 2001 From: Chenxu Wei Date: Fri, 26 Jul 2019 15:20:49 +0800 Subject: [PATCH] spi: sprd: adi: Add a reset reason for TOS panic Add a new reset flag to indicate the reset reason is caused by TOS. Signed-off-by: Chenxu Wei Signed-off-by: Baolin Wang Link: https://lore.kernel.org/r/97583aad1f2b849d69b4e76e8d29113da72a9fff.1564125131.git.baolin.wang@linaro.org Signed-off-by: Mark Brown --- drivers/spi/spi-sprd-adi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index 11880db08ce9..0b3f23ad6479 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -86,6 +86,7 @@ #define BIT_WDG_EN BIT(2) /* Definition of PMIC reset status register */ +#define HWRST_STATUS_SECURITY 0x02 #define HWRST_STATUS_RECOVERY 0x20 #define HWRST_STATUS_NORMAL 0x40 #define HWRST_STATUS_ALARM 0x50 @@ -336,6 +337,8 @@ static int sprd_adi_restart_handler(struct notifier_block *this, reboot_mode = HWRST_STATUS_IQMODE; else if (!strncmp(cmd, "sprdisk", 7)) reboot_mode = HWRST_STATUS_SPRDISK; + else if (!strncmp(cmd, "tospanic", 8)) + reboot_mode = HWRST_STATUS_SECURITY; else reboot_mode = HWRST_STATUS_NORMAL; -- 2.20.1