[DONOTMERGE] [NOTEVENRFC] [PATCH 02/11] net: qrtr: mhi: pass endpoint ID to MHI device on init
Mihai Moldovan
ionic at ionic.de
Mon Nov 4 23:06:16 PST 2024
This is the simple QRTR part of the ugly endpoint ID "IPC" hack.
On initialization, which is currently only implemented for the MHI
backend, the endpoint ID is written to the MHI device's MHI controller.
Signed-off-by: Mihai Moldovan <ionic at ionic.de>
---
net/qrtr/mhi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c
index 9a23c888e234..942b65a494e2 100644
--- a/net/qrtr/mhi.c
+++ b/net/qrtr/mhi.c
@@ -104,6 +104,10 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
if (device_create_file(&mhi_dev->dev, &dev_attr_endpoint) < 0)
dev_err(qdev->dev, "Failed to create endpoint attribute\n");
+ /* Pass endpoint ID to mhi_dev. */
+ dev_dbg(qdev->dev, "setting qdev->ep.id = %u as qrtr_endpoint_id for mhi_dev = %p\n", qdev->ep.id, mhi_dev);
+ mhi_set_qrtr_endpoint_id(mhi_dev, qdev->ep.id);
+
/* start channels */
rc = mhi_prepare_for_transfer_autoqueue(mhi_dev);
if (rc) {
--
2.45.2
More information about the ath11k
mailing list