From patchwork Mon Sep 9 15:21:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 173385 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp4505167ilq; Mon, 9 Sep 2019 08:21:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcmOYDtV6FAU/ONTTRlxNGUZ+EK/UKCJU/3OG7PqJPiOnWlYSHTdGuQ/ZthgPXrBmWsGS4 X-Received: by 2002:a17:906:8158:: with SMTP id z24mr19838875ejw.54.1568042502463; Mon, 09 Sep 2019 08:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568042502; cv=none; d=google.com; s=arc-20160816; b=pPvWl7PHH4FmPWd8oRyord3ThXPNvFjSnt2NnQqT/yFjBk/J5+uk5hW08bVFqXAMDp RXH6Si0DNeLgXzBBKQiyZ0TcU88jKHJRbuDP2b1xbjEgnDoSWnkXt8uHOyhWx6uTRbbb 0uDih/SK+ood56sLTeaf+mW+6ybfmmSftm9EPzx0/Dlmjvfd0DVHP6bLt7WQUfVO7+1+ V7c8CGaSRmgEjnHzw6mmEgvc5nSdvz4E6L5noo0kojNuGW29swWNNFa0PnYM0B6FCyq8 EZ2GkoUoX2La2yCqNW434NKQ/v4q1JkqnCVYYpSClzYghbJWZEP3B34/KekrST4R89Ps kA6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=7Iz6RBax6V/sP3t/GUH+Z7l01aeqDM5bevVtJxCXxfk=; b=pXfAF2cblcIf2x6xc1DGXgRWydu09vWvSXPOds/Is/vYfLMAkkjW72TrYyaqVaPdom nXjzvHmLi5CAodNytwP15XEv0iDTsO84fS8V3JTCRklwJTXaBPocjUuLq/f0LsILZUru ts5tYKwttPQSWbRxaVg3C4vJxunre6QALbGvNpG8ZoFhG/4BIn8TsVjLZ9mwyRL4Dqub 7vROSH98YoEGFOQ8mKraVrJjRPY5b3MWxLo7i3RLVVXkWRuClLRhArYptNinUve43WZf KRL+6T929eDTilcGYj/5jejAUO6F948a6AjgP6NwpWmN25xWxb+WH4ZNgDH/Qx4ldFvl KKTg== 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 jp18si7616138ejb.276.2019.09.09.08.21.42; Mon, 09 Sep 2019 08:21:42 -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 S2388109AbfIIPVi (ORCPT + 28 others); Mon, 9 Sep 2019 11:21:38 -0400 Received: from foss.arm.com ([217.140.110.172]:52526 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbfIIPVh (ORCPT ); Mon, 9 Sep 2019 11:21:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 48A44169E; Mon, 9 Sep 2019 08:21:37 -0700 (PDT) Received: from usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0DEAC3F59C; Mon, 9 Sep 2019 08:21:35 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, Etienne Carriere Cc: Sudeep Holla , linux-kernel@vger.kernel.org Subject: [PATCH -next] firmware: arm_scmi: reset: fix reset_state assignment in scmi_domain_reset Date: Mon, 9 Sep 2019 16:21:30 +0100 Message-Id: <20190909152130.5021-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the copy paste typo that incorrectly assigns domain_id with the passed 'state' parameter instead of reset_state. Fixes: 95a15d80aa0d ("firmware: arm_scmi: Add RESET protocol in SCMI v2.0") Reported-by: Etienne Carriere Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/firmware/arm_scmi/reset.c b/drivers/firmware/arm_scmi/reset.c index 64cc81915581..ab42c21c5517 100644 --- a/drivers/firmware/arm_scmi/reset.c +++ b/drivers/firmware/arm_scmi/reset.c @@ -150,7 +150,7 @@ static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, dom = t->tx.buf; dom->domain_id = cpu_to_le32(domain); dom->flags = cpu_to_le32(flags); - dom->domain_id = cpu_to_le32(state); + dom->reset_state = cpu_to_le32(state); if (rdom->async_reset) ret = scmi_do_xfer_with_response(handle, t);