mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
usb: s3c-hsotg: Fix maximum patcket size setting for EP0
MPS field of DOEPCTL0 is read only. Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
f7a83fe193
commit
659ad60cb9
@ -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));
|
||||||
|
|
||||||
reg = readl(regs + S3C_DOEPCTL(ep));
|
if (ep) {
|
||||||
reg &= ~S3C_DxEPCTL_MPS_MASK;
|
reg = readl(regs + S3C_DOEPCTL(ep));
|
||||||
reg |= mpsval;
|
reg &= ~S3C_DxEPCTL_MPS_MASK;
|
||||||
writel(reg, regs + S3C_DOEPCTL(ep));
|
reg |= mpsval;
|
||||||
|
writel(reg, regs + S3C_DOEPCTL(ep));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user