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

Commit 71c81768 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: gadget: u_bam_data: Allow connect work to run once during resume"

parents 8e5b0313 d90a3136
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -886,6 +886,18 @@ static void bam2bam_data_connect_work(struct work_struct *w)
		return;
	}

	/*
	 * check if connect_w got called two times during RNDIS resume as
	 * explicit flow control is called to start data transfers after
	 * bam_data_connect()
	 */
	if (port->is_ipa_connected) {
		pr_debug("IPA connect is already done & Transfers started\n");
		spin_unlock_irqrestore(&port->port_lock, flags);
		usb_gadget_autopm_put_async(port->gadget);
		return;
	}

	d->ipa_params.usb_connection_speed = gadget->speed;
	d->ipa_params.cons_clnt_hdl = -1;
	d->ipa_params.prod_clnt_hdl = -1;