We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c782c9 commit 5c5fea7Copy full SHA for 5c5fea7
drivers/usb/chipidea/udc.c
@@ -84,7 +84,7 @@ static int hw_device_state(struct ci_hdrc *ci, u32 dma)
84
hw_write(ci, OP_ENDPTLISTADDR, ~0, dma);
85
/* interrupt, error, port change, reset, sleep/suspend */
86
hw_write(ci, OP_USBINTR, ~0,
87
- USBi_UI|USBi_UEI|USBi_PCI|USBi_URI|USBi_SLI);
+ USBi_UI|USBi_UEI|USBi_PCI|USBi_URI);
88
} else {
89
hw_write(ci, OP_USBINTR, ~0, 0);
90
}
@@ -868,6 +868,7 @@ __releases(ci->lock)
868
__acquires(ci->lock)
869
{
870
int retval;
871
+ u32 intr;
872
873
spin_unlock(&ci->lock);
874
if (ci->gadget.speed != USB_SPEED_UNKNOWN)
@@ -881,6 +882,11 @@ __acquires(ci->lock)
881
882
if (retval)
883
goto done;
884
885
+ /* clear SLI */
886
+ hw_write(ci, OP_USBSTS, USBi_SLI, USBi_SLI);
887
+ intr = hw_read(ci, OP_USBINTR, ~0);
888
+ hw_write(ci, OP_USBINTR, ~0, intr | USBi_SLI);
889
+
890
ci->status = usb_ep_alloc_request(&ci->ep0in->ep, GFP_ATOMIC);
891
if (ci->status == NULL)
892
retval = -ENOMEM;
0 commit comments