提交 a8f8cc6b 编写于 作者: L Luca Weiss 提交者: Bjorn Andersson

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: NLuca Weiss <luca@z3ntu.xyz>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220220201909.445468-6-luca@z3ntu.xyz
上级 9d85fb73
...@@ -1288,9 +1288,14 @@ static void qcom_channel_state_worker(struct work_struct *work) ...@@ -1288,9 +1288,14 @@ static void qcom_channel_state_worker(struct work_struct *work)
if (channel->state != SMD_CHANNEL_CLOSED) if (channel->state != SMD_CHANNEL_CLOSED)
continue; 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); remote_state = GET_RX_CHANNEL_INFO(channel, state);
if (remote_state != SMD_CHANNEL_OPENING && if (remote_state != SMD_CHANNEL_OPENING &&
remote_state != SMD_CHANNEL_OPENED) remote_state != SMD_CHANNEL_OPENED &&
strcmp(channel->name, "rpm_requests"))
continue; continue;
if (channel->registered) if (channel->registered)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册