From patchwork Thu Nov 4 14:23:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 516808 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1993944iml; Thu, 4 Nov 2021 07:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9niXNDE1BRCBC/WVqkRjvLv06becq9EjcOLi1E00J9p0U/MNZdDzaJXC7vqzIFtikjnPY X-Received: by 2002:a17:906:4fd6:: with SMTP id i22mr62002436ejw.92.1636035868337; Thu, 04 Nov 2021 07:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636035868; cv=none; d=google.com; s=arc-20160816; b=BHHf15bWOIHCuKsawLDWfEDDPX8WDwHCeHHTR6w49oi/Kisu7anacTfGcpQPyscIi8 ETLjVrW9304Z/toqwQqiz6322KGf08FGWqO8DMNUNsh3TJK1fgnCTPdqyS0r7cdWi6WY UL5ppfQPVBnA8WNeFQPXUhDdRIRnmBjHxRuY8sh/AAuY8QsS1y/FiMBSoyD+GhHkuVcy +DwkVuTK5Wt36ygjI/kaPXD0tZRAEfkSbSa5UhM/IaXj3dXTkTeBPl12CV4jpoHF2edK pyO/OrF4HMfn3GIcuviR2d2rV6VqR/pWkl2yBdtTfCuyiut132b1lRhTywSAi9rhz/D9 dawQ== 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=mMHZHxfXqKS/z4MJ0PbbuCxqzHJG8u1CMK7TayAQZPc=; b=c5xTqYDebAExpU7ymqytNxjfHUM3cQf+2Mwa7G9wnLfCRLqikWuhm9R3haVAhtAkKP 2i8Sh04RlULFdrhdhs1frqCaE3EsI5uXmVuHHYSvzaqzmRU/PaVei6wp8kg+c69c6N1b wUNSPsew30pHnQguz06wt9exO9R2iGrZnJWhXIZL2YcY27ViqaFZO20pGpYpGz7NbTjq GSSfJbAtwQwup0BD7czFNXHa3ngx4UDvHENw2frphSQc8xdyd9fvYeSDo75jY5aQgEWc UISKF1V7tSvrqf7g5pS4JOvqW/e43PmylmFfSrgUO9UMM0VFk8tb+a1zdnpKyg36C/Uv 6pfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HWo7hMUS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id k9si9492847edv.52.2021.11.04.07.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HWo7hMUS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 79817836F9; Thu, 4 Nov 2021 15:23:56 +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="HWo7hMUS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04D1B836D1; Thu, 4 Nov 2021 15:23:39 +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-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 5FA2A836BE for ; Thu, 4 Nov 2021 15:23:33 +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-x430.google.com with SMTP id r8so8875966wra.7 for ; Thu, 04 Nov 2021 07:23:33 -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=mMHZHxfXqKS/z4MJ0PbbuCxqzHJG8u1CMK7TayAQZPc=; b=HWo7hMUSCOZHbg9/8icZNq8oGaP1K0oJ6VcjC6k3V65xarnSnpGDsSYTcT86rdHLs2 duQ+9z3pj86Cmij1ky+k8C38DlOzNW1Te34tIW88hT3Zw6dzTu4x5o/MdApSExC/fyKp pg3cBP40+2D5RWm8lLwkaQ+Bi3lovjepZyqcKRQ99X7Ef/xl+z4A9+JLVsQKMcnLmezn 4MKWs8v1kfJ2xGtiddwS1e0WWppBwa3LFFBYw/wfrrrmgUkf53dnoDxfVUhuRON5sG0z 2vEtx7K7gsUynbUM3JvXbaP0vG0BLv7feGrPfHWLuBuRNdaSI5O9wCyaZplRM/bjms2d hKjA== 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=mMHZHxfXqKS/z4MJ0PbbuCxqzHJG8u1CMK7TayAQZPc=; b=u/9qSUs3I69qzVypCkFRKB+EGG8wWjXa6pr37XRnuFNgx279NQQFA6vcKaz6SqM+dW tIwKQJ2n3IslC5t+9kMeq3rLBeWVrCSW8OQ+qK3gt6riHhhtj4VZE7296pKWMVL8S5hR x0h9dahtNKEyuN7Wn1ju9QQBfWHfN3C5uXonqjZojsX0fHmd8tIV63rmX5TZZKdEigSn C78S0I5CFvB8XRdstw2Hs2cRcRPFsXBZtKWhYXfrbiVS9o5hm+bogkbK9bDr3CIa6orb PLtSO7zmmhEbzuYUFVnEDj6DzSDMliaF6+IGze5FZbwUg2xDo76BWhpkuRyTpJks3A5q MwJg== X-Gm-Message-State: AOAM532bRf4jpeio+TO1p7S+riZ8g6KdsbI7LVsxcYL4OT7UxM/LsWXt oU9wBo8oN5xAABjc2nLrYXB3gV+qc5moaA== X-Received: by 2002:adf:ded0:: with SMTP id i16mr61013226wrn.335.1636035811578; Thu, 04 Nov 2021 07:23:31 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10b3:52ee:40ee:3a6f:5eb8:bd35]) by smtp.gmail.com with ESMTPSA id m34sm9383297wms.25.2021.11.04.07.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:23:31 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere Subject: [PATCH 05/14] firmware: scmi: smccc transport: simplify probe sequence Date: Thu, 4 Nov 2021 15:23:15 +0100 Message-Id: <20211104142324.2879-5-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211104142324.2879-1-etienne.carriere@linaro.org> References: <20211104142324.2879-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. Signed-off-by: Etienne Carriere --- drivers/firmware/scmi/smccc_agent.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.17.1 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[] = {