diff options
author | Harald Welte <laforge@osmocom.org> | 2019-12-15 17:20:34 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-15 17:25:13 +0100 |
commit | b0b457df637dff115893affb68a244e2806332cf (patch) | |
tree | 67f9b2ffa5e844a77aa7f4f1219c3c0c23b6b106 | |
parent | ad117091cafcfae5cbfdd37ddca727f3b940a8c4 (diff) |
USBD_HAL: Don't disable UDP peripheral clock on suspend
Change-Id: I2169e2140762b37661f4567bb148326afd85cddc
Closes: OS#4329
-rw-r--r-- | firmware/atmel_softpack_libraries/libchip_sam3s/source/USBD_HAL.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/atmel_softpack_libraries/libchip_sam3s/source/USBD_HAL.c b/firmware/atmel_softpack_libraries/libchip_sam3s/source/USBD_HAL.c index 3fe3270..0eccc65 100644 --- a/firmware/atmel_softpack_libraries/libchip_sam3s/source/USBD_HAL.c +++ b/firmware/atmel_softpack_libraries/libchip_sam3s/source/USBD_HAL.c @@ -1687,7 +1687,10 @@ void USBD_HAL_Suspend(void) /* The device enters the Suspended state */ UDP_DisableTransceiver(); UDP_DisableUsbClock(); - UDP_DisablePeripheralClock(); + /* Don't disable peripheral clock; this somehow breaks completion of any IN transfers + * that have already been written to the peripheral, and which we expect to complete + * after resume */ + //UDP_DisablePeripheralClock(); } /** |