Merge "rpmsg: qcom_smd: allow smd create device if remote state is closing"

This commit is contained in:
qctecmdr 2020-11-27 11:18:49 -08:00 • committed by Gerrit - the friendly Code Review server
commit 7347dcaedb

View file

@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2015, Sony Mobile Communications AB.
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, 2020 The Linux Foundation. All rights reserved.
*/
#include <linux/interrupt.h>
@ -1274,7 +1274,8 @@ static void qcom_channel_state_worker(struct work_struct *work)
remote_state = GET_RX_CHANNEL_INFO(channel, state);
if (remote_state != SMD_CHANNEL_OPENING &&
remote_state != SMD_CHANNEL_OPENED)
remote_state != SMD_CHANNEL_OPENED &&
remote_state != SMD_CHANNEL_CLOSING)
continue;
if (channel->registered)