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: Ramon Fried <ramon.fried@gmail.com>
lime2-spi
Ramon Fried 6 years ago committed by Tom Rini
parent aa043ee91a
commit 30b3241368
  1. 3
      drivers/usb/gadget/ci_udc.c

@ -906,7 +906,8 @@ static int ci_pullup(struct usb_gadget *gadget, int is_on)
writel(0xffffffff, &udc->epflush);
/* 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 {
udc_disconnect();
}

Loading…
Cancel
Save