firmware: arm_scmi: Relax duplicate name constraint across protocol ids
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 31 Jan 2025 14:18:20 +0000 (14:18 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 3 Feb 2025 10:50:11 +0000 (10:50 +0000)
commit21ee965267bcbdd733be0f35344fa0f0226d7861
tree1042ea7d3d375de5cdde22332e9b4435f399e232
parent2014c95afecee3e76ca4a56956a936e23283f05b
firmware: arm_scmi: Relax duplicate name constraint across protocol ids

Currently in scmi_protocol_device_request(), no duplicate scmi device
name is allowed across any protocol. However scmi_dev_match_id() first
matches the protocol id and then the name. So, there is no strict
requirement to keep this scmi device name unique across all the protocols.

Relax the constraint on the duplicate name across the protocols and
inhibit only within the same protocol id.

Message-Id: <20250131141822.514342-1-sudeep.holla@arm.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/bus.c