Skip to content

Commit 91adb34

Browse files
quic-bjorandeandersson
authored andcommitted
rpmsg: glink: Pass channel to qcom_glink_send_close_ack()
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 <quic_bjorande@quicinc.com> Reviewed-by: Chris Lew <quic_clew@quicinc.com> Link: https://lore.kernel.org/r/20240805-glink-tracepoints-v1-2-a5f3293fb09e@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 159c797 commit 91adb34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/rpmsg/qcom_glink_native.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,12 @@ static void qcom_glink_send_close_req(struct qcom_glink *glink,
511511
}
512512

513513
static void qcom_glink_send_close_ack(struct qcom_glink *glink,
514-
unsigned int rcid)
514+
struct glink_channel *channel)
515515
{
516516
struct glink_msg req;
517517

518518
req.cmd = cpu_to_le16(GLINK_CMD_CLOSE_ACK);
519-
req.param1 = cpu_to_le16(rcid);
519+
req.param1 = cpu_to_le16(channel->rcid);
520520
req.param2 = 0;
521521

522522
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)
16281628
}
16291629
channel->rpdev = NULL;
16301630

1631-
qcom_glink_send_close_ack(glink, channel->rcid);
1631+
qcom_glink_send_close_ack(glink, channel);
16321632

16331633
spin_lock_irqsave(&glink->idr_lock, flags);
16341634
idr_remove(&glink->rcids, channel->rcid);

0 commit comments

Comments
 (0)