Commit 659ad60c authored by Anton Tikhomirov's avatar Anton Tikhomirov Committed by Felipe Balbi
Browse files

usb: s3c-hsotg: Fix maximum patcket size setting for EP0



MPS field of DOEPCTL0 is read only.

Signed-off-by: default avatarAnton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f7a83fe1
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -1696,10 +1696,12 @@ static void s3c_hsotg_set_ep_maxpacket(struct s3c_hsotg *hsotg,
	reg |= mpsval;
	reg |= mpsval;
	writel(reg, regs + S3C_DIEPCTL(ep));
	writel(reg, regs + S3C_DIEPCTL(ep));


	if (ep) {
		reg = readl(regs + S3C_DOEPCTL(ep));
		reg = readl(regs + S3C_DOEPCTL(ep));
		reg &= ~S3C_DxEPCTL_MPS_MASK;
		reg &= ~S3C_DxEPCTL_MPS_MASK;
		reg |= mpsval;
		reg |= mpsval;
		writel(reg, regs + S3C_DOEPCTL(ep));
		writel(reg, regs + S3C_DOEPCTL(ep));
	}


	return;
	return;