From patchwork Tue Aug 8 18:25:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Moisieiev X-Patchwork-Id: 13346731 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 6811FC001B0 for ; Tue, 8 Aug 2023 18:26:28 +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=39n1BQV9oJJwze enOXLfkMsHG3xkt8PzlmvA1++huGHKL6OVx1reHvGFAcQvHGrhSWxcD4XIx24LQoScG2Sp+5/bF5q JvaDUQUG/zjXjEs46UKR26VS7IDwWes5O+0Soe9Fbp3DZzcoF5n00bSf9z4o3x3yGBCGJuPnJ5NBz nmZsRrexCGnVwQIPygngmStJ1ELothYUU+6G+rfSgf8YicuTLuw8FuIDITqsrztINM/OA8LSNASxL 3g2T56BRR+XFwAf8uwlFgwzCY2d883LRE1yLylw4JNoYZ3h0cQ9Zefb3sv4H4opvTjaAgB3RSDZQX kpEKy9bDau4IHf59yVAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTRP6-003Dkl-1T; Tue, 08 Aug 2023 18:26:00 +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 1qTRP0-003Diw-0A for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 18:25:55 +0000 Received: from pps.filterd (m0174683.ppops.net [127.0.0.1]) by mx0b-0039f301.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 378E6eOw003021; Tue, 8 Aug 2023 18:25:40 GMT Received: from eur01-ve1-obe.outbound.protection.outlook.com (mail-ve1eur01lp2057.outbound.protection.outlook.com [104.47.1.57]) by mx0b-0039f301.pphosted.com (PPS) with ESMTPS id 3sbpek1ayb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 18:25:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vm1xO9o/0faYpe/b8ttcyEIxbtB+BqwbBULgLtVgLnWaNyuH7oczShozymmK3g/VxieFQNsgbKjSNZ12QAaxCkZ5c+Io0G4FZJVOrkTZP4ZKZTBnV/j+t8hQj5SQuVhiHtkANsAOVuynM2c0IX29sFAEmY/B4U5QhsOm3xm/pMes9tKiEPjJfdLEchAPe/vonAZsAV3ere62GBwPpRlJWwOiiGCaltJeWC8bwLs7ohaDeLDAWwD6omWQ1J61lmSmirPCV4ZcviJPDss5NZYGzxikD5vKBenGIVNp3yuyXlkHBYCCKH4QWPNoaHPxQFCnJLxIPls0cCHbHviWwuq80Q== 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=PY4km3YboOW91K5olEAD9X/uELWEnZnlSHjZVSMy9BH0L/jHrDjGQXbQfDR/9q8b1XSpeLg2Bt/LetblXSm5j0azgEBpJagmF03ZMoNs54oqRQvlU9gKxw0BZv/sGd5EfoGRA4HM3TNvrR6RLhRAnzDUNNfiGQIGWDJSWSppghgwrNc+lt51+oN+sqnSaMjqycS1VpLjzrc4Ey7Uiv1VzH0y9pqnWdpVoc9p2UJnWsEpBX/wGzkvHjkuUoeOrC5nuCzA9ja+C5Q5XVFPrtVe/+xVKlwFzJ6tqMK7JniBTR+HbxDTZS/lQk9k5xbGYjOr5DA5/vcKLZhu4qNZLjW61w== 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=iHfOIw+qJ7S/Xux5Nbhx3Nl9FooWw0kkrajPAWJoaPIFIvsLVXpmMVTknkY5JXm4X4tAWzVWKYhdQ1tAQ+DVVTSf7WNRTImXy5JrA90OyTwKJwC/nW+tncK/6eguivTFmID/Y26EG09guomdlR3NhiXWYpjGVHJUOqBQXcx2gQ8TlrbB/xYjpvmNpkJ0o6xaV5Ves8Xk8NDw2coUNmeXyNn6DyLJTx0dqZ46zRoO1HBEbgdZWPLx/5KdLa7SJw/tACmA0w6qrSfaPAyREDmwdJTMIPRZF3rGy40F4/qlCdeusYoD+YD8C8Pdd/k7XZ17a8Osa3rHFaMKOj8EMLQXbg== Received: from PA4PR03MB7136.eurprd03.prod.outlook.com (2603:10a6:102:ea::23) by AS4PR03MB8458.eurprd03.prod.outlook.com (2603:10a6:20b:519::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Tue, 8 Aug 2023 18:25:35 +0000 Received: from PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::ccb5:5aee:f10d:ab26]) by PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::ccb5:5aee:f10d:ab26%4]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 18:25:35 +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: [PATCH v4 1/4] firmware: arm_scmi: Add optional flags to extended names helper Thread-Topic: [PATCH v4 1/4] firmware: arm_scmi: Add optional flags to extended names helper Thread-Index: AQHZyiW5rkl1KYxbi0Wgd/91X3ABeg== Date: Tue, 8 Aug 2023 18:25:35 +0000 Message-ID: <318eb79c7e1ddb1f964a901e778a0475bf18c85b.1691518313.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_|AS4PR03MB8458:EE_ x-ms-office365-filtering-correlation-id: 7f130943-ae34-4d59-7275-08db983cdbb8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OHRHvAN4xfiBrM41iJSHkpeSywR837AuRs83aAZVH0AWGOsHzcFp7pZDvfavWazIy0jMKNU3BTZ65MrBt/fAJKUOmVuLZxb/CAXt8q6zF/9fWJqJi3+pbXsgMYjnNT1IjJPv/qkV+HAC27RETT9672CSYPEneG3moXDxH71QpD2aD6vsvJIQXiNvOERl8TIPkTYl/UOfm+GptkeV7BpNVFt/PkT3o6QYNu6kV9kprsNlQCtcfHO7ttOiYHRmUPlUzc2S+qyUC8IClgFdAuH6lPtKdLWd7tECV3CrNUfupaWGLUwiO/ZhWFw33cdyzQU6RAwQA/RTNPWik/KSTkSlNZxA9VLWsicdpABx9Aek8/ZQEGkb0MYC+qB+4aNPn6q9gjDEt+1Wrl5bPvUNfiM0N3NtvbfSyg1u1UkOdCgnUmXegGxj1SLcakgCmE99OBqysCrSrpRykCgI6lFsKZOHwjIHyLCBSNo0IuYWl+CPEgDBB6HPbP0Awt3SWzYVlwfbz+T7v27yAv2bmwEX4zj3w48cMXpMXUuAOhTczmmZXbc39YwN4f7yxSESszlW9Qcmx2tHCtn36MQLyOE6kodQULgNKGlYTEx3BwGqinnX73lvsNlqbhuZPtJ7HPVycHH8 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:(13230028)(4636009)(39860400002)(396003)(376002)(366004)(346002)(136003)(451199021)(1800799003)(186006)(7416002)(38070700005)(8936002)(8676002)(5660300002)(64756008)(4326008)(6916009)(41300700001)(316002)(83380400001)(86362001)(2906002)(6512007)(6486002)(71200400001)(2616005)(6506007)(26005)(36756003)(76116006)(66476007)(91956017)(66556008)(66946007)(66446008)(478600001)(122000001)(54906003)(38100700002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1jkEJ8og7DIZMAtuX5HVBTQ?= =?iso-8859-1?q?zFBn8ihwT0ZIWlSA9VdNSZ12UQQEyPJcbFXIrmmSzgHlFCujiR0R/IVmeA/v?= =?iso-8859-1?q?fkion6LjL1dlZLgQRftPz1aQFbNoQAP39NAnbinHzYumYT+RY/t0VEqLKG6Y?= =?iso-8859-1?q?ZdSuNDGJIzyvGZAwvvOMyrKXp6HNH3swZQRgEsT7lYTNeqbr5Ww0otMJgJGt?= =?iso-8859-1?q?YDeHm162AEn1/Qo9f6UiIaGjTzHqZyvMFiKLVga890O+oaq5FY9DIkYfnpPc?= =?iso-8859-1?q?5tLHQFl8VIKV44W0zIV0o6S8clKuYmvZsHVB77+9RuytK22JjdObMmImiMJn?= =?iso-8859-1?q?mEmULEcFL6BQJggxjBZdPITje2pcUdQZiUhC/v6qdEM2MOwn5Cb+pm5hV7KP?= =?iso-8859-1?q?77LDXcsnopmL6EzR48TF8+vt41UgPXCAXgxI0wd8U+bJ+C/sCjmdMTdSdLvh?= =?iso-8859-1?q?Q2FYOBuaVPH7q2EOW4eUS/LHu4OYkDr0AnLC5XjNzBqkmp14EPejrrBg04ym?= =?iso-8859-1?q?V/1IBzeLOLl9qCoGskj41HSGT5PH9grmPFf6fFQfk+l4Kd+N2mNEupRPIcNa?= =?iso-8859-1?q?VlewP8UG5EfIgSjH69h9E5BuyppOQQma6/6eZLP5nzBmNoisMKjBKRe6LuG6?= =?iso-8859-1?q?BO9sk2ShMr/HNuq4HzfpnFzMz7taZMWzA3yGFbsp8cFgAKo5AxzwmmuS/jAk?= =?iso-8859-1?q?FX1AzVsTj5MkoW0NcyU4nt7V49n8BjE9q0PVLllV5qRoZuRYa3aUgEaH59PP?= =?iso-8859-1?q?W1La1JZhatym1QlDrCnvHbdYOKrk/TKNpxd8akAUNm12uU1WcllAO4fH8Uba?= =?iso-8859-1?q?ZW+1+t4oh457kRm4QyUleuULHFpcyUjeuo7hpRJFqOisSqlUH/RGyeeeoxIs?= =?iso-8859-1?q?lSpQ8bUesowV4Iwyzn1seOZ4unnz4ffIrWlVlR48M0XoFcwFXSuQFja6H1Ov?= =?iso-8859-1?q?SHf6MYnau0o2FJkBh5J2MwrdGTgwLKPHlVaqpyZhmXs/XmdNv19fau8bHUEN?= =?iso-8859-1?q?LhaiWzHKwqApaFeVlpsk1ItEKRbAHfseLpibOkl+CTZ5t1GpyXhibUJ+zd3U?= =?iso-8859-1?q?CK5jIlS5OTgofhm1Af1m99jYL/Eagtfldx5GLMEQkMF2U8nLRZbVl2TORYUH?= =?iso-8859-1?q?LithGiwR7UqFdPsJRuORuvBYjnOGHO/jcjP8yOWcYeeZowxuOVhQJY0UhZ6+?= =?iso-8859-1?q?gtA0Jq8vOFAWm3A65unCrX4AjSdT1qhK1zGVrjgXOqXp/QEYYVolwmKD95r2?= =?iso-8859-1?q?WRmICl8YYwxm366j/iMKt9n+724Xr0x9G2Yc3kR6/9eoeAmzNM/ouSWtn1hL?= =?iso-8859-1?q?KJIr2gKQ1UKmlderBc4TKZrLWhIm+y/dDDway9K9cU9kCUOzaT40iZ/cvsc6?= =?iso-8859-1?q?D337V6RaX6W7xscwjGCiVeqAd36vrWMBwtEE4Wn2mj6y71tFy6QasJl1L3Uq?= =?iso-8859-1?q?Gpaw5qIhrsbHNQT5DnQSFRmCs5GbcGdbuZ+fF45YKh3KhsngL22lQNliPWSk?= =?iso-8859-1?q?w4893+dBYUjad2mH+EIA2+ifiUOU+z4QIDGo3aet2xUo8Svk4eQ1meMZiBCC?= =?iso-8859-1?q?Fr7HulHssANxqjMBmwtRWCCU0RoFTf40N+FivNAFvf8mA/L435H4b0wpvm6B?= =?iso-8859-1?q?MlLer7/HU3qW29jcaOKggMwZ5ngY74Y0YGI5IlQ=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: 7f130943-ae34-4d59-7275-08db983cdbb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2023 18:25:35.2439 (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: lSLfYJ1pUEQnctTvE7pQL5SDVVkwJlwr+v2rvT4p3KSPODfem3TrPGOXIZ9AfXCd4dTlRa8J9q6Mv8SUWkpMj/W0GRRASyOat5XdrVYE4A4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR03MB8458 X-Proofpoint-ORIG-GUID: TsTa_T6U3ZHwAWEuMa_mFDjaKvI4kGFf X-Proofpoint-GUID: TsTa_T6U3ZHwAWEuMa_mFDjaKvI4kGFf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-08_15,2023-08-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 malwarescore=0 suspectscore=0 clxscore=1015 priorityscore=1501 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308080163 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_112554_208090_91E7950B X-CRM114-Status: GOOD ( 16.69 ) 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;