usb_gadget: to support diag mode for ffs 83/267483/1 accepted/tizen/unified/20211207.133144 submit/tizen/20211206.061425
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 6 Dec 2021 06:15:48 +0000 (15:15 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Mon, 6 Dec 2021 06:19:01 +0000 (15:19 +0900)
gems requires diag mode, which should operate in ffs.

Change-Id: I9ee7714c016add5ef42abb0b6fc03f1e0a1266bf

src/usb_gadget/usb_gadget_common.c

index 2088dd2..5d0ffb0 100644 (file)
@@ -278,7 +278,7 @@ DEFINE_USB_FUNCTION(USB_FUNCTION_MTP,         mtp,         1, "mtp-responder", N
 DEFINE_USB_FUNCTION(USB_FUNCTION_ACM,         acm,         0, "data-router",   NULL);
 DEFINE_USB_FUNCTION(USB_FUNCTION_SDB,         sdb,         1, "sdbd",          NULL);
 DEFINE_USB_FUNCTION(USB_FUNCTION_RNDIS,       rndis,       0, "sshd",          rndis_handler);
-DEFINE_USB_FUNCTION(USB_FUNCTION_DIAG,        diag,        0, NULL,            NULL);
+DEFINE_USB_FUNCTION(USB_FUNCTION_DIAG,        diag,        1, "diag",          NULL);
 DEFINE_USB_FUNCTION(USB_FUNCTION_CONN_GADGET, conn_gadget, 0, NULL,            NULL);
 DEFINE_USB_FUNCTION(USB_FUNCTION_DM,          dm,          0, NULL,            NULL);
 DEFINE_USB_FUNCTION(USB_FUNCTION_RMNET,       rmnet,       0, NULL,            NULL);