From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A41C1C0015E for ; Fri, 14 Jul 2023 00:55:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 503D486CFE; Fri, 14 Jul 2023 02:55:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DTaoVI0g"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6225686D01; Fri, 14 Jul 2023 02:55:12 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8547B86CF6 for ; Fri, 14 Jul 2023 02:55:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-262ee777d1cso235315a91.1 for ; Thu, 13 Jul 2023 17:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689296108; x=1689900908; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=+uHzsbLCgT36scvWxJTE6mfDOIo9HJfVLuh25y0C35s=; b=DTaoVI0gbY9pXbvATh/Hv6qo8qSrzFgIS31RbtFTbdqmlSLQtNhhQhMfXUK0hJEUmm gd7lxC6xPIcBRPE6agYJ8ieTpwL9ghUbZ6u2p2LzBJEjPZ34nnw5Rn6mPInc+EnjN2aJ ZdXMavUGuWrZHnhB6O0rQLyOLHf/KafqJ+utY2bccdtKo9zS4YFfysW7t/CTFEXMy+/6 xmOczM7zykz4IFN8CWGEWIUne/FUpcY2spA4CmSdCr6ciJkeabLj6DtmzPUmlDdqRj8w CD+pvgw6JlblmSnno00UjiW1gvsAw1Ba72jzNkUJpF7+UJuRZs4Qf9JocZvZP5vtqXje vo3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689296108; x=1689900908; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+uHzsbLCgT36scvWxJTE6mfDOIo9HJfVLuh25y0C35s=; b=PwSZcDxw/FkBDq9N3x1Epy0U/JOC5sLdaThCGv/C+46bRpZnKJQccUlja2Hvt+1nHJ aX/9KAMGMHh9mGgD0ypUrnJMVZP6uMzkKbszQ6V9+KfSs3ZZTAW3Wk/f+AdNN/p3ovpG OACGhT9oANdi3ZhlwIubwciNh0wJ0qy7kf+OBPEjyVa9kzmPT4odBXy88Wzn5flp+CFW Z+/j9AZAAR7WTff/NmQ1nfO4hK2qiNzDEHm0u1XnV5cRncFPKxHMd7X1gpyEsLeXAzey H9yz1cXZov0D9Fk8A0/4TC3c0zIW0vQSIxi3hucRvJFtIOxB0Fee3g/QuyUNsymmkxKr 2B8g== X-Gm-Message-State: ABy/qLZwFUfE1+kohyDVoJC0HNj9x9c9svMqHDSnCD4jqxzwJqbx25lR /6ARn9nAb1Q2+VrX3rvVZ/LJS6/IFSRX7AWiYkI= X-Google-Smtp-Source: APBJJlH34vi9H4v0rZ1xTW9CUQK5bbHXxWOF+AJWlCqmcFwln6tCrrwqO+Vu0R6BNaej7XgSU33XsQ== X-Received: by 2002:a17:90a:8cd:b0:262:f76d:b29c with SMTP id 13-20020a17090a08cd00b00262f76db29cmr3178676pjn.2.1689296107758; Thu, 13 Jul 2023 17:55:07 -0700 (PDT) Received: from laputa ([2400:4050:c3e1:100:67e0:38af:3c10:1480]) by smtp.gmail.com with ESMTPSA id 5-20020a17090a000500b0026307fa0442sm128681pja.49.2023.07.13.17.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 17:55:07 -0700 (PDT) Date: Fri, 14 Jul 2023 09:55:03 +0900 From: AKASHI Takahiro To: trini@konsulko.com Cc: etienne.carriere@linaro.org, u-boot@lists.denx.de Subject: Re: [PATCH] firmware: scmi: return a right errno for SCMI status code Message-ID: Mail-Followup-To: AKASHI Takahiro , trini@konsulko.com, etienne.carriere@linaro.org, u-boot@lists.denx.de References: <20230613013045.36684-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230613013045.36684-1-takahiro.akashi@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Tom, Can you pick up this patch, please? It's an easy bugfix. -Takahiro Akashi On Tue, Jun 13, 2023 at 10:30:45AM +0900, AKASHI Takahiro wrote: > scmi_to_linux_errno() is set to return an appropriate errno > which corresponds to a given SCMI status code. > But the current implementation always returns the same value. > > Signed-off-by: AKASHI Takahiro > --- > drivers/firmware/scmi/scmi_agent-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/scmi/scmi_agent-uclass.c b/drivers/firmware/scmi/scmi_agent-uclass.c > index 54d563d929b8..02de692d66f3 100644 > --- a/drivers/firmware/scmi/scmi_agent-uclass.c > +++ b/drivers/firmware/scmi/scmi_agent-uclass.c > @@ -46,7 +46,7 @@ int scmi_to_linux_errno(s32 scmi_code) > > for (n = 0; n < ARRAY_SIZE(scmi_linux_errmap); n++) > if (scmi_code == scmi_linux_errmap[n].scmi) > - return scmi_linux_errmap[1].errno; > + return scmi_linux_errmap[n].errno; > > return -EPROTO; > } > -- > 2.41.0 >