From patchwork Mon Nov 8 07:56:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518025 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp3208275iml; Sun, 7 Nov 2021 23:56:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJymHywqUCQF+Cpu/EXtrFlE0eVUW60fMMASKVDJ0JwBF2sPX5srXe/2Zi7EW7IRyg3NL2Xm X-Received: by 2002:a17:907:9056:: with SMTP id az22mr31974382ejc.107.1636358210165; Sun, 07 Nov 2021 23:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358210; cv=none; d=google.com; s=arc-20160816; b=lhxP/teRrr75tilwGDky6RIGQrexG7Wdg8PAwtuT7Z4avjvGeYb34djVppEqVAtCYZ gMNnEM0/yvTViK5xGPX+GUZ58ITq8d5VlO1O73FDJSL+fNQ7iZnQCyDUOaJ/PYo9ri6G 702WH+qlNJ3xfQ19geL2REOvC78XgtGb790/JHHyGpIl6HaMFZFKvmWOaCv+0PzExPUa jGoHA4eX94ZmOPnVX4kuxzU1IyXalu+3D/xyXtr4Wq/3PrtT3Y4JNj99ABDFiJIHbNu0 PCF/a8ISxVyw4AkSnlNWqsoFA7CAyfIbp4jTMCeimzImoyTtLjbTONGlh+7VuezoTs8g YSLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=HLMd+XAGCkuMG2RpZPbkAa4y7hJzRZ3Nq577DjlwWGQ=; b=U1f+dDugwS1Q4KingYJXN++ZOeCWG5s614JMzkp0ymVRfuspGrM7qReoILx08I6BwK L3hjMuEmAsHYLxTtE/6mypQKCCEWbbu+IzFzYuH1hzrZPwBtX/HatmrtjLRr2bKCLfVo 8GoRWyeAIDbq7wkHe/whOuHzY2UGTwvGrJ2ktK2ODVtQQlym2+x6/ribqXXqn4C/euDT eyGftjilduqhuZpggbYaO0NV654tF9x0g//toEPUaw8pgwrBoi1evshjA1B1+c2W3irh 6V820kB5nEnrH39mtRGJ7kiwSqKlDoQRZDhqqdMjbIMXxn3l+b9NDRe3+IDJf8vQ4Pxx mldQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h+LkoYLU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ds8si13175180ejc.494.2021.11.07.23.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:50 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h+LkoYLU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B0D98379E; Mon, 8 Nov 2021 08:56:35 +0100 (CET) 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="h+LkoYLU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C3FA68361E; Mon, 8 Nov 2021 08:56:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 151D58361C for ; Mon, 8 Nov 2021 08:56:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wr1-x433.google.com with SMTP id c4so25264482wrd.9 for ; Sun, 07 Nov 2021 23:56:20 -0800 (PST) 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=HLMd+XAGCkuMG2RpZPbkAa4y7hJzRZ3Nq577DjlwWGQ=; b=h+LkoYLUynA/vQgg3/fK2JyRBPfcJjwwe7z/VjfIBuX/iylUuI615m1MIhF3ISDHob vGIUIc8YCL3jw/9ktrcUY5C6sdMsMr72DJYvW81NyAYdPF6Uu1hQ/FP6AQXsHx1Kz2St ixx1veNOBy2SMoG61VJUP1mwHBmjhPTxr3WWEhEgxo0MxBbPjW6XiJ/XzDKGI7OcK9uS X5qVMpKmV5xtJ21VziMs0cqSvnphhGnV9p7AASa7Oo4W3JZdWV4wEzag15Jwf56SLvnH mrsUgowE/sZtvqqQzY/Wbt5t6+lHbZ8ZCSAFxE8heZ+Jhk1Jkhgr9mqdKDIfaseS3C6J rD9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HLMd+XAGCkuMG2RpZPbkAa4y7hJzRZ3Nq577DjlwWGQ=; b=LO6HMY4Nc7AqlRV9pQr/52YKXnZCBMRqnamb9R07fE0vBHZybrKmq//d3aUiK6WUAW xZd0REqTjukma7NQWwZQ/gGrw0QqGnPQniE0pSDYNpbtvgXxnfeuch9r03N912OM2MA2 Q/vPf4FSzooTdyymeuDBmLiBrBt+X20GvDVl2Kre+C3zkatOJu+jw/x7yTgv1G6Kb5U7 Kt9XvQwjnUA3bimp4K6vojjSbzVvf0JPl+K3Xsosk76yNnb97bFDIH49Ram0OHgs+pbM SqnOeVU5dsOlAmsg8yVm1Vwq+et4XiG+yjxbcpRdDJbItzaDDZJP3w2B4M06pQWT8gEG 03QA== X-Gm-Message-State: AOAM531rx6Mt8ITV7BLwlE+JeBZtai2dYPdnGB4XRvULnN7SDMvl7pAY wFESY1huHwE+3xKQb3HGt18S2RR+wHB/2w== X-Received: by 2002:a05:6000:156a:: with SMTP id 10mr72927479wrz.87.1636358179567; Sun, 07 Nov 2021 23:56:19 -0800 (PST) Received: from lmecxl0524.lme.st.com ([2a04:cec0:1097:d416:ed93:5b26:60a4:aace]) by smtp.gmail.com with ESMTPSA id t9sm17183725wrx.72.2021.11.07.23.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:19 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Simon Glass , Patrice Chotard , Patrick Delaunay Subject: [PATCH 5/5] firmware: scmi: smccc transport: simplify probe sequence Date: Mon, 8 Nov 2021 08:56:11 +0100 Message-Id: <20211108075611.30759-5-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211108075611.30759-1-etienne.carriere@linaro.org> References: <20211108075611.30759-1-etienne.carriere@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Minor simplification in scmi_smccc_probe() exit sequence. Cc: Simon Glass Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere Reviewed-by: Patrick Delaunay --- Changes since v1: - No change. Patch re-send. --- drivers/firmware/scmi/smccc_agent.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index f0477b91dc..5e166ca93e 100644 --- a/drivers/firmware/scmi/smccc_agent.c +++ b/drivers/firmware/scmi/smccc_agent.c @@ -65,12 +65,10 @@ static int scmi_smccc_of_to_plat(struct udevice *dev) chan->func_id = func_id; ret = scmi_dt_get_smt_buffer(dev, &chan->smt); - if (ret) { + if (ret) dev_err(dev, "Failed to get smt resources: %d\n", ret); - return ret; - } - return 0; + return ret; } static const struct udevice_id scmi_smccc_ids[] = {