platform/hal/backend/device-common.git
2 years agousb-gadget: access external symbol using dlsym(), not extern keyword 43/272943/1 accepted/tizen/6.5/unified/20220330.000717 submit/tizen_6.5/20220328.084953
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>
(cherry picked from commit 8634169cbcf0ddbe90adbf7babf0ff37745d72d5)

2 years agousb-gadget: introduce configurable usb-gadget 21/272521/1
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>
(cherry picked from commit 2cac696825e5c4a44c9076366e6ce7c2a1debc08)

2 years agousb_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
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
(cherry picked from commit 5e7ac0009024f529bee10090e7a56efb568d4c69)

2 years agoudev: change the name of udev monitor buffer size 99/265899/1
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
(cherry picked from commit f6015ff0665cb78a7f5a57fee68d45d449f213fa)

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