summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-09-12power: Add return value check and file descriptor handling codetizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20241014.000203accepted/tizen/unified/x/20240919.040607accepted/tizen/unified/toolchain/20241004.101827accepted/tizen/unified/dev/20240919.040413accepted/tizen/unified/20240913.101427accepted/tizen/9.0/unified/20241030.234707tizen_9.0tizenaccepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedYunhee Seo1-13/+24
To avoid abnormal behavior and segmentation fault issue, handling code is added. - Memory allocation fail case - File descriptor close handling - Uninitialized pointer variable handling Change-Id: Id2ed9e369d8aefe3254b98d4e8953f7c6d741f0e Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2024-08-27Use only hal-rootstrap package to buildaccepted/tizen/unified/x/20240829.020352accepted/tizen/unified/dev/20240829.043857accepted/tizen/unified/20240828.082351Yunhee Seo3-10/+6
As support hal-abi-versioning, the hal-backend package should be built using only the hal-rootstrap. To remove dependency to dlog internal, dlog internal function is removed. Change-Id: Id38a3de8dac2675254d28d5b762c2755c0d400c8 Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2023-01-10power: add read wakeup source functionTaeminYeom3-0/+156
wakeup source: the information of "/sys/kernel/debug/wakeup_sources" node wakeup reason: defined TIZEN Enum and able to be get by wakeup source To add getter wakeup reason in device API, it is needed to read kernel node (/sys/kernel/debug/wakeup_sources) This node is including information of wakeup, so it is possible to get the source of wakeup by compare the value of "wakeup_count" value. Detailed function description - hal_backend_device_common_read_wakeup_sources (char ***wakeup_source_name, int *wakeup_source_number): wakeup_source_name : get the name of wakeup sources with string array. each string and wakeup_source_name should be freed after using. caller declare a char ** variable and use the pointer of it. wakeup_source_number : the number of wakeup sources. caller delcare a int vairable and use the pointer of it. Exported and can be called by other HAL backend. Change-Id: I605a5d539addb2cef7684f8e57f4ab3b5d9c65d4 Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2022-12-14input: add getter/setter for controlling input device eventYunhee Seo6-0/+331
Add a getter and setter function of input device event status Input device event can be enabled/disabled by kernel inhibited node which exist under the /sys/class/input/input(id) path. These are function prototype to be added. int hal_backend_device_common_input_set_event_state(int input_device_id, int on); -> As follow above path, "(id)" will be replaced to input_device_id. and this function will set the on parameter value to inhibited node(path) int hal_backend_device_common_input_get_event_state(int input_device_id, int* on); -> As follow above path, this function will read the inhibited node value through the input_device_id. Change-Id: I742edbbaec64cb7aeb2428aca7c50b0e7872accc Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2022-04-13usb-gadget: move usb-gadget to devicedtizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220525.001052accepted/tizen/unified/20220526.144003accepted/tizen/8.0/unified/20231005.094444accepted/tizen/7.0/unified/hotfix/20221116.110359accepted/tizen/7.0/unified/20221110.062442tizen_8.0tizen_7.0_hotfixaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedYoungjae Cho6-1539/+0
Change-Id: I50188a374b64bf8e388668295756456f4afa7bbc Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2022-03-28usb-gadget: access external symbol using dlsym(), not extern keywordsubmit/tizen/20220328.084941accepted/tizen/unified/20220331.010053Youngjae Cho3-29/+51
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>
2022-03-18usb-gadget: introduce configurable usb-gadgetYoungjae Cho4-85/+166
Change-Id: I9e71df155d10c7d2a413546b97a2a6ab2993a50e Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-12-06usb_gadget: to support diag mode for ffssubmit/tizen/20211206.061425accepted/tizen/unified/20211207.133144INSUN PYO1-1/+1
gems requires diag mode, which should operate in ffs. Change-Id: I9ee7714c016add5ef42abb0b6fc03f1e0a1266bf
2021-07-21udev: change the name of udev monitor buffer sizesubmit/tizen/20211103.072537INSUN PYO1-3/+3
Change-Id: I31a9d54c6aab0ef09fb843dd9e40815e37f210a3
2021-05-04Bug fixtizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163201submit/tizen/20210504.124833accepted/tizen/unified/20210505.141432accepted/tizen/6.5/unified/20211028.115403Youngjae Cho1-44/+25
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>
2021-03-19Change include path for libsystemd.hsubmit/tizen/20210319.090004accepted/tizen/unified/20210321.225711Hyotaek Shim3-3/+3
Change-Id: Ia8546cb21b3f3c59a2160ba04617fb7dd8dc2f8b Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-02-17usb_gadget: use common header - EXPORT macrosubmit/tizen/20210218.041307submit/tizen/20210217.060738accepted/tizen/unified/20210219.134914insun.pyo3-12/+3
Change-Id: I081bfc5252e718601325e6c243e739e79c88ebb5
2021-02-16Add udev files used in HALsubmit/tizen/20210217.044338lokilee735-3/+354
Change-Id: Id2ab1ea18209c255c0cbaf2081db19e9874436d2 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-15usb_gadget: use libsyscommon packageinsun.pyo1-111/+1
funcs - sys_read_buf(), sys_write_buf(), sys_get_str() - sys_set_str(), sys_get_int(), sys_set_int() Change-Id: I7f303d631d8154deeb64eef71ff7b1d487ccc1a3
2021-02-15Add hal-backend-device-common.h for common macro used in HALsubmit/tizen/20210215.055935accepted/tizen/unified/20210215.130858lokilee734-4/+51
Change-Id: Ia5f36dd43fdb1928a0913957a876f70f71fea4b9 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-10Change file name of hal-common-interface.h to hal-backend-common-usb_gadget.hINSUN PYO8-15/+8
/usr/include/hal/device/hal-common-interface.h ==> /hal/include/device/hal-common-interface.h Change-Id: I754eaa873264a707dc420cc43a52a5384fed11d3
2021-01-28usb_gadget: apply next HAL architecture #3submit/tizen/20210201.022214accepted/tizen/unified/20210201.130306INSUN PYO2-33/+5
- support usb serial for sdb devices --------------------------------------------------- $ sdb devices List of devices attached 530MWC2R10400764 device artik --------------------------------------------------- - remove temporary "BuildRequires: pkgconfig(dlog)" dependency Change-Id: Iae4944b6848efda105396d718ad7fb73a994cd4a
2021-01-26Apply rpm macro of hal install pathsubmit/tizen/20210127.032903accepted/tizen/unified/20210129.002315Yunmi Ha3-6/+9
Change-Id: I3aab6da90dce81e08af4ba15ba51a6d32aac2136 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-25usb_gadget: apply next HAL architecture #2INSUN PYO1-1/+1
bug fix : legacy usb client Change-Id: I615ffd167f127e45221ae6ffc01491a4a85193f9
2021-01-25usb_gadget: apply next HAL architectureINSUN PYO8-90/+1610
Change-Id: Ie79da201e2aba0c6007b553f142713b3110872ab
2021-01-22InitializationHyotaek Shim5-0/+356
Change-Id: Ie86481b77efdb65ae4123dac1ee91441aa3f007a Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-01-22Initial empty repositoryHEADmasterTizen Infrastructure0-0/+0