From patchwork Mon Nov 8 07:56:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518023 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp3207930iml; Sun, 7 Nov 2021 23:56:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbya1/LTisT8tIAEtBSpx/LF1xHfM3h3Hprv/lNP5DM8P/3u1zE+J7pjXX9r2omyUvtY7D X-Received: by 2002:a17:907:72d4:: with SMTP id du20mr26577135ejc.419.1636358186689; Sun, 07 Nov 2021 23:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358186; cv=none; d=google.com; s=arc-20160816; b=xQPq/nHd6mCkiGISu1N0Pkl5nRJossmuBwSQvGK2cuhSwj22Rgxn+lHiUkDyrP51dO OW5qXqMx+Z+Z5g8rl1uTegDSJEhZcpXHwnaNLfzC2CBWXvmGDrM8wazdm6amJ3tTdeFi jLUTPkxKmj/y3Xds52r3TVZRUKQzzK15ZaRhEqHp8m29qRl/QNnvs/4qdGAXMjHqOFZz zr189fcQl4H4CR7Khf+5zpf/G4cbRWpjfSIoqFqvohDi/lpi4TKF5QoINYabmd51fqS0 ysgCihOJu5w5zJoqOB3CEo9v50WMXZ0rLLffYviU9MF45QPudniJJcgd2RNmItKJmF3h yuEw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=wsIZew6J9qD+cQNpgGmrfSulC3+E3VA7KK5eSzyOjtI=; b=OLnLXA4wEQPatjfr+R4FoKlgvxR3fHTYC4Q7A9jIHTCcY3zeHUcuy+8ZfrEBR/UciX OVSUZGW26R4O/lB06Gd6lI8l1PF2lMGfelbRFvjDKv1X2KSfHCpqzsNIkEp7auUWfv+B SH3gGMkgRIDKaO4uTOrhdBphdUMVHgdoHPpYCzdSpdmk+rovQ1DUhmEvwbu2AkSFn0d0 G34pFR/ylXDLW6lE1NEIIiBt8d1ih8snmmE66y0YvL+sDsXLac1umW64JT9YaEcyvCQC x52mvbEd9ucHb6gIAqvLo65+bZ6QkYiFvNU+xYrKj7F1dfi79fNuL8b47kdeRZ5d2RF/ gzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sWP7x3eD; 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 e16si24729564edr.581.2021.11.07.23.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:26 -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=sWP7x3eD; 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 E000F835F9; Mon, 8 Nov 2021 08:56:22 +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="sWP7x3eD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8394483257; Mon, 8 Nov 2021 08:56:20 +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-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 D809B835DD for ; Mon, 8 Nov 2021 08:56:16 +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-wm1-x331.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso9822366wmh.0 for ; Sun, 07 Nov 2021 23:56:16 -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; bh=wsIZew6J9qD+cQNpgGmrfSulC3+E3VA7KK5eSzyOjtI=; b=sWP7x3eDfiatWLHAdsLKnjZYL6d/Gi6zro6xvAyUhO6SIKdJjvJU+5fx3hHrWaCxeF cAOqS5iZHVYKozaEmrmQJgKoMsRPb8SDnGlMWOsNffwMV7WIpbwqZVcY5j0iJ4GcOnFU EHwO4YgDab8olkdxWERxrcya31X00yBaYipDQSU+b97cgEcvTNEeiGN0f5pJeRDTrCah 0jz+Yk2h8nRChTYWZbeffG7FC0UHkC8qDSVjOh3GxITH0dkJROqPCuoI2UGaFXRU6jRB 6Vwx6Fjj7yijDZCPhtukbb2IImJqc2+Uwal8Q2EYA4h+Ac4gO8JQ25oq+5G9+/yrBS7M tgaw== 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; bh=wsIZew6J9qD+cQNpgGmrfSulC3+E3VA7KK5eSzyOjtI=; b=2XtdV+NnNzyZFTqgptrrCYx6evx/L/iQgpvhGOh7OQyenxybVqYGDtw+IKBlSzIpJr rmBbgaeBxNYqd1BMjEgYRtWHQx/eHjs6sX5WEQSGlXfNHCXOVtWuWlP9ebpvTC3lhzix Q7rLU68UH1ft3xo1H9VZD4Y3Rtlm6fq91WmHe0fEOjurrJ2r4YJGa/12UXjSOXdgftOl 6urZkGfOLvbCIhJLRe/RmMb9qK7VGGDxeSQE8i1u5NUUZxEzzNu4/o1Zgo1ByNIe90gp 9srRd0Lj4BpMB3xn7tEYBJm35Jst1rrgl5fumi08Wlgm+T0yH5ZmxgugD/W16QKEV88K Tt3A== X-Gm-Message-State: AOAM530B+Iv7MGWhUdjmXHq1VD2/qZ0NxNsQNPRE0iiUqxfmIXzZVQ5/ P6iZY64ngcjj5uGRm5fP57Z7BA0vnNS86g== X-Received: by 2002:a05:600c:198f:: with SMTP id t15mr45823260wmq.94.1636358176271; Sun, 07 Nov 2021 23:56:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:16 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere Subject: [PATCH 1/5] firmware: scmi: fix description of an API function Date: Mon, 8 Nov 2021 08:56:07 +0100 Message-Id: <20211108075611.30759-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 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 Correct inline comment describing API function devm_scmi_process_msg(). Signed-off-by: Etienne Carriere Reviewed-by: Patrick Delaunay --- include/scmi_agent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/scmi_agent.h b/include/scmi_agent.h index f1be9ff209..ed40c7360a 100644 --- a/include/scmi_agent.h +++ b/include/scmi_agent.h @@ -45,9 +45,9 @@ struct scmi_msg { } /** - * scmi_send_and_process_msg() - send and process a SCMI message + * devm_scmi_process_msg() - Send and process an SCMI message * - * Send a message to a SCMI server through a target SCMI agent device. + * Send a message to an SCMI server through a target SCMI agent device. * Caller sets scmi_msg::out_msg_sz to the output message buffer size. * On return, scmi_msg::out_msg_sz stores the response payload size. * From patchwork Mon Nov 8 07:56:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518024 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp3208142iml; Sun, 7 Nov 2021 23:56:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgYl5lL07CyPm8gq/6nvi9viq/kAvcLAG4HRraKT4+LltsfjIQrqFp0Y+2JyZDyQ7fSVan X-Received: by 2002:a05:6402:17db:: with SMTP id s27mr99967742edy.325.1636358199230; Sun, 07 Nov 2021 23:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358199; cv=none; d=google.com; s=arc-20160816; b=sBKToHOZ45lOL2022PPnREcIQEksRMdqz4PravsDASqlnWOhpBesoZF6ZMMRqEcuF7 CmvKgdJiN4YtqHNQV/o5GlqSMjsdaEIOO1FYN1hbT9tuGg9ugJ6Lb0+TqDVNdsvOoGKP Uqy0zERGODfLh6vs39Jr8s8Wm49q6IX74tfIzE5Os8Sh9TkxbVQUNfdVATURnM/U0nOC BrifgLfvajjTXgahD3hI9btOTsVs63qKtFS4wVQgTZ9aQip64rNhzFMFiFbAmByigeUO Cjcj3+y3akBlxI6U5Dnw58pVyKbAmXsJAkTcF3Papve8TTcXcy3HqHsja0AXeXXVO17R 0mew== 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=TNGeMGzQ1BOr122NDXiacKY02vVRxcAbdrThVWX2RbE=; b=Cr7U251JQs3AElN4kBIfLJ4bPvsvqw0lHky8DmO2QnuILW12p0lmpIV7QtADT4na1Z hbqkB47LkMUo8oKQR30xS5D/zuVYQrDHbNi1dHsLpG0AZmqB7tkNzx0fH5vanqL01aSQ Mub0yuge22CNzqdOySWNMShXQleiMPWI+s0jYOXFfs/ICI2bYOu8KfKRlaf2WxyX9Vfg 5dHqOAstACUdvHmnVNXYAo+pqZ0KZPgIPicr3jm/NnN8Ang45M8pqyEEqNU/bLsKW0t9 9z/YK4NOMwY2XNWDG92SesA/I0lu0AY3fsR06o2UUKP5ZNbbyD8DW6lGeAVX5p8cPQpy e5aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I32r4kYl; 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 m5si31994446edc.80.2021.11.07.23.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:39 -0800 (PST) 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=I32r4kYl; 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 362B183608; Mon, 8 Nov 2021 08:56:29 +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="I32r4kYl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38503835DD; Mon, 8 Nov 2021 08:56:21 +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-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 8DA9D835FD for ; Mon, 8 Nov 2021 08:56:17 +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-wm1-x32a.google.com with SMTP id o29so8399172wms.2 for ; Sun, 07 Nov 2021 23:56:17 -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=TNGeMGzQ1BOr122NDXiacKY02vVRxcAbdrThVWX2RbE=; b=I32r4kYlPeMXjJvzTEDS4B9hkDs7FDWG94U+yAGpVdXgwP30xCdBVu4puyvu16kX82 zMcksf2NcOfdFYi7m3o8VIA8B+MDVQywVqIkdM670PWq3VP/vm/bzBM4APVk94TNNs99 sR5W/BM6d6NQPgmZa7bPQuUGPj7vIY9nQd4r0ETUT5QfrNJVsSctPnvv5mBpMs3c7bJL 30Y3nMXdKnh+jIwts5lt87ekolNaXqEUIus6mimCwwbObgyfAeVanqtH0ePZE1f0UGOU cgtJiYstFd3FTxTbhLHfjRvrtBRKhxMiN0EUtouBWANPvavH66IfeogBMEag0wEayw5n v1tg== 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=TNGeMGzQ1BOr122NDXiacKY02vVRxcAbdrThVWX2RbE=; b=tKCB+6iI/zdKV4XTT+53G6rqwwOHHHs7rS2IYWqE768C87s7DcDPB1VJaEog+KOR22 BTJRK47DTOvpXd0Ve4gnDax8DIRnsZWClCjzSKZDDecXI6Gm8T5CfBcmgqsVwATxckWf afTu8cBHJ9fWMbcW3Edk+TDTFT5AtkTRW0JyIWjggSUNE+aVRmAUGKr3a8JFc74wgHKZ 0Gs5VvqlMR2wtlB+4U+wNEVakiBpASwAsbNSP/NTTYUn1c3PO/PuIu6nuMsZSv8Ckg5h 7lqe3l9UZHdsqJdfMci3VByzp1nXkCSGK0BFwzvpoAv3PblVeQI7rqZTRF1JrWq1qa8T BO8w== X-Gm-Message-State: AOAM533O6O43hM4OHfkNd1CaR/nU0rXHFLFrMZpgr/EnLZL4WbjYw8XD 6n3gtWQUQafke1fvVotp6oh5/vezQsFgTw== X-Received: by 2002:a7b:cb07:: with SMTP id u7mr50549098wmj.178.1636358177033; Sun, 07 Nov 2021 23:56:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:16 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Simon Glass , Patrice Chotard , Patrick Delaunay Subject: [PATCH 2/5] firmware: scmi: mailbox transport: fix probe failure implementation Date: Mon, 8 Nov 2021 08:56:08 +0100 Message-Id: <20211108075611.30759-2-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 Correct scmi mailbox probe function that can't free the scmi channel instance since its auto-allocated by the device model framework. 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/mailbox_agent.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index ea35e7e09e..eb841d692b 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -72,17 +72,13 @@ int scmi_mbox_probe(struct udevice *dev) ret = mbox_get_by_index(dev, 0, &chan->mbox); if (ret) { dev_err(dev, "Failed to find mailbox: %d\n", ret); - goto out; + return ret; } ret = scmi_dt_get_smt_buffer(dev, &chan->smt); if (ret) dev_err(dev, "Failed to get shm resources: %d\n", ret); -out: - if (ret) - devm_kfree(dev, chan); - return ret; } From patchwork Mon Nov 8 07:56:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518027 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp3208476iml; Sun, 7 Nov 2021 23:57:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZYMYV2t/4flhke47JE6uNBNQn7QaJC5ujAdcDg4YyCYouvc+EhZ4Vgdu1iOovNoHus5+r X-Received: by 2002:a50:da06:: with SMTP id z6mr105177393edj.355.1636358228011; Sun, 07 Nov 2021 23:57:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358228; cv=none; d=google.com; s=arc-20160816; b=Uw+arU4NLVxEww1/GD9VNS3SmRPpZUBFU6CIhnJRAUZi1folx7OSjkFgFGEX3TQiRX Q95Yh8zHvrdd/Dg8hBwTg7idLhod6e3yUAN7n0VicLW2Wxin6Og0CdnpSjwZVJ2HYTnD 3Jo6OAKy6+wSTm0u68ALcN8O73PS6wuQILEF5sEWgEEYAzeOzO/RI3lNJm5/s6hXxzID U3qZg360w4tsbXG03NrRzk+OBrzlvaK8uzpWUhvW3raL77BUqA3tdLJXxC2N0JEXNjsC nNKCmS00eGtzTWJvrX8pT3EStnQOvrIytOnDFc4cPJD4ejKC+S3z471i224ufRQfhI0B mkGA== 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=JqJ9sDVd5D3/NRf06aTboyXaFbst7Besn9EdZpl57Jk=; b=h2f7l0WSjjGOWLvz8VQ1YFE3idmMt6XTF/o0+JEK4QNNDk0lIkZLFzMz9njrPVjNDc Od1gURD3w59c718nakyZZaZdyqWLSwlrsFbR+LLzclZezYC+Nf2+hhWYC5N63+bCP+eI QWgWhoU24PWe/F+GnagrCtMPeqrjthfcangOdCmlQdpUAWeFUu7pamq5eWrWkK4vrJ7M NAL8v9yU0rZ433tJgs3ejqG2JhSiNy4H2viO8AGTCxvcYXM4g9xFJMkjaN1RG2JIDi9p HjIyVDMa+5IqpAp+vaorIuOyuSQNmb6uwLtptiqr/eqUm0yk0gIL0LynDmYtz0tL48Pb ygWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSVXbbGz; 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 hq13si36077169ejc.109.2021.11.07.23.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:57:08 -0800 (PST) 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=OSVXbbGz; 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 A4BF183817; Mon, 8 Nov 2021 08:56:45 +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="OSVXbbGz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A8AC083608; Mon, 8 Nov 2021 08:56:27 +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-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 7889983613 for ; Mon, 8 Nov 2021 08:56:18 +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-wm1-x333.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso9822406wmh.0 for ; Sun, 07 Nov 2021 23:56:18 -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=JqJ9sDVd5D3/NRf06aTboyXaFbst7Besn9EdZpl57Jk=; b=OSVXbbGz3bMKg+eqS+tlBbaEtEWznPGQoVtCjMihYy1HjvkpVcSg3S/97su7O6zK37 baiXE0b4BodoDfTYU98tLudc4Ym8R22vzj3hdjbCdhDUFcajZeFwEeJAIDtqtcLxRmKV oLZrQ/etwXjHWKMAHHmDRSFx90t6CNRnnMA9TKagxb0ec35Q/A1CkH6QDUiSTclSA/8N 9mYlRrwcVLzHD2vBoAHf0BjB0mbNEdFNtJRxDyCHaarwf/vplXCSLNs5TC2FG2cqQ78G ESyjZl9h46cTa6MfHMvB3npi5V+WW7Wsvtl/msR21n83oBD0U/3O6P5hN21+mxCHqu/R 850g== 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=JqJ9sDVd5D3/NRf06aTboyXaFbst7Besn9EdZpl57Jk=; b=2aojW31FEo1O4sEWfhUKL1I3WIx0pS0Ldblpq148Jky10GgDB0kaZP8vw/j3mEYw0s vp5F1u4HajYWskY46L4oxRTpGKasO6nbJG8qOFRR76W3g5LFzlueqPF4pSdKx0t9cDNT NtgKNKkayKZr3JnhwUSMOoP4OCoHfgAHHiGjojZEdLx4AnHvqya6ublz+XI/qWtdbyWl Wo9V3ucZZFfQnaPrs5ApSC93/xgXq4XbDCioeRRiq9xlinc5Y33EOkY1gN/ONrgkYmrq SjiePVf01tCVuxqVVSo4+4UNSlcquxhDzvXRJnHkF6Q2Qr05Gc4avICbHxjIUlGx29a/ Vv4Q== X-Gm-Message-State: AOAM530+gU7FxeFFi0vYNECp0MSvRova26oOcbSBliOeja8fqsrYEwmV jWs8JTCRcvCT/OEzr5oJ298ASzyVfmRSfg== X-Received: by 2002:a1c:4d15:: with SMTP id o21mr31976826wmh.171.1636358177910; Sun, 07 Nov 2021 23:56:17 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:17 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Simon Glass , Patrice Chotard , Patrick Delaunay Subject: [PATCH 3/5] firmware: scmi: mailbox transport: use plat data, not priv data Date: Mon, 8 Nov 2021 08:56:09 +0100 Message-Id: <20211108075611.30759-3-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 Change SCMI mailbox transport drivers to use platform data rather than private data for channel reference since it only stores platform data retrieved from the DT. Consequently the probe handler is replaced with a of_to_plat handler. 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/mailbox_agent.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index eb841d692b..8e4af0c8fa 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -33,7 +33,7 @@ struct scmi_mbox_channel { static int scmi_mbox_process_msg(struct udevice *dev, struct scmi_msg *msg) { - struct scmi_mbox_channel *chan = dev_get_priv(dev); + struct scmi_mbox_channel *chan = dev_get_plat(dev); int ret; ret = scmi_write_msg_to_smt(dev, &chan->smt, msg); @@ -62,9 +62,9 @@ out: return ret; } -int scmi_mbox_probe(struct udevice *dev) +int scmi_mbox_of_to_plat(struct udevice *dev) { - struct scmi_mbox_channel *chan = dev_get_priv(dev); + struct scmi_mbox_channel *chan = dev_get_plat(dev); int ret; chan->timeout_us = TIMEOUT_US_10MS; @@ -95,7 +95,7 @@ U_BOOT_DRIVER(scmi_mbox) = { .name = "scmi-over-mailbox", .id = UCLASS_SCMI_AGENT, .of_match = scmi_mbox_ids, - .priv_auto = sizeof(struct scmi_mbox_channel), - .probe = scmi_mbox_probe, + .plat_auto = sizeof(struct scmi_mbox_channel), + .of_to_plat = scmi_mbox_of_to_plat, .ops = &scmi_mbox_ops, }; From patchwork Mon Nov 8 07:56:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518026 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp3208401iml; Sun, 7 Nov 2021 23:56:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiaCFADrcwf8sIqaKR01mBgHHmX6evezflUrmXaicrvFs+1GZP6t7ZM0iRpImc3JHAJy8j X-Received: by 2002:a17:906:6547:: with SMTP id u7mr94332573ejn.544.1636358219234; Sun, 07 Nov 2021 23:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358219; cv=none; d=google.com; s=arc-20160816; b=LBCr6H50MQBaI8Xz9PlHbEUUPB1Z2by7igR4ZUt0nIgm3+zeTnJe9Uratngo1SEfUU ha93Hf0aUsYE1pOt+zGwhLkbgDvCm95k26Uwp7SexahsqJRKMpGZFz7p7A6jnkX0fwOu 6FDY7PRWkT5wAaPww8ouKUj5+Gi18ElDfbBugr7JaKTvboC9XEGAUxI9ygMt/81JaOwT iLo+wsnING2r00bmVuzbLbIxv1GNf4WB/ybuPn7d70jNNbAw/HfOHvY5pIxVPhOdy7Ng wd0VxZFuo/wLRSqXCtqCjGhEJ6gx9anVyFtnbhOeCP+xUlQYFi8vZeyOVX4Ka0B8IwLY 5xwQ== 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=IA3OGWIdzae6YHz7qV2boZuYVOb1wQGJgliwD/Gvsu8=; b=HqSocXgWEUnz9ie2vrVwy7hCHEIXNgoYEL/A6qSCUM0q1W7OZv4C40fqxJAzQaNOvt ZrtKYBPv7En/XroIv2Bfu+l8ksrWOzhKvTvgrqf2/Q0fHsg4hOEbQIEfqvHomK+MJ1XA XStDFY8mbKNXzKT2TyQoUQfJcHGoaLSAjIMrr2CM7/aWY8P5B3w7viSEJSRJ5B2iy9Pz sMNhwFS0JY07a1r6hYiL4K6/lk3DwDxAIvt9oLdPyChMraotlimMH4vh3KDn2DeMHVkK yHoHmaSQKauwBuizshxdClyGcF3aqOSLODSwssIFFee03Z6LvJl81KZKodLShMGVovFJ ZdnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=twPCaS9T; 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 dp9si29982435ejc.773.2021.11.07.23.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 23:56:59 -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=twPCaS9T; 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 8871283702; Mon, 8 Nov 2021 08:56:41 +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="twPCaS9T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25EA781E47; 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-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 5E35A81E47 for ; Mon, 8 Nov 2021 08:56:19 +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-x42f.google.com with SMTP id c4so25264446wrd.9 for ; Sun, 07 Nov 2021 23:56:19 -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=IA3OGWIdzae6YHz7qV2boZuYVOb1wQGJgliwD/Gvsu8=; b=twPCaS9TxlAFUFrOls7qQ32CVAXKaGRFVbYkquLK7ET1zeEgbrUb9DPhSBDSRzET1w ++4R8NqBHNsQWqfFtgvFP+xyvFM5xe8dnbMkINLc5Mm8i7KiDEFYicwtwBIF3iQF6qLr /994FjvNUJUSpcXfKW5uCFHYeb70ztXup249h5UHpdNTiI64XxkBXfhUuQlOEy/SGyHe U34w3UhLiFbUJYE2oLOryyeJqnD/vFmeFfX7RYpAaE3Oi6lkCE8qTQ8rFy+a89+7OPdo k/ngfUSuoDTlRGQslzlOA6NMCIdY+qphtevcKRCdnto7RUg4hVM8uF73K71Yv3SGy9qL frPg== 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=IA3OGWIdzae6YHz7qV2boZuYVOb1wQGJgliwD/Gvsu8=; b=GNP/ryh8Iy/Pe+dJgAQX7TK8w/HbXrPqBAOWnSAjiwlAOvgwSoV8vg6NnHowUGpX/o of+QZDnOWYg+rKSzdp8k6SIWZKmDwhQXXUfM6paSoO7kA162Fa0y7eXLYssjsIZSGY9d Qi/sWiUcsdCW3tcLWDj8gghl3Flq4si8SmDaIfUHF+koC+CdqDfkI+QlcZSDF/IO+9Ys farutnGfXPJtPWOUUU+aeH6ZrjhU/ad/p/IM82bTdm7Wx+Gr+CEUcla4L1g8Rdld/EfR qgJsOpSAH9CcL9Jd7PmsZfZvFAMpBrZBil+A3AtZc0O8T748Zl7lffjU8JOgk4QpAqZL cPlQ== X-Gm-Message-State: AOAM530JR1yf6nIWQG3a10rsOn5HY7JB6B3mf9OQSJFbraaU1jhJd1jQ HC1LIapib/2sf1MdcUFVeN8N0odgecYzQw== X-Received: by 2002:a5d:400e:: with SMTP id n14mr82908396wrp.368.1636358178749; Sun, 07 Nov 2021 23:56:18 -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:18 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Simon Glass , Patrice Chotard , Patrick Delaunay Subject: [PATCH 4/5] firmware: scmi: smccc transport: use plat data, not priv data Date: Mon, 8 Nov 2021 08:56:10 +0100 Message-Id: <20211108075611.30759-4-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 Change SCMI smccc transport drivers to use platform data rather than private data for channel reference since it only stores platform data retrieved from the DT. Consequently the probe handler is replaced with a of_to_plat handler. 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index f185891e8f..f0477b91dc 100644 --- a/drivers/firmware/scmi/smccc_agent.c +++ b/drivers/firmware/scmi/smccc_agent.c @@ -32,7 +32,7 @@ struct scmi_smccc_channel { static int scmi_smccc_process_msg(struct udevice *dev, struct scmi_msg *msg) { - struct scmi_smccc_channel *chan = dev_get_priv(dev); + struct scmi_smccc_channel *chan = dev_get_plat(dev); struct arm_smccc_res res; int ret; @@ -51,9 +51,9 @@ static int scmi_smccc_process_msg(struct udevice *dev, struct scmi_msg *msg) return ret; } -static int scmi_smccc_probe(struct udevice *dev) +static int scmi_smccc_of_to_plat(struct udevice *dev) { - struct scmi_smccc_channel *chan = dev_get_priv(dev); + struct scmi_smccc_channel *chan = dev_get_plat(dev); u32 func_id; int ret; @@ -86,7 +86,7 @@ U_BOOT_DRIVER(scmi_smccc) = { .name = "scmi-over-smccc", .id = UCLASS_SCMI_AGENT, .of_match = scmi_smccc_ids, - .priv_auto = sizeof(struct scmi_smccc_channel), - .probe = scmi_smccc_probe, + .plat_auto = sizeof(struct scmi_smccc_channel), + .of_to_plat = scmi_smccc_of_to_plat, .ops = &scmi_smccc_ops, }; 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[] = {