diff mbox series

qmi: add QRTR services to the queue

Message ID 20240228160239.148583-1-steve.schrock@getcruise.com (mailing list archive)
State Accepted
Commit 5a37098fa47c7d0951adb677cf22f76fc3161cc4
Headers show
Series qmi: add QRTR services to the queue | expand

Commit Message

Steve Schrock Feb. 28, 2024, 4:02 p.m. UTC
---
 drivers/qmimodem/qmi.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

patchwork-bot+ofono@kernel.org Feb. 28, 2024, 4:40 p.m. UTC | #1
Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:

On Wed, 28 Feb 2024 16:02:39 +0000 you wrote:
> ---
>  drivers/qmimodem/qmi.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Here is the summary with links:
  - qmi: add QRTR services to the queue
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=5a37098fa47c

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c
index 3eead9dc..ffb26326 100644
--- a/drivers/qmimodem/qmi.c
+++ b/drivers/qmimodem/qmi.c
@@ -1957,8 +1957,19 @@  static void qrtr_handle_control_packet(struct qmi_device_qrtr *qrtr,
 	port = L_LE32_TO_CPU(packet->server.port);
 
 	if (cmd == QRTR_TYPE_NEW_SERVER) {
+		struct qmi_service_info info;
+
 		DBG("New server: Type: %d Version: %d Instance: %d Node: %d Port: %d",
 			type, version, instance, node, port);
+
+		memset(&info, 0, sizeof(info));
+		info.service_type = type;
+		info.qrtr_port = port;
+		info.qrtr_node = node;
+		info.major = version;
+		info.instance = instance;
+
+		__qmi_service_appeared(device, &info);
 	}
 }