Commit 30b3241368aff899c56359f63214c164ed3fb3fb

Authored by Ramon Fried
Committed by Tom Rini
1 parent aa043ee91a

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

drivers/usb/gadget/ci_udc.c
... ... @@ -906,7 +906,8 @@
906 906 writel(0xffffffff, &udc->epflush);
907 907  
908 908 /* Turn on the USB connection by enabling the pullup resistor */
909   - writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RUN, &udc->usbcmd);
  909 + setbits_le32(&udc->usbcmd, USBCMD_ITC(MICRO_8FRAME) |
  910 + USBCMD_RUN);
910 911 } else {
911 912 udc_disconnect();
912 913 }