]> Git Repo - linux.git/commitdiff
rpmsg: glink: Pass channel to qcom_glink_send_close_ack()
authorBjorn Andersson <[email protected]>
Tue, 6 Aug 2024 03:56:26 +0000 (20:56 -0700)
committerBjorn Andersson <[email protected]>
Mon, 12 Aug 2024 22:26:28 +0000 (15:26 -0700)
Align the qcom_glink_send_close_ack() arguments with other functions to
take the struct glink_channel, so that the upcoming tracepoint patch can
access the channel attributes.

Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Chris Lew <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
drivers/rpmsg/qcom_glink_native.c

index e764ea8a290cf917e6f0bb13c3a0e0c24707bbd2..ba0ea28df821615a9a7caeafafbc2e3da3e03433 100644 (file)
@@ -511,12 +511,12 @@ static void qcom_glink_send_close_req(struct qcom_glink *glink,
 }
 
 static void qcom_glink_send_close_ack(struct qcom_glink *glink,
-                                     unsigned int rcid)
+                                     struct glink_channel *channel)
 {
        struct glink_msg req;
 
        req.cmd = cpu_to_le16(GLINK_CMD_CLOSE_ACK);
-       req.param1 = cpu_to_le16(rcid);
+       req.param1 = cpu_to_le16(channel->rcid);
        req.param2 = 0;
 
        qcom_glink_tx(glink, &req, sizeof(req), NULL, 0, true);
@@ -1628,7 +1628,7 @@ static void qcom_glink_rx_close(struct qcom_glink *glink, unsigned int rcid)
        }
        channel->rpdev = NULL;
 
-       qcom_glink_send_close_ack(glink, channel->rcid);
+       qcom_glink_send_close_ack(glink, channel);
 
        spin_lock_irqsave(&glink->idr_lock, flags);
        idr_remove(&glink->rcids, channel->rcid);
This page took 0.05719 seconds and 4 git commands to generate.