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

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

Merge "usb: f_gsi: Avoid starting transfer if disconnected"

parents 03a2ddb9 2b8d8a02
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -913,10 +913,12 @@ static void ipa_work_handler(struct work_struct *w)
								__func__);
				break;
			}
			ipa_connect_channels(d_port);

			d_port->sm_state = STATE_CONNECT_IN_PROGRESS;
			log_event_dbg("%s: ST_INIT_EVT_CONN_IN_PROG",
					__func__);
			if (peek_event(d_port) != EVT_DISCONNECTED)
				ipa_connect_channels(d_port);
		} else if (event == EVT_HOST_READY) {
			/*
			 * When in a composition such as RNDIS + ADB,