提交 30b32413 编写于 作者: R Ramon Fried 提交者: Tom Rini

usb:ci_udc: don't overwrite configuration on pullup

change writel to writebits32 in ci_pullup() in order
to keep phy configuration in tact.
Signed-off-by: NRamon Fried <ramon.fried@gmail.com>
上级 aa043ee9
...@@ -906,7 +906,8 @@ static int ci_pullup(struct usb_gadget *gadget, int is_on) ...@@ -906,7 +906,8 @@ static int ci_pullup(struct usb_gadget *gadget, int is_on)
writel(0xffffffff, &udc->epflush); writel(0xffffffff, &udc->epflush);
/* Turn on the USB connection by enabling the pullup resistor */ /* Turn on the USB connection by enabling the pullup resistor */
writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RUN, &udc->usbcmd); setbits_le32(&udc->usbcmd, USBCMD_ITC(MICRO_8FRAME) |
USBCMD_RUN);
} else { } else {
udc_disconnect(); udc_disconnect();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册