interconnect: core: Add dynamic id allocation support
authorRaviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Tue, 15 Apr 2025 09:53:38 +0000 (09:53 +0000)
committerGeorgi Djakov <djakov@kernel.org>
Tue, 15 Apr 2025 11:13:36 +0000 (14:13 +0300)
commitd30f83d278a921485b3e877d03fe937bccfcbcdd
tree2f7db1449a3296a327738f732cdfe8826b1cb389
parent289198fb51420def0f6fa88ed5808d0d38120ad0
interconnect: core: Add dynamic id allocation support

The current interconnect framework relies on static IDs for node
creation and registration, which limits topologies with multiple
instances of the same interconnect provider. To address this,
introduce icc_node_create_dyn() and icc_link_nodes() APIs to
dynamically allocate IDs for interconnect nodes during creation
and link. This change removes the dependency on static IDs,
allowing multiple instances of the same hardware, such as EPSS L3.

Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Link: https://lore.kernel.org/r/20250415095343.32125-3-quic_rlaggysh@quicinc.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h
include/linux/interconnect.h