diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2019-12-30 16:21:12 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2019-12-30 07:31:03 +0000 |
commit | 386691704cee998ffd3cdaa9c9a75bce22c15b03 (patch) | |
tree | c7f996852aabd848aaee0edd8753569b159c35fc /hw/usb_cfs_client_common.c | |
parent | 17681546d1c465aff5bdc1763b07d91d4f98165d (diff) | |
download | libdevice-node-386691704cee998ffd3cdaa9c9a75bce22c15b03.tar.gz libdevice-node-386691704cee998ffd3cdaa9c9a75bce22c15b03.tar.bz2 libdevice-node-386691704cee998ffd3cdaa9c9a75bce22c15b03.zip |
Add USB_FUNCTION_GROUP_WITH_POST_SERVICE for cfs post service.submit/tizen_5.5/20191230.073843accepted/tizen/5.5/unified/20200102.013952
To support CFS acm and rndis mode, add new USB_FUNCTION_GROUP_WITH_POST_SERVICE mode.
Legacy mode : usb prepare --> usb enable --> start sdb, mtp, rndis, and data-router service
CFS sdb, mtp mode : usb prepare -> start sdb and mtp service -> usb enable
CFS acm, rndis mode : usb prepare -> usb enable -> start acm and rndis service
Change-Id: I7199636d0b2bcfeac068e1c1575e89926c8f7134
(cherry picked from commit 6312d5a191ccc31b8c20ec109d4e2e3ba8406899)
Diffstat (limited to 'hw/usb_cfs_client_common.c')
-rwxr-xr-x | hw/usb_cfs_client_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb_cfs_client_common.c b/hw/usb_cfs_client_common.c index 5d0ea75..8eff847 100755 --- a/hw/usb_cfs_client_common.c +++ b/hw/usb_cfs_client_common.c @@ -497,6 +497,7 @@ static bool cfs_is_function_supported(struct usb_client *usb, switch (func->function_group) { case USB_FUNCTION_GROUP_SIMPLE: + case USB_FUNCTION_GROUP_WITH_POST_SERVICE: ret = usbg_lookup_function_type(func->name); res = ret >= 0; break; @@ -702,6 +703,7 @@ static int cfs_set_gadget_config(struct cfs_client *cfs_client, switch (usb_func->function_group) { case USB_FUNCTION_GROUP_SIMPLE: + case USB_FUNCTION_GROUP_WITH_POST_SERVICE: type = usbg_lookup_function_type(usb_func->name); if (strlen(usb_func->instance) >= MAX_INSTANCE_LEN) return -ENAMETOOLONG; |