Skip to content

Commit a8f8cc6

Browse files
z3ntuandersson
authored andcommitted
rpmsg: smd: allow opening rpm_requests even if already opened
On msm8953 the channel seems to be already opened when booting Linux but we still need to open it for communication with regulators etc. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220220201909.445468-6-luca@z3ntu.xyz
1 parent 9d85fb7 commit a8f8cc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/rpmsg/qcom_smd.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,9 +1288,14 @@ static void qcom_channel_state_worker(struct work_struct *work)
12881288
if (channel->state != SMD_CHANNEL_CLOSED)
12891289
continue;
12901290

1291+
/*
1292+
* Always open rpm_requests, even when already opened which is
1293+
* required on some SoCs like msm8953.
1294+
*/
12911295
remote_state = GET_RX_CHANNEL_INFO(channel, state);
12921296
if (remote_state != SMD_CHANNEL_OPENING &&
1293-
remote_state != SMD_CHANNEL_OPENED)
1297+
remote_state != SMD_CHANNEL_OPENED &&
1298+
strcmp(channel->name, "rpm_requests"))
12941299
continue;
12951300

12961301
if (channel->registered)

0 commit comments

Comments
 (0)