platform/hal/backend/device-common.git
2 years agousb-gadget: move usb-gadget to deviced 64/273664/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.062442 accepted/tizen/7.0/unified/hotfix/20221116.110359 accepted/tizen/8.0/unified/20231005.094444 accepted/tizen/unified/20220526.144003 submit/tizen/20220525.001052 tizen_7.0_m2_release tizen_8.0_m2_release
Youngjae Cho [Tue, 12 Apr 2022 00:24:59 +0000 (17:24 -0700)]
usb-gadget: move usb-gadget to deviced

Change-Id: I50188a374b64bf8e388668295756456f4afa7bbc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agousb-gadget: access external symbol using dlsym(), not extern keyword 25/272925/4 accepted/tizen/unified/20220331.010053 submit/tizen/20220328.084941
Youngjae Cho [Mon, 28 Mar 2022 05:07:25 +0000 (22:07 -0700)]
usb-gadget: access external symbol using dlsym(), not extern keyword

The variable declared as extern storage class must be resolved when the
symbol is loaded onto memory regardless of lazy binding. Therefore if
a symbol doesn't exist on being loaded, the whole library loading will
fail. To avoid this, explicitly load a symbol using dlsym(), which is
able to handle undefined symbol error.

This is mainly because the device-common shared library contains both
of udev and usb-gadget, making them always be loaded onto memory
together even if a caller only wants to use udev, not usb-gadget. This
structure should be revamped later.

Change-Id: Ia2bd7801123c812976ce79f0e0b880e6f1e67463
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agousb-gadget: introduce configurable usb-gadget 03/272503/2
Youngjae Cho [Fri, 18 Mar 2022 02:39:29 +0000 (11:39 +0900)]
usb-gadget: introduce configurable usb-gadget

Change-Id: I9e71df155d10c7d2a413546b97a2a6ab2993a50e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agousb_gadget: to support diag mode for ffs 83/267483/1 accepted/tizen/unified/20211207.133144 submit/tizen/20211206.061425
INSUN PYO [Mon, 6 Dec 2021 06:15:48 +0000 (15:15 +0900)]
usb_gadget: to support diag mode for ffs

gems requires diag mode, which should operate in ffs.

Change-Id: I9ee7714c016add5ef42abb0b6fc03f1e0a1266bf

2 years agoudev: change the name of udev monitor buffer size 33/261533/1 submit/tizen/20211103.072537
INSUN PYO [Wed, 21 Jul 2021 01:23:35 +0000 (10:23 +0900)]
udev: change the name of udev monitor buffer size

Change-Id: I31a9d54c6aab0ef09fb843dd9e40815e37f210a3

2 years agoBug fix 61/257861/6 accepted/tizen/6.5/unified/20211028.115403 accepted/tizen/unified/20210505.141432 submit/tizen/20210504.124833 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Youngjae Cho [Tue, 4 May 2021 10:10:13 +0000 (19:10 +0900)]
Bug fix

udev_control_kernel_start() can be invoked multiple times
from multiple hal-backend modules. Therefore do not return
error for duplicate invocation.

Change-Id: Icd3586aec4281ad23b39c26a21d7cff13a8ca80b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoChange include path for libsystemd.h 98/255598/1 accepted/tizen/unified/20210321.225711 submit/tizen/20210319.090004
Hyotaek Shim [Fri, 19 Mar 2021 10:38:47 +0000 (19:38 +0900)]
Change include path for libsystemd.h

Change-Id: Ia8546cb21b3f3c59a2160ba04617fb7dd8dc2f8b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agousb_gadget: use common header - EXPORT macro 49/253549/3 accepted/tizen/unified/20210219.134914 submit/tizen/20210217.060738 submit/tizen/20210218.041307
insun.pyo [Mon, 15 Feb 2021 08:35:14 +0000 (17:35 +0900)]
usb_gadget: use common header - EXPORT macro

Change-Id: I081bfc5252e718601325e6c243e739e79c88ebb5

3 years agoAdd udev files used in HAL 80/253680/2 submit/tizen/20210217.044338
lokilee73 [Tue, 16 Feb 2021 09:14:15 +0000 (18:14 +0900)]
Add udev files used in HAL

Change-Id: Id2ab1ea18209c255c0cbaf2081db19e9874436d2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agousb_gadget: use libsyscommon package 46/253546/1
insun.pyo [Mon, 15 Feb 2021 07:49:42 +0000 (16:49 +0900)]
usb_gadget: use libsyscommon package

funcs
 - sys_read_buf(), sys_write_buf(), sys_get_str()
 - sys_set_str(), sys_get_int(), sys_set_int()

Change-Id: I7f303d631d8154deeb64eef71ff7b1d487ccc1a3

3 years agoAdd hal-backend-device-common.h for common macro used in HAL 45/253445/8 accepted/tizen/unified/20210215.130858 submit/tizen/20210215.055935
lokilee73 [Wed, 10 Feb 2021 05:33:27 +0000 (14:33 +0900)]
Add hal-backend-device-common.h for common macro used in HAL

Change-Id: Ia5f36dd43fdb1928a0913957a876f70f71fea4b9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoChange file name of hal-common-interface.h to hal-backend-common-usb_gadget.h 12/253412/3
INSUN PYO [Wed, 10 Feb 2021 00:50:14 +0000 (09:50 +0900)]
Change file name of hal-common-interface.h to hal-backend-common-usb_gadget.h

/usr/include/hal/device/hal-common-interface.h ==> /hal/include/device/hal-common-interface.h

Change-Id: I754eaa873264a707dc420cc43a52a5384fed11d3

3 years agousb_gadget: apply next HAL architecture #3 57/252457/1 accepted/tizen/unified/20210201.130306 submit/tizen/20210201.022214
INSUN PYO [Thu, 28 Jan 2021 11:08:25 +0000 (20:08 +0900)]
usb_gadget: apply next HAL architecture #3

- support usb serial for sdb devices
   ---------------------------------------------------
    $ sdb devices
      List of devices attached
      530MWC2R10400764          device          artik
   ---------------------------------------------------

- remove temporary "BuildRequires:  pkgconfig(dlog)" dependency

Change-Id: Iae4944b6848efda105396d718ad7fb73a994cd4a

3 years agoApply rpm macro of hal install path 18/252218/3 accepted/tizen/unified/20210129.002315 submit/tizen/20210127.032903
Yunmi Ha [Tue, 26 Jan 2021 01:21:16 +0000 (10:21 +0900)]
Apply rpm macro of hal install path

Change-Id: I3aab6da90dce81e08af4ba15ba51a6d32aac2136
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agousb_gadget: apply next HAL architecture #2 04/252204/1
INSUN PYO [Mon, 25 Jan 2021 12:01:50 +0000 (21:01 +0900)]
usb_gadget: apply next HAL architecture #2

bug fix : legacy usb client

Change-Id: I615ffd167f127e45221ae6ffc01491a4a85193f9

3 years agousb_gadget: apply next HAL architecture 99/252099/7
INSUN PYO [Fri, 22 Jan 2021 10:03:19 +0000 (19:03 +0900)]
usb_gadget: apply next HAL architecture

Change-Id: Ie79da201e2aba0c6007b553f142713b3110872ab

3 years agoInitialization 66/252066/1
Hyotaek Shim [Fri, 22 Jan 2021 07:49:15 +0000 (16:49 +0900)]
Initialization

Change-Id: Ie86481b77efdb65ae4123dac1ee91441aa3f007a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoInitial empty repository master
Tizen Infrastructure [Fri, 22 Jan 2021 07:16:52 +0000 (07:16 +0000)]
Initial empty repository