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

Commit 623a4116 authored by Bar Weiner's avatar Bar Weiner
Browse files

usb: bam: Reset USB BAM on connect



usb_bam_connect_ipa() function is first called for
the UL data path, which is currently done in SW mode.
Because of that, "bam2bam" is false, which means that
the reset sequence is never executed.
With this fix, the BAM reset will always be executed
for the first pipe, regardless of its type.

Change-Id: I9635040a5fd71f2602b444c9ebe4519cbcb0f602
Signed-off-by: default avatarBar Weiner <bweiner@codeaurora.org>
parent 47d53bf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2105,7 +2105,7 @@ int usb_bam_connect_ipa(struct usb_bam_connect_ipa_params *ipa_params)
	 /* Check if BAM requires RESET before connect and reset first pipe */
	 spin_lock(&usb_bam_lock);
	 if ((pdata->reset_on_connect[cur_bam] == true) &&
	     (ctx.pipes_enabled_per_bam[cur_bam] == 0) && bam2bam) {
	     (ctx.pipes_enabled_per_bam[cur_bam] == 0)) {
		spin_unlock(&usb_bam_lock);

		if (cur_bam != HSIC_CTRL)