--- zzzz-none-000/linux-5.4.213/net/qrtr/smd.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/qrtr/smd.c 2024-08-14 09:02:14.000000000 +0000 @@ -7,6 +7,7 @@ #include #include #include +#include #include "qrtr.h" @@ -60,6 +61,7 @@ { struct qrtr_smd_dev *qdev; int rc; + unsigned int net_id; qdev = devm_kzalloc(&rpdev->dev, sizeof(*qdev), GFP_KERNEL); if (!qdev) @@ -69,7 +71,11 @@ qdev->dev = &rpdev->dev; qdev->ep.xmit = qcom_smd_qrtr_send; - rc = qrtr_endpoint_register(&qdev->ep, QRTR_EP_NID_AUTO); + rc = of_property_read_u32(rpdev->dev.of_node, "qcom,net-id", &net_id); + if (rc < 0) + net_id = QRTR_EP_NET_ID_AUTO; + + rc = qrtr_endpoint_register(&qdev->ep, net_id); if (rc) return rc;