[PATCH v4 2/4] net: qrtr: Assign unique node id for MHI endpoints

Simon Horman horms at kernel.org
Mon Oct 26 10:25:34 PDT 2026


On Thu, Oct 22, 2026 at 07:43:08PM +0200, Manivannan Sadhasivam wrote:
> Now that the QRTR driver allows using the unique node id for each device,
> which is different from the node id received from the remote node, compute
> a unique node id using a new API, qrtr_host_node_id().
> 
> This API takes the 'index' parameter and adds it to QRTR_NODE_HOST_BASE.
> The base is chosen well above the node ids in use by the remote nodes, so
> that the host assigned ids never collide with the pre-existing ones.
> 
> Since the ids at and above the base now belong to the host, reject any
> packet carrying one as the source node id or as the node id of an
> announced server in qrtr_endpoint_post().
> 
> Finally, call the new API from MHI endpoint driver by passing the MHI
> controller index as the parameter. The MHI controller index is unique for
> each controller, thereby for each MHI endpoint device.
> 
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam at oss.qualcomm.com>
> ---
>  MAINTAINERS        |  1 +
>  include/net/qrtr.h | 22 ++++++++++++++++++++++
>  net/qrtr/af_qrtr.c |  9 +++++++++
>  net/qrtr/mhi.c     |  4 +++-
>  4 files changed, 35 insertions(+), 1 deletion(-)

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the ath11k mailing list