From 07969a576221e13c26d54f5dba169fe7ca52a0da Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Fri, 26 Mar 2021 10:08:05 +0900 Subject: Fix logic to skip USB reset interrupt caused by sdb Change-Id: Icc742be0a244bb575f59a8c41792cc1871a3b674 Signed-off-by: Jihoon Jung --- src/mtp_usb_driver_ffs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mtp_usb_driver_ffs.c b/src/mtp_usb_driver_ffs.c index 5c135b3..edd215a 100644 --- a/src/mtp_usb_driver_ffs.c +++ b/src/mtp_usb_driver_ffs.c @@ -430,11 +430,15 @@ static void *ffs_transport_thread_usb_control(void *arg) __setup(g_usb_ep0, &event.u.setup); break; case FUNCTIONFS_ENABLE: - DBG("ENABLE"); + DBG("ENABLE : skip this event"); + case FUNCTIONFS_DISABLE: + DBG("DISABLE : skip this event"); + case FUNCTIONFS_BIND: + DBG("BIND"); _util_set_local_usb_status(MTP_PHONE_USB_CONNECTED); break; - case FUNCTIONFS_DISABLE: - DBG("DISABLE"); + case FUNCTIONFS_UNBIND: + DBG("UNBIND"); _util_set_local_usb_status(MTP_PHONE_USB_DISCONNECTED); _eh_send_event_req_to_eh_thread(EVENT_USB_REMOVED, 0, 0, NULL); break; -- cgit v1.2.3