Skip to content

Commit

Permalink
rpmsg: smd: allow opening rpm_requests even if already opened
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Luca Weiss authored and Bjorn Andersson committed Mar 11, 2022
1 parent 9d85fb7 commit a8f8cc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/rpmsg/qcom_smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,9 +1288,14 @@ static void qcom_channel_state_worker(struct work_struct *work)
if (channel->state != SMD_CHANNEL_CLOSED)
continue;

/*
* Always open rpm_requests, even when already opened which is
* required on some SoCs like msm8953.
*/
remote_state = GET_RX_CHANNEL_INFO(channel, state);
if (remote_state != SMD_CHANNEL_OPENING &&
remote_state != SMD_CHANNEL_OPENED)
remote_state != SMD_CHANNEL_OPENED &&
strcmp(channel->name, "rpm_requests"))
continue;

if (channel->registered)
Expand Down

0 comments on commit a8f8cc6

Please sign in to comment.