usb_gadget: to support diag mode for ffs 84/267484/1 accepted/tizen/6.5/unified/20211208.210726 submit/tizen_6.5/20211206.061419 submit/tizen_6.5/20211207.004049 submit/tizen_6.5/20211208.053650
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 6 Dec 2021 06:15:48 +0000 (15:15 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 6 Dec 2021 06:31:59 +0000 (06:31 +0000)
gems requires diag mode, which should operate in ffs.

Change-Id: I9ee7714c016add5ef42abb0b6fc03f1e0a1266bf
(cherry picked from commit 5e7ac0009024f529bee10090e7a56efb568d4c69)

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);