From 1a16d749fdf2fc250f83e3f591629be41b067eff Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Fri, 12 Nov 2021 16:18:52 -0600 Subject: Revert "usb_api.h: Stub usb_wake if CONFIG_USB_REMOTE_WAKEUP is not defined" This reverts commit 1ba0395a18c02dfbdc66f8b0f5fa930353b26705. BUG=b:200823466 TEST=make buildall -j Change-Id: Iabc46228203ea11dac845570a17c0d0944ba7646 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285829 Reviewed-by: Vadim Sukhomlinov --- include/usb_api.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/usb_api.h b/include/usb_api.h index c32515a92d..740d6b7c06 100644 --- a/include/usb_api.h +++ b/include/usb_api.h @@ -61,16 +61,12 @@ void usb_save_suspended_state(void); void usb_restore_suspended_state(void); /* - * Tell the host to wake up. Does nothing if CONFIG_USB_REMOTE_WAKEUP is not - * defined. + * 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. */ -#ifdef CONFIG_USB_REMOTE_WAKEUP void usb_wake(void); -#else -static inline void usb_wake(void) {} -#endif /* Board-specific USB wake, for side-band wake, called by usb_wake above. */ void board_usb_wake(void); -- cgit v1.2.1