diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-12 16:20:07 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:56:29 +0000 |
commit | bb112fc19e67b92c3ac8eddf533dbdc16c4723da (patch) | |
tree | 6aee47520cb1e973537f3f2ee109bcabc4604e3a | |
parent | 0b0107abecf861d9b802c94f692eff3e4997d352 (diff) | |
download | chrome-ec-bb112fc19e67b92c3ac8eddf533dbdc16c4723da.tar.gz |
Revert "chip/stm32/usb: More reliable implementation of usb_wake"
This reverts commit 520bd3f6ad2098e6969dd353350e2e2281f28989.
BUG=b:200823466
TEST=make buildall -j
Change-Id: Ie94334d0151f9f4755ec0937e7fcb04deed8b0a7
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285831
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
-rw-r--r-- | include/usb_api.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/usb_api.h b/include/usb_api.h index 27326a7289..62e8d66740 100644 --- a/include/usb_api.h +++ b/include/usb_api.h @@ -43,12 +43,6 @@ void usb_disconnect(void); void usb_release(void); /* - * Returns true if USB device is currently suspended. - * Requires CONFIG_USB_SUSPEND to be defined. - */ -int usb_is_suspended(void); - -/* * Preserve in non-volatile memory the state of the USB hardware registers * which cannot be simply re-initialized when powered up again. */ @@ -64,7 +58,7 @@ void usb_restore_suspended_state(void); * Tell the host to wake up. Requires CONFIG_USB_REMOTE_WAKEUP to be defined, * and a chip that implements the function. * - * Returns immediately, suspend status can be checked using usb_is_suspended. + * This function sleeps, so it must not be used in interrupt context. */ void usb_wake(void); |