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

Commit b888f0d0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 2fe944d1 f5f99cca
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)