From 9e33d6ce3c6c0a8de24dd6afa71f2adc255a156b Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Thu, 10 Aug 2017 14:36:30 +0800 Subject: chip/stm32/usb: Replace reset handler by generic event handler Some USB interface handlers need to know when USB has been successfully resumed after a wake event. For example, this is useful so that HID keyboard can send the events at the right time. BRANCH=none BUG=b:35775048 TEST=Using USB HID keyboard patches to queue keys in a FIFO: After USB autosuspends, press a single key and hold it. Without this patch the endpoint data only gets reloaded on the _next_ event. TEST=On hammer, I2C passthrough still works. Change-Id: I9b52b9de16767c8a66c702a5ae70369334a3d590 Signed-off-by: Nicolas Boichat Reviewed-on: https://chromium-review.googlesource.com/569547 Reviewed-by: Vincent Palatin --- board/sweetberry/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/sweetberry') diff --git a/board/sweetberry/board.c b/board/sweetberry/board.c index d05bb70bf4..8131eb9b18 100644 --- a/board/sweetberry/board.c +++ b/board/sweetberry/board.c @@ -17,8 +17,8 @@ #include "update_fw.h" #include "usb_descriptor.h" #include "util.h" -#include "usb_dwc_hw.h" #include "usb_dwc_console.h" +#include "usb_hw.h" #include "usb_power.h" #include "usb_dwc_update.h" -- cgit v1.2.1