summaryrefslogtreecommitdiff
path: root/hw/usb_cfs_client_common.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-28Add USB enable/disable handlersubmit/tizen_5.5/20200128.045317accepted/tizen/5.5/unified/20200129.120429tizen_5.5_tvINSUN PYO1-0/+6
Change-Id: I2a488ef551a3c92a36cfa428787cdfdd31f82cab (cherry picked from commit 2dbaad820b5f0ca6c9b59ac61c3c14460775f915)
2020-01-28Refactoring usb gadget for functionfssubmit/tizen_5.5/20200128.022624INSUN PYO1-41/+22
Change-Id: Ieb87a66543095a44773bdfba105c37b19b3b2cfa
2020-01-22Refactoring usb gadget headersubmit/tizen_5.5/20200122.234617accepted/tizen/5.5/unified/20200128.034023INSUN PYO1-26/+19
Merge "struct usb_function_witch_service" into "struct usb_function". Change-Id: I9ed616f7e5933594093e9a027dd7d56cf1b016c8 (cherry picked from commit c76e213a9ecef080b7dc3ae92105969e9d531deb)
2020-01-15Add code to run rndis.service(rndis) and data-route.service(acm) in configfs ↵submit/tizen_5.5/20200115.105138accepted/tizen/5.5/unified/20200116.120643INSUN PYO1-8/+44
environment Rndis and acm need their services to complete initialization. Change-Id: I24381f2e30a4cf1e3051ea4a304d65ad8eb59f50 Signed-off-by: INSUN PYO <insun.pyo@samsung.com> (cherry picked from commit c0fb89192952ca0806c26abddf5daf0e3f3acc30)
2020-01-15Fix memory leak in configfssubmit/tizen_5.5/20200115.084508accepted/tizen/5.5/unified/20200116.120701INSUN PYO1-1/+4
Change-Id: I4df7a7dcb55382a18b93a9bd3afbe909c20c6998 (cherry picked from commit 5a43d7f0d0e7edc87e4afc5c1aa6fbc03b5cf212)
2020-01-03Change file permission from "-rwxr-xr-x" to "-rw-r--r--"submit/tizen_5.5/20200103.025031accepted/tizen/5.5/unified/20200105.221131INSUN PYO1-0/+0
Change-Id: I8dc05a6e62fd0a6a10199639d4316e22823776cd (cherry picked from commit 8725dfd7e408db4f59c1722475d2d98c71d48741)
2019-12-30Add USB_FUNCTION_GROUP_WITH_POST_SERVICE for cfs post service.submit/tizen_5.5/20191230.073843accepted/tizen/5.5/unified/20200102.013952INSUN PYO1-0/+2
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)
2019-09-16usb_cfs_client: Enable gadget at reconfiguration #2submit/tizen/20191001.105102INSUN PYO1-3/+14
Because it is a workround code for Artik, restrict this patch to artik. (This workaround will be removed in tizen 6.0) Change-Id: Ice81dd8c37359bdc4a37099ecff27d696f7f9ec0 Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
2019-04-10Change libgdbus library name to libsyscommon.submit/tizen/20190410.090025accepted/tizen/unified/20190412.124555Yunmi Ha1-1/+1
Change-Id: I3611395b38a3858d0838ddf94dc12e958fd91856 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2019-03-25Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()submit/tizen/20190325.102033accepted/tizen/unified/20190326.024559Hyotaek Shim1-3/+3
Change-Id: I94d972c7dc68d9e6b246702b9217d0b92c908d0c Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2019-02-08dbus: remove systemd start/stop unit apisanghyeok.oh1-5/+5
Change-Id: Ic498a2c56ffaccdcacf2c01d5d20a169fc5324cf Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
2018-11-19Fix some static analysis warnings.submit/tizen/20181120.234806accepted/tizen/unified/20181121.060510Michal Bloch1-4/+1
Change-Id: I632bd9813094ade3b03dadd7d21bc62dc2152710 Signed-off-by: Michal Bloch <m.bloch@samsung.com>
2018-10-15usb: Move ffs services cleanup to hw_cfs_gadget_closesubmit/tizen/20181015.121248Paweł Szewczyk1-25/+25
Change-Id: I1fc61542b8228ff038b64ee1df3cd5b6c3947a1c Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-10-12usb_client: Cleanup ffs services at gadget disablesubmit/tizen/20181015.022811Paweł Szewczyk1-0/+25
Each functionfs daemon spawned at gadget initialization should be closed before functionfs can be succesfully cleaned up. Change-Id: I97654fa882f5b7346e5aee3aedd3ea00e50fcb47 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-29usb_cfs_client: Enable gadget at reconfigurationPaweł Szewczyk1-0/+5
This workaround was introduced on artik, where gadget need to be enabled before usb connection can be properly monitored. As this does little harm, it's moved here to prevent regression on artik. The side effect of this is starting some functionfs daemons long before they are actually needed, so this should be removed when exton issue is fixed. Change-Id: Ia41c21e3c44d7d3a00d557f181e8c22766c6f31b Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Add common code from usb_client HALPaweł Szewczyk1-0/+916
Change-Id: I863b5e9757f943eb6659e939118b9c03e22c8229 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>