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

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

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

parents 067d2851 aba05b35
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2515,8 +2515,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 (f->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 (f->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;
	}