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

Commit 9d94ec85 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

USB: gadget: u_bam: Don't set length for TX endless req for USB2



Currently driver is setting endless request length for USB IN endpoint
for USB2 controller case. For USB2 controller, length shouldn't be set
to 32KB, otherwise BAM2BAM connection will fail. Hence fix the issue by
not setting endless request length for USB2.

Change-Id: I1da72da866ac4e9007c3d57545978111031de653
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent fb8a39c1
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1423,7 +1423,6 @@ static void gbam2bam_connect_work(struct work_struct *w)
		/* Configure for TX */
		/* Configure for TX */
		sps_params = (MSM_SPS_MODE | d->dst_pipe_idx |
		sps_params = (MSM_SPS_MODE | d->dst_pipe_idx |
				MSM_VENDOR_ID) & ~MSM_IS_FINITE_TRANSFER;
				MSM_VENDOR_ID) & ~MSM_IS_FINITE_TRANSFER;
		d->tx_req->length = 32*1024;
		d->tx_req->udc_priv = sps_params;
		d->tx_req->udc_priv = sps_params;


	}
	}