From patchwork Fri Oct 27 06:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Moisieiev X-Patchwork-Id: 13438135 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F2BFC25B6E for ; Fri, 27 Oct 2023 06:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xTkvuFk60OpToV2Wm0QYnHJBmhxuNFhLeYaF9jqdKEA=; b=FUpeWejZ8J7bdS 9qM5pTHZ9TsxSuG9sDSlLn7jnwccB+3UhghBcdEgfGSyX5BspS5WKX6/LNH7p5ladZp54lUIYr94Z WFbmHNeMODDdtYlys2kWrXto1Tlt6kU10Iu6l7RUUP+1Tft3e4bSYlah0wrwMRADeAcVpQhT9+80i xpUEcXwHjWzsNf6h8nha6fXpX80GxIjr8PkfOV1pNhnmfLSa6JGDwlsQvtwNZkIDTBLoNk0r7TpM1 dR0xuINXrZY8bCZAzS42DWuuHaBxREds5eaEJGtEv37x7B3IofY61cWkMMAYjMaPOdJBpwThkweDp +bkKFfrfibVcBzcJLrIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qwGKp-00FgZE-2W; Fri, 27 Oct 2023 06:28:43 +0000 Received: from mx0b-0039f301.pphosted.com ([148.163.137.242]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qwGKk-00FgTs-1q for linux-arm-kernel@lists.infradead.org; Fri, 27 Oct 2023 06:28:40 +0000 Received: from pps.filterd (m0174681.ppops.net [127.0.0.1]) by mx0b-0039f301.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39QL6OQP007652; Fri, 27 Oct 2023 06:28:15 GMT Received: from eur04-he1-obe.outbound.protection.outlook.com (mail-he1eur04lp2050.outbound.protection.outlook.com [104.47.13.50]) by mx0b-0039f301.pphosted.com (PPS) with ESMTPS id 3tywqm92ds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 06:28:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cE6Z9y7/hCmdaVpQBfSIQ3yi4ooE2LI1AJ04680mxZ0Ha/TYLwknSqDID9LsWT5fECAICvVJDGex1750xWHxm9H0Rzz4HeN4XNgoMAvTofr8D/jpXxD8z8SaqyScHQoDR7ISFR6gJgMAfKu4G2qdEeaf+/28CAD+MvAJkRtbqwBNL5LLAuhIQLaU3Msj7nhKsfAFA8lhc1A48/u5iSuKf6kdEiAglph5AychaiAOAUhExEGqtTDnY4QqyOeSNQf8f29ZrvHAuWSbBJ5vYw2agt0eFpUyaykqpdF+bYuPbsjPQHHqk5lIcwF+xHijyDwJjTEtxflXKp8wdwVrSbqqzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MaH5rN5sWId5OwaQsed7wER9u7G9/CZdNqWaDCZQQJA=; b=Ivq7cg5GOnTEragpMROq4AWEenMnwmkHGfJCJy0TN7TJjhMwnVRHwnaYY/HxHYDIxVqD/KwRJA9k7noQeChfm0bnLRp5Lj1kieACUURZykpTVQX3EIcxvhidJJwSr740n6s+n01ISO8JrYXmxhzIjS8NnrBlXpzNAcTNehIwR5vdwvanYbi22X426uvs1EbUtqkRz981UjriM1utXVz6Ijyi6zEWG5mP1/VjsnQta7Jwb+8sHmowU6pqCQtkIL0eAkXBn4arGSq5Cd2STL73hoappks6NIKbvZkvrwgn28HOf2sF9xoNf8V5v1K8KCpb3kcLSKQTXD0LN+QCTxFGeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MaH5rN5sWId5OwaQsed7wER9u7G9/CZdNqWaDCZQQJA=; b=Vt6LB/7YXfdU4Esw0lUJy7dNRKzU+oqjIYjuxZCmLaiZZplF1XQnud+WVXdDLgA1fbv4tqQnllT3jpqGZC73YIIy5x+k4DXxBJ9wBC8WWS7zlvrNZ0Os7rKX8ImA/EqnqZhxedD/hKGJC5et17CtDUsxAHcZIV3JoT74nLYLmCvwvq1bNNodjjkZO7l/EpZhwe5Xs9ovq4Xc0czeQZfOStxBUFQtqqJkjkuexIglT668SHenE69kqKywthNfco6Fz0PmXy3l4Q+LDOfg6rmg+ge9L8Dk4lJkHTHe4J8nAtcbwYkWDfqNaXd7EWhd0GVScSejx2O8Npu+wGKJW0F7LQ== Received: from PA4PR03MB7136.eurprd03.prod.outlook.com (2603:10a6:102:ea::23) by GV2PR03MB8876.eurprd03.prod.outlook.com (2603:10a6:150:c0::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.23; Fri, 27 Oct 2023 06:28:09 +0000 Received: from PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::2211:9053:228e:4e40]) by PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::2211:9053:228e:4e40%3]) with mapi id 15.20.6933.022; Fri, 27 Oct 2023 06:28:09 +0000 From: Oleksii Moisieiev To: "sudeep.holla@arm.com" CC: Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" Subject: [RFC v5 1/5] firmware: arm_scmi: Add optional flags to extended names helper Thread-Topic: [RFC v5 1/5] firmware: arm_scmi: Add optional flags to extended names helper Thread-Index: AQHaCJ7AzVEsErsWcEuaiaf9wSr68Q== Date: Fri, 27 Oct 2023 06:28:09 +0000 Message-ID: <318eb79c7e1ddb1f964a901e778a0475bf18c85b.1698353854.git.oleksii_moisieiev@epam.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR03MB7136:EE_|GV2PR03MB8876:EE_ x-ms-office365-filtering-correlation-id: a6ed3b69-e123-4019-de96-08dbd6b5e350 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pyWZU/njM6rH2NQUOUqUShlnr45DnPz2r/GgyLKMbRjFCmmC5m+bLPgbndfKBl/HyrULPsuc4P8gNnzGo2MtvpeEooaU09o3CrvgT2C3H+TcbmWCD5Fx8p8qmiodsIHjcQOMyBcqN/VX4vgcdyoH4q+Z/DLakH9O68przhzzIMGPWP0cFoQHyLetuZ0bah/qD3uh/VuAOituGul8he7zVgjldpZWvoXQNLPwnssb1eJxDt5a2ExYsFnSF3vwNH4BlwKXzOIHADFfLfA9g0jvsjWb36el53sNHCS/PkDuVYQYsKu3wzJpNkOiynuhMK3f2ACU1LKdM/9m1F0CdEGCXEawcXhgskixZ/Mcv7eYi+M90SA9ufwzge8dYCk/W3eOUAsQFwW/C92+t+D8MwgrMha22acVW9bciueVSoSKjoZ4kBu3QomCckvIsl3+khfSj1L+aeXSWzG5PxGwU0AoowhX8Ygoevn6+p4Lv4RcZax/CO9dUyUxBcujZ0UyYg/TvcCRHXh5Roog4ICetLD5tOjalLP3gVmQwZ8beWZa+kmJPznnnFYG/z2X5n7Jd7G+DRLv9zlb4s2lCAEARCCouIlDbJzMrDIXdXBuV+WE701thljMVy+3wCN0SHYX3r4g x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR03MB7136.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(136003)(376002)(396003)(346002)(366004)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(2906002)(478600001)(6486002)(83380400001)(36756003)(86362001)(8936002)(7416002)(4326008)(8676002)(26005)(5660300002)(38070700009)(41300700001)(2616005)(66476007)(66556008)(66446008)(64756008)(66946007)(54906003)(91956017)(6916009)(316002)(76116006)(38100700002)(6512007)(122000001)(71200400001)(6506007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?X6i5UJAHpSRWtppo5y3kKL+?= =?iso-8859-1?q?0E8jRAWmW03VDPBWNaGr1rekS1BEzbcczus97YNdP9SaklsqaJTk0/7zlL4h?= =?iso-8859-1?q?82GRuDNdFfLl8nLmKVJhiMRwQ7cgT5Yqsw12nMvItFWn0VOcxKULNLrONV/u?= =?iso-8859-1?q?mJm78vaUF4Wh3HMNtFp876mDZPRB8sJ63i1+C0DCkxGfvjX3czV1nvvJkXhR?= =?iso-8859-1?q?SRNa6y020qZcT7gD8SrhBcsNl4g0aJod128rFmCjO+lLLNjvb78u1dbNKTWq?= =?iso-8859-1?q?gmXTwfSxV1HoCRtz0EPCrBYWA9x9Rpe8a2YiqznZnMgPtWgqKJA44+0dCtrM?= =?iso-8859-1?q?k8Ncf1zJ0/OD3sPPbDfg5YihYIsLyuXL8gFErk0Kq2nM87TLX+oKlrN/ZQTa?= =?iso-8859-1?q?GWI+DFVac2ecE+PbuKNjmNF/eu/RB7iwuLLb2Nh2oxwhUwTJn1NzUAt4ecVV?= =?iso-8859-1?q?3Ef9RbkMR8HZR4UXg2vFwfvP9LaM+w13P9GxmUXuAYgWfoTx8NYb17ues09G?= =?iso-8859-1?q?YL5MCJH/WfT5H2unNs36eLQ+IotlEygvBPJWwa47vwg6mDu9SqVin7RgsUEH?= =?iso-8859-1?q?BZN2r/vZ/co7N1T8sAmMOkFHOH4zL1nDW+44qKvRUj2jq0foII+cZ6P1CJSn?= =?iso-8859-1?q?oQFXXr5y6wO4wuss6qqHFpEltgJly9q21uaPaz1h2mrAJXp4UlvP8irQsptd?= =?iso-8859-1?q?gvCazyB/m5G+XX2EI0kdA0bFyCu568K8bKe0g3W3O9yEG783xsdBETNEZFTp?= =?iso-8859-1?q?4iJoaeRbKcmnAFlQC2EJP+ToqD3/e8a77UGhp5jo4yNZKrrAFH6NNUP9kKTs?= =?iso-8859-1?q?NpVby/aTLNIiZJvlgTL3P0Gysav7v3Grlt1YjhKCQvHCs2xrOmfDgww3Xff8?= =?iso-8859-1?q?L1m+Y/fuSC2ZcPtBbvLM26Togzl3nIhk9zXWHrMz6qXhZpuu5ar1N1sCW44C?= =?iso-8859-1?q?m2zQhWQ9tIv876RUf2WytpGDCXhZi0CdBGxVp0KwzzbiOefhPBbdlTYMOKwh?= =?iso-8859-1?q?O8ZWK1RGTCw7dlmKCWFaXkHF16a2BWNui/GzthAWY1Lx5KWh9fCNKfIKWLts?= =?iso-8859-1?q?CvDDeXTA5eEe7YF96sj+1K28FkyvJ0+Y6Q/wJWuRkerXwvryIcKXE6CIlTrP?= =?iso-8859-1?q?aqOm5AeGlwgHVPB2IU6nBul0KXrgwPhn1AVrv6sUrpUtEwbrm20dJldZyyUv?= =?iso-8859-1?q?oVBGYjPYe+JTrqpgfvnY2eaf4q0+3OQPUiLf+5hfE/2ki/vVgj8x5c7MRBNz?= =?iso-8859-1?q?rvj41fOwr6mD8cqhFVyHU7IuXxGXp2q/6SSrVylA+pNq6tyvaGW3MHZjvBNv?= =?iso-8859-1?q?nex3skFGBpI15Kc0on8MxYlaCCG4/Us9TRVtxE82mBX8vIj8S+ZGVKnr6ZnU?= =?iso-8859-1?q?iFyrox0Cpzsn0lo2Sb4WAR7TpBh7dSZgRSXpCopcfh7BWkr7ZNJzgExTXdLU?= =?iso-8859-1?q?Rw3FtfN1TMsAHWu0AgqP00TQ4EwqcC9A4bwDK8KKJVPNBvOqjgfMNGnpll0A?= =?iso-8859-1?q?RlShsJH3DD0yTLZ3wrN/38G3WlIcQoP/Jm3Jy66/dea2aHrPq2PMXLTt6qEv?= =?iso-8859-1?q?/2mcc1sXQSFTJNyrsAzSm4Cnd52nDVS7gr72QXracYcIDbwSHRdVG4hCU50m?= =?iso-8859-1?q?hnJIKeWU55AZq8aep9/rtpFmPGG0bD0cL2GVpGw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR03MB7136.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6ed3b69-e123-4019-de96-08dbd6b5e350 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2023 06:28:09.3773 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yNeXCKdn2RJca+JxkjnGyo6EL7aJgM1STkEXE+b4F6dgp30Wze//NHDWONBJYggp0G+52XAyjq1acLrfaKXsNcXN4iFsdDx+2r+LOuuDe1E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR03MB8876 X-Proofpoint-ORIG-GUID: mph7srOMVquastlWr0Hbj4y-eFyNGCiV X-Proofpoint-GUID: mph7srOMVquastlWr0Hbj4y-eFyNGCiV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_03,2023-10-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1011 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 spamscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270057 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_232838_742310_D8273FDA X-CRM114-Status: GOOD ( 16.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Cristian Marussi Some recently added SCMI protocols needs an additional flags parameter to be able to properly configure the command used to query the extended name of a resource. Signed-off-by: Cristian Marussi --- drivers/firmware/arm_scmi/clock.c | 2 +- drivers/firmware/arm_scmi/driver.c | 7 +++++-- drivers/firmware/arm_scmi/perf.c | 3 ++- drivers/firmware/arm_scmi/power.c | 2 +- drivers/firmware/arm_scmi/powercap.c | 2 +- drivers/firmware/arm_scmi/protocols.h | 3 ++- drivers/firmware/arm_scmi/reset.c | 3 ++- drivers/firmware/arm_scmi/sensors.c | 2 +- drivers/firmware/arm_scmi/voltage.c | 2 +- 9 files changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/firmware/arm_scmi/clock.c b/drivers/firmware/arm_scmi/clock.c index 96060bf90a24..e6e087686e8c 100644 --- a/drivers/firmware/arm_scmi/clock.c +++ b/drivers/firmware/arm_scmi/clock.c @@ -169,7 +169,7 @@ static int scmi_clock_attributes_get(const struct scmi_protocol_handle *ph, if (!ret && PROTOCOL_REV_MAJOR(version) >= 0x2) { if (SUPPORTS_EXTENDED_NAMES(attributes)) ph->hops->extended_name_get(ph, CLOCK_NAME_GET, clk_id, - clk->name, + NULL, clk->name, SCMI_MAX_STR_SIZE); if (SUPPORTS_RATE_CHANGED_NOTIF(attributes)) diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c index e7d97b59963b..729201d8f935 100644 --- a/drivers/firmware/arm_scmi/driver.c +++ b/drivers/firmware/arm_scmi/driver.c @@ -1438,6 +1438,7 @@ struct scmi_msg_resp_domain_name_get { * @ph: A protocol handle reference. * @cmd_id: The specific command ID to use. * @res_id: The specific resource ID to use. + * @flags: A pointer to specific flags to use, if any. * @name: A pointer to the preallocated area where the retrieved name will be * stored as a NULL terminated string. * @len: The len in bytes of the @name char array. @@ -1445,8 +1446,8 @@ struct scmi_msg_resp_domain_name_get { * Return: 0 on Succcess */ static int scmi_common_extended_name_get(const struct scmi_protocol_handle *ph, - u8 cmd_id, u32 res_id, char *name, - size_t len) + u8 cmd_id, u32 res_id, u32 *flags, + char *name, size_t len) { int ret; struct scmi_xfer *t; @@ -1458,6 +1459,8 @@ static int scmi_common_extended_name_get(const struct scmi_protocol_handle *ph, goto out; put_unaligned_le32(res_id, t->tx.buf); + if (flags) + put_unaligned_le32(*flags, t->tx.buf + sizeof(res_id)); resp = t->rx.buf; ret = ph->xops->do_xfer(ph, t); diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c index ecf5c4de851b..d85d4a0e3605 100644 --- a/drivers/firmware/arm_scmi/perf.c +++ b/drivers/firmware/arm_scmi/perf.c @@ -237,7 +237,8 @@ scmi_perf_domain_attributes_get(const struct scmi_protocol_handle *ph, if (!ret && PROTOCOL_REV_MAJOR(version) >= 0x3 && SUPPORTS_EXTENDED_NAMES(flags)) ph->hops->extended_name_get(ph, PERF_DOMAIN_NAME_GET, domain, - dom_info->name, SCMI_MAX_STR_SIZE); + NULL, dom_info->name, + SCMI_MAX_STR_SIZE); return ret; } diff --git a/drivers/firmware/arm_scmi/power.c b/drivers/firmware/arm_scmi/power.c index 356e83631664..077767d6e902 100644 --- a/drivers/firmware/arm_scmi/power.c +++ b/drivers/firmware/arm_scmi/power.c @@ -133,7 +133,7 @@ scmi_power_domain_attributes_get(const struct scmi_protocol_handle *ph, if (!ret && PROTOCOL_REV_MAJOR(version) >= 0x3 && SUPPORTS_EXTENDED_NAMES(flags)) { ph->hops->extended_name_get(ph, POWER_DOMAIN_NAME_GET, - domain, dom_info->name, + domain, NULL, dom_info->name, SCMI_MAX_STR_SIZE); } diff --git a/drivers/firmware/arm_scmi/powercap.c b/drivers/firmware/arm_scmi/powercap.c index 83b90bde755c..e7ea9210aae1 100644 --- a/drivers/firmware/arm_scmi/powercap.c +++ b/drivers/firmware/arm_scmi/powercap.c @@ -268,7 +268,7 @@ scmi_powercap_domain_attributes_get(const struct scmi_protocol_handle *ph, */ if (!ret && SUPPORTS_EXTENDED_NAMES(flags)) ph->hops->extended_name_get(ph, POWERCAP_DOMAIN_NAME_GET, - domain, dom_info->name, + domain, NULL, dom_info->name, SCMI_MAX_STR_SIZE); return ret; diff --git a/drivers/firmware/arm_scmi/protocols.h b/drivers/firmware/arm_scmi/protocols.h index 78e1a01eb656..b3c6314bb4b8 100644 --- a/drivers/firmware/arm_scmi/protocols.h +++ b/drivers/firmware/arm_scmi/protocols.h @@ -256,7 +256,8 @@ struct scmi_fc_info { */ struct scmi_proto_helpers_ops { int (*extended_name_get)(const struct scmi_protocol_handle *ph, - u8 cmd_id, u32 res_id, char *name, size_t len); + u8 cmd_id, u32 res_id, u32 *flags, char *name, + size_t len); void *(*iter_response_init)(const struct scmi_protocol_handle *ph, struct scmi_iterator_ops *ops, unsigned int max_resources, u8 msg_id, diff --git a/drivers/firmware/arm_scmi/reset.c b/drivers/firmware/arm_scmi/reset.c index e9afa8cab730..7217fd7c6afa 100644 --- a/drivers/firmware/arm_scmi/reset.c +++ b/drivers/firmware/arm_scmi/reset.c @@ -128,7 +128,8 @@ scmi_reset_domain_attributes_get(const struct scmi_protocol_handle *ph, if (!ret && PROTOCOL_REV_MAJOR(version) >= 0x3 && SUPPORTS_EXTENDED_NAMES(attributes)) ph->hops->extended_name_get(ph, RESET_DOMAIN_NAME_GET, domain, - dom_info->name, SCMI_MAX_STR_SIZE); + NULL, dom_info->name, + SCMI_MAX_STR_SIZE); return ret; } diff --git a/drivers/firmware/arm_scmi/sensors.c b/drivers/firmware/arm_scmi/sensors.c index 0b5853fa9d87..9952a7bc6682 100644 --- a/drivers/firmware/arm_scmi/sensors.c +++ b/drivers/firmware/arm_scmi/sensors.c @@ -644,7 +644,7 @@ iter_sens_descr_process_response(const struct scmi_protocol_handle *ph, if (PROTOCOL_REV_MAJOR(si->version) >= 0x3 && SUPPORTS_EXTENDED_NAMES(attrl)) ph->hops->extended_name_get(ph, SENSOR_NAME_GET, s->id, - s->name, SCMI_MAX_STR_SIZE); + NULL, s->name, SCMI_MAX_STR_SIZE); if (s->extended_scalar_attrs) { s->sensor_power = le32_to_cpu(sdesc->power); diff --git a/drivers/firmware/arm_scmi/voltage.c b/drivers/firmware/arm_scmi/voltage.c index eaa8d944926a..36e2df77738c 100644 --- a/drivers/firmware/arm_scmi/voltage.c +++ b/drivers/firmware/arm_scmi/voltage.c @@ -242,7 +242,7 @@ static int scmi_voltage_descriptors_get(const struct scmi_protocol_handle *ph, if (SUPPORTS_EXTENDED_NAMES(attributes)) ph->hops->extended_name_get(ph, VOLTAGE_DOMAIN_NAME_GET, - v->id, v->name, + v->id, NULL, v->name, SCMI_MAX_STR_SIZE); if (SUPPORTS_ASYNC_LEVEL_SET(attributes)) v->async_level_set = true;