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

Commit ccb34a91 authored by Mian Yousaf Kaukab's avatar Mian Yousaf Kaukab Committed by Felipe Balbi
Browse files

usb: dwc2: gadget: fix debug message for zlp



Print debug message according to zlp direction. Always saying
"Sending" is misleading.

Tested-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 86e37bf9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1335,7 +1335,12 @@ static void s3c_hsotg_program_zlp(struct dwc2_hsotg *hsotg,
	u32 epctl_reg = hs_ep->dir_in ? DIEPCTL(index) : DOEPCTL(index);
	u32 epsiz_reg = hs_ep->dir_in ? DIEPTSIZ(index) : DOEPTSIZ(index);

	dev_dbg(hsotg->dev, "Sending zero-length packet on ep%d\n", index);
	if (hs_ep->dir_in)
		dev_dbg(hsotg->dev, "Sending zero-length packet on ep%d\n",
									index);
	else
		dev_dbg(hsotg->dev, "Receiving zero-length packet on ep%d\n",
									index);

	writel(DXEPTSIZ_MC(1) | DXEPTSIZ_PKTCNT(1) |
			DXEPTSIZ_XFERSIZE(0), hsotg->regs +