summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2021-03-26 10:08:05 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2021-03-26 10:08:05 +0900
commit07969a576221e13c26d54f5dba169fe7ca52a0da (patch)
tree3d66bbc05aa468288f39c4c580c1ce74d2037d00
parent79134800255293750ca6ed1b2ff661af25d8d3f8 (diff)
downloadmtp-responder-07969a576221e13c26d54f5dba169fe7ca52a0da.tar.gz
mtp-responder-07969a576221e13c26d54f5dba169fe7ca52a0da.tar.bz2
mtp-responder-07969a576221e13c26d54f5dba169fe7ca52a0da.zip
Fix logic to skip USB reset interrupt caused by sdbsubmit/tizen/20210328.225628accepted/tizen/unified/20210330.003634
Change-Id: Icc742be0a244bb575f59a8c41792cc1871a3b674 Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--src/mtp_usb_driver_ffs.c10
1 files 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;