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

Commit cc3a1ee1 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: usb_bam: Update USB IPA consumer pipe index



Currently USB IPA consumer pipe and producer pipe index are updated
after getting only producer IPA index from IPA port mapping which
leaves consumer IPA index set as zero. Hence USB IPA DL communcation
doesn't work due to mismatch of this pipe index. Hence update USB IPA
consumer index once inquring the same from IPA driver.

Change-Id: I9fe63f476cd6c8f148345a0e08dedc449814ed4a
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 476d3b16
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -299,7 +299,6 @@ static void bam2bam_data_connect_work(struct work_struct *w)
		}

		d_port->ipa_consumer_ep = d->ipa_params.ipa_cons_ep_idx;
		d_port->ipa_producer_ep = d->ipa_params.ipa_prod_ep_idx;

		if (gadget_is_dwc3(gadget)) {
			u8 idx;
@@ -331,6 +330,12 @@ static void bam2bam_data_connect_work(struct work_struct *w)
				__func__, ret);
			return;
		}

		d_port->ipa_producer_ep = d->ipa_params.ipa_prod_ep_idx;
		pr_debug("%s(): ipa_producer_ep:%d ipa_consumer_ep:%d\n",
				__func__, d_port->ipa_producer_ep,
				d_port->ipa_consumer_ep);

		if (gadget_is_dwc3(gadget)) {
			u8 idx;