Skip to content

Commit aaf20f8

Browse files
committed
Merge tag 'rpmsg-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux
Pull rpmsg update from Bjorn Andersson: "Correct GLINK driver's decoding of the CMD_OPEN message, as upper half of the second parameter encodes 'priority', and 'length' is only the lower half" * tag 'rpmsg-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: rpmsg: glink: use only lower 16-bits of param2 for CMD_OPEN name length
2 parents 08906ab + 06c59d9 commit aaf20f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/rpmsg/qcom_glink_native.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,8 @@ void qcom_glink_native_rx(struct qcom_glink *glink)
12041204
ret = qcom_glink_rx_open_ack(glink, param1);
12051205
break;
12061206
case GLINK_CMD_OPEN:
1207-
ret = qcom_glink_rx_defer(glink, param2);
1207+
/* upper 16 bits of param2 are the "prio" field */
1208+
ret = qcom_glink_rx_defer(glink, param2 & 0xffff);
12081209
break;
12091210
case GLINK_CMD_TX_DATA:
12101211
case GLINK_CMD_TX_DATA_CONT:

0 commit comments

Comments
 (0)