From 6ca1c69f4c356ebb5028c11cd3d5d1fd2a92d85a Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 23 Sep 2010 10:24:23 +0000 Subject: [PATCH] usb-keyboard: acknowledge HID_REQ_SET_REPORT to the host This fixes the following connection timeout errors on Linux when reading the USB device details via lsusb -v: cannot read device status, Connection timed out (110) git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4269 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/usb_keyboard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bertos/drv/usb_keyboard.c b/bertos/drv/usb_keyboard.c index 63c39c57..46607f4a 100644 --- a/bertos/drv/usb_keyboard.c +++ b/bertos/drv/usb_keyboard.c @@ -238,6 +238,7 @@ static void usb_hid_event_cb(usb_ctrlrequest_t *ctrl) break; case HID_REQ_SET_REPORT: LOG_INFO("%s: HID_REQ_SET_REPORT\n", __func__); + usb_ep_write(USB_DIR_IN | 0, NULL, 0); break; case HID_REQ_GET_IDLE: LOG_INFO("%s: HID_REQ_GET_IDLE\n", __func__); -- 2.25.1