From 694313785a7f035d2a9f99139a058659925cb494 Mon Sep 17 00:00:00 2001 From: Deepak Kumar Singh Date: Thu, 26 Nov 2020 22:21:52 +0530 Subject: [PATCH] rpmsg: qcom_smd: allow smd create device if remote state is closing Some remote edge initial rx channel state is set to CLOSING, in this scenario, allow creation of smd device for this edge. Change-Id: I5937b8f2451630c9ecbe8627ab8817a4ce00e673 Signed-off-by: Suresh Kumar Allam Signed-off-by: Deepak Kumar Singh --- drivers/rpmsg/qcom_smd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index 4abbeea782fa..e8a274513c46 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -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 @@ -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)