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

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

Merge "usb: dwc3-msm: Rectify 64 bit dma address programming for GSI"

parents 49ba4133 3d14b2aa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -972,7 +972,7 @@ static int gsi_startxfer_for_ep(struct usb_ep *ep)
	memset(&params, 0, sizeof(params));
	params.param0 = GSI_TRB_ADDR_BIT_53_MASK | GSI_TRB_ADDR_BIT_55_MASK;
	params.param0 |= upper_32_bits(dwc3_trb_dma_offset(dep,
						&dep->trb_pool[0]) & 0xffff);
						&dep->trb_pool[0])) & 0xffff;
	params.param0 |= (ep->ep_intr_num << 16);
	params.param1 = lower_32_bits(dwc3_trb_dma_offset(dep,
						&dep->trb_pool[0]));
@@ -1247,7 +1247,7 @@ static int gsi_prepare_trbs(struct usb_ep *ep, struct usb_gsi_request *req)
			/* Set up the Link TRB at the end */
			if (i == (num_trbs - 1)) {
				trb->bpl = lower_32_bits(trb0_dma);
				trb->bph = upper_32_bits(trb0_dma & 0xffff);
				trb->bph = upper_32_bits(trb0_dma) & 0xffff;
				trb->bph |= (1 << 23) | (1 << 21)
						| (ep->ep_intr_num << 16);
				trb->size = 0;
@@ -1271,7 +1271,7 @@ static int gsi_prepare_trbs(struct usb_ep *ep, struct usb_gsi_request *req)
			} else if (i == (num_trbs - 1)) {
				/* Set up the Link TRB at the end */
				trb->bpl = lower_32_bits(trb0_dma);
				trb->bph = upper_32_bits(trb0_dma & 0xffff);
				trb->bph = upper_32_bits(trb0_dma) & 0xffff;
				trb->bph |= (1 << 23) | (1 << 21)
						| (ep->ep_intr_num << 16);
				trb->ctrl = DWC3_TRBCTL_LINK_TRB