Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5f99cca authored by Deepak Kumar Singh's avatar Deepak Kumar Singh Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSuresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: default avatarDeepak Kumar Singh <deesin@codeaurora.org>
parent 566edd21
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// 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)