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

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

Merge "usb: gsi: Allow suspend upon previous suspend failure in gsi_suspend"

parents 44abfd81 326c88e3
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2570,8 +2570,12 @@ static void gsi_suspend(struct usb_function *f)
	bool block_db;
	struct f_gsi *gsi = func_to_gsi(f);

	/* Check if function is already suspended in gsi_func_suspend() */
	if (gsi->func_is_suspended) {
	/* Check if function is already suspended in gsi_func_suspend()
	 * Or func_suspend would have bailed out earlier if func_remote_wakeup
	 * wasn't enabled.
	 */
	if (gsi->func_is_suspended && (gsi->d_port.sm_state == STATE_SUSPENDED ||
			gsi->d_port.sm_state == STATE_SUSPEND_IN_PROGRESS)) {
		log_event_dbg("%s: func already suspended, return\n", __func__);
		return;
	}