From patchwork Thu Oct 8 14:37:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 11823119 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 80EE014D5 for ; Thu, 8 Oct 2020 14:40:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4135221789 for ; Thu, 8 Oct 2020 14:40:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LmF1Wxm7"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VBCYDrWw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4135221789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UV/LwSZgUOGIrGdN3Bmg8DfQzw2OsU0LDqd5RHkQL2o=; b=LmF1Wxm7lEJvPY9rXE0JL+3HrQ 4+Nu8t8IVCCyGINlMl/ichCWBmvub7aYI+iBUU4772h1RRJclhIORKcLDJLeDcm667v/Hcn21UBh2 RIt5+08m3+5LQBFFO7I05q5irnuxmlVBjMFCG1Rh2HWlGQVXM5RwbJQC7H3WIr7FQEI0L9UWU4H55 4oajBBOkhqp7+g0zl7RFiBOyQ5TIftxH4YZMbdkBDYyy0DxPFpm5GhkpqMG2Of+jA0D+GlmpULHAf qK5uy5R3kj7IIuxlUG9vVSEWMT6jotICtU1oZiHI+AaEvVpttpQmIP8f3NKtVoRGJzUQP6hSHWISZ 7bxlAZ9A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX4P-0000C3-7t; Thu, 08 Oct 2020 14:39:01 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX49-000079-SP for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2020 14:38:46 +0000 Received: by mail-wr1-x441.google.com with SMTP id i1so770806wro.1 for ; Thu, 08 Oct 2020 07:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WgNDcH66XgUR5xvlin4vgOc3vaLahNaQFK4he5fif9k=; b=VBCYDrWwfKpjCC9cjowky2P9uUdpZLV3HYyKQwXB4FUs2ZGzR30L3E84ciUkr8vZxI iCURge4wpInCm+QH7mEvl8g4Ob5YmewXbBYqfOT6te+pO/gQkRzs0ek0U0ETdf6bxjqx SppH/aQ8oKZRQtaCSg/OGoav0prhqqoeSMDBs/wU1nvDjWWrqS3NZYsOHKuXFInLdQ6/ FpTq6fSWZ94QjZXirNCmccnp+i7eLR9WX5V2CmJ4xvZYss4rBlCb9T9mYB6jDM1S5KZW NG7iWSdr7VRpgSPC+2e3l1wMXBKPnRcm5f21b0LGLKRTkwxJmNtFfMAnvBWuOvtELFcY 0z5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WgNDcH66XgUR5xvlin4vgOc3vaLahNaQFK4he5fif9k=; b=cwVFFQfJg0QyE9mcqAJ0bjAOYrseKbPyO6ehMUSyRxBIfPCNLFB0nNQfLu0k/1a83S JJ9UJf1y42X0sMDub10nflAFPdye+iJ0Aj+FBrMdz9D7bJzNceYc6tEnJDZSL573Ivey 8IPyPm1QbC6GCC7DNhJC4+HkwnJAQ45bjjFEIZBk4/FZITF/zaS5KX2e/2XlDGyd8ceq IWZWq6vp+/rbHmm4gyy5oONOAlnuCh8gw3juR7CI7lqhpwCzjQw2B6qhxz+E5hRBNrfM UU8Twk5sfgGP3zTnFVS+Gcx+MK0GCDvP537r1IIz3k51xTP9ySD8ws+h3cFtfZ4K9Amr tfZA== X-Gm-Message-State: AOAM530fw8JoDP7uGaqd9SPoCIfmcevAKrQhS3B+SPip9vKLb9Vg0pNK uwUJH998+VfFLSuGA9qS7eyuhw== X-Google-Smtp-Source: ABdhPJxEGhaFlmgD1zG31MpnbwTI/UoqOHHNEJ4n2LgcKuln/yIhIQHMUndaHQL2u6qpfD9P/cmTQg== X-Received: by 2002:a5d:480b:: with SMTP id l11mr9783275wrq.225.1602167925062; Thu, 08 Oct 2020 07:38:45 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:11c8:908d:6533:9100:d943:8b22]) by smtp.gmail.com with ESMTPSA id y14sm6926942wma.48.2020.10.08.07.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 07:38:44 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Subject: [PATCH 5/5] firmware: arm_scmi: fix ARCH_COLD_RESET Date: Thu, 8 Oct 2020 16:37:22 +0200 Message-Id: <20201008143722.21888-5-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008143722.21888-1-etienne.carriere@linaro.org> References: <20201008143722.21888-1-etienne.carriere@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201008_103846_009817_C2B02C93 X-CRM114-Status: GOOD ( 12.34 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Souvik Chakravarty , linux-arm-kernel@lists.infradead.org, Sudeep Holla , Vincent Guittot , Etienne Carriere , Cristian Marussi MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix ARCH_COLD_RESET according to SCMI specification. Signed-off-by: Etienne Carriere --- drivers/firmware/arm_scmi/reset.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/firmware/arm_scmi/reset.c b/drivers/firmware/arm_scmi/reset.c index f063cfe17e02..a981a22cfe89 100644 --- a/drivers/firmware/arm_scmi/reset.c +++ b/drivers/firmware/arm_scmi/reset.c @@ -36,9 +36,7 @@ struct scmi_msg_reset_domain_reset { #define EXPLICIT_RESET_ASSERT BIT(1) #define ASYNCHRONOUS_RESET BIT(2) __le32 reset_state; -#define ARCH_RESET_TYPE BIT(31) -#define COLD_RESET_STATE BIT(0) -#define ARCH_COLD_RESET (ARCH_RESET_TYPE | COLD_RESET_STATE) +#define ARCH_COLD_RESET 0 }; struct scmi_msg_reset_notify {