platform/hal/backend/vim3/device-vim3.git
10 months agoutil: Add handling code to safely read and write arrays 14/314914/3 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241031.000146 accepted/tizen/unified/20240725.155018 accepted/tizen/unified/dev/20240729.000901 accepted/tizen/unified/x/asan/20241224.003811 tizen_9.0_m2_release
Yunhee Seo [Tue, 16 Jul 2024 07:21:32 +0000 (16:21 +0900)]
util: Add handling code to safely read and write arrays

There was a missing code for handling the null character
so that it doesn't exceed the array size when reading and storing strings.
The code has been modified to handle the array safely.
To avoid overflow issue, this is necessary.

Change-Id: Ib75301a07906391c57fb739ef3399ff211cd1503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoUse only hal-rootstrap package to build 99/313799/4 accepted/tizen/unified/20240703.100116 accepted/tizen/unified/dev/20240704.065626
Yunhee Seo [Mon, 1 Jul 2024 08:15:18 +0000 (17:15 +0900)]
Use only hal-rootstrap package to build

As support hal-abi-versioning, the hal-backend package should be built
using only the hal-rootstrap.
Other packages not included in the hal-roostrap have been deleted to remove dependencies.
util is added to replace functions of dlog and libsyscommon package.

Change-Id: Ie478da1afe4dc6dca876d521ebb2a8e501f732fb
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoRemove free data section when the module exits 37/310237/1 accepted/tizen/unified/20240614.085003 accepted/tizen/unified/dev/20240620.010526
Yunhee Seo [Wed, 24 Apr 2024 08:22:42 +0000 (17:22 +0900)]
Remove free data section when the module exits

In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.

Change-Id: I43d1043df40cad6ddf97569f13ede1f2b2afd184
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agomemory: Apply HAL ABI versioning 62/310062/1
Yunhee Seo [Mon, 22 Apr 2024 01:42:49 +0000 (10:42 +0900)]
memory: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-memory side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"memory" -> "device-memory"

Change-Id: Ibc48399e2ead7ffcd8aa5f2e1169ba699682eb16
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agotouchscreen: Apply HAL ABI versioning 22/310022/1
Yunhee Seo [Fri, 19 Apr 2024 07:35:59 +0000 (16:35 +0900)]
touchscreen: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-touchscreen side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"touchscreen" -> "device-touchscreen"

Change-Id: I6776398dcfa8c36c5749e284ba673e0da08b70d9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agothermal: Apply HAL ABI versioning 98/309998/2
Yunhee Seo [Fri, 19 Apr 2024 04:12:57 +0000 (13:12 +0900)]
thermal: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-thermal side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"thermal" -> "device-thermal"

Change-Id: I89caa12d62873b1fcd7d478699cb201d0f44db21
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoWork in advance to apply HAL ABI versioning 78/309678/1
Yunhee Seo [Mon, 15 Apr 2024 08:36:29 +0000 (17:36 +0900)]
Work in advance to apply HAL ABI versioning

To apply HAL ABI versioning, major/minor_version is added.
Also, as removed abi_version policy, abi_version variable is removed.

Change-Id: I5cea9c23b06c4ca0676a8b3c6bf6dcb42853f163
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Apply HAL ABI versioning 96/309396/1
Yunhee Seo [Tue, 9 Apr 2024 09:08:24 +0000 (18:08 +0900)]
haptic: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-haptic side.

Change-Id: I829b1d489d5b0cd68af532c091a8272b3484e72d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Fix incorrect module naming 95/309395/1
Yunhee Seo [Tue, 9 Apr 2024 09:06:11 +0000 (18:06 +0900)]
haptic: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-haptic".

Change-Id: Ic768551603aaa7326153bf3d747ecbc331aa20ff
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Apply HAL ABI versioning 94/309394/1
Yunhee Seo [Tue, 9 Apr 2024 09:05:18 +0000 (18:05 +0900)]
board: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-board side.

Change-Id: If82611ec5ec3ea57984c8be36cd2d406e6b5516d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Fix incorrect module naming 93/309393/1
Yunhee Seo [Tue, 9 Apr 2024 09:03:41 +0000 (18:03 +0900)]
board: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "board" but "device-board".

Change-Id: I98c8f7e2999c9235428e4bacd482db5ad9b481d7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Apply HAL ABI versioning 88/309388/1
Yunhee Seo [Tue, 9 Apr 2024 08:29:45 +0000 (17:29 +0900)]
display: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-display side.

Change-Id: I1226a6de4f05b899a338e852caed0db30fd2e140
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Fix incorrect module naming 87/309387/1
Yunhee Seo [Tue, 9 Apr 2024 08:28:23 +0000 (17:28 +0900)]
display: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".

Change-Id: I9a62c21d598773c6fb98b8fa5e875c0b17b56bd3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoChange header file inclusion path 86/309386/1
Yunhee Seo [Tue, 9 Apr 2024 08:27:23 +0000 (17:27 +0900)]
Change header file inclusion path

As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.

Change-Id: If47b886e6ce22b651c877a9a99642955b1a285dd
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
3 years agousb-gadget: remove usb-gadget and add configuration file 50/274550/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063610 accepted/tizen/7.0/unified/hotfix/20221116.110427 accepted/tizen/8.0/unified/20231005.094516 accepted/tizen/unified/20220526.143950 submit/tizen/20220525.001052 tizen_7.0_m2_release tizen_8.0_m2_release
Youngjae Cho [Mon, 2 May 2022 07:40:17 +0000 (16:40 +0900)]
usb-gadget: remove usb-gadget and add configuration file

The actual operation of usb-gadget is no more hal dependent. Instead,
the deviced is now in charge of running usb-gadget. The hal backend
has changed to provide only target specific usb-gadget configurations.
If there is no target specific configurations, deviced runs usb-gadget
with default configurations.

Change-Id: I62cc495240913e7447a16c7cf09a70f68bef7a70
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoUpdate ABI version 79/271079/1 accepted/tizen/unified/20220310.120912 submit/tizen/20220222.024249 submit/tizen/20220308.032646
Youngjae Cho [Tue, 15 Feb 2022 06:31:21 +0000 (15:31 +0900)]
Update ABI version

Change-Id: I907821f449384bfced08dfdaf73fcd0a96e59aa6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agodisplay: brightness control is not supported 08/270608/3 submit/tizen/20220208.075544
Youngjae Cho [Mon, 7 Feb 2022 04:11:34 +0000 (13:11 +0900)]
display: brightness control is not supported

Change-Id: I4d840034d819e248116a6b78c41109722fccc4de
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agospec: Add "ExclusiveArch: %{arm} aarch64" 90/268290/1 accepted/tizen/unified/20211220.133604 submit/tizen/20211220.071509
INSUN PYO [Mon, 20 Dec 2021 04:36:12 +0000 (13:36 +0900)]
spec: Add "ExclusiveArch: %{arm} aarch64"

Change-Id: I6b72953e1844c0daac39f80d00ea64ca46d763d9

3 years agothermal: rename device_thermal_e to hal_device_thermal_e 48/262048/1 accepted/tizen/6.5/unified/20211028.115751 accepted/tizen/unified/20210804.085652 submit/tizen/20210802.064402 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Youngjae Cho [Mon, 2 Aug 2021 05:33:32 +0000 (14:33 +0900)]
thermal: rename device_thermal_e to hal_device_thermal_e

Change-Id: I1c676693908b1ab87e090ef7c6e9d7df4fd83f3c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoboard: fix parameter of get_deviec_serial_number() 50/260050/1 accepted/tizen/unified/20210621.123237 submit/tizen/20210618.075427
Youngjae Cho [Fri, 18 Jun 2021 03:16:35 +0000 (12:16 +0900)]
board: fix parameter of get_deviec_serial_number()

Change-Id: Ib7303ad9f8fdac2784e94285149b20ec0286b732
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoAdd libsyscommon to required package to provide linker flag 69/259969/1
Youngjae Cho [Thu, 17 Jun 2021 05:46:55 +0000 (14:46 +0900)]
Add libsyscommon to required package to provide linker flag

For haltest, it cannot run by itself because it is not able to resolve
sys_get_int() symbol of libsyscommon. Therefore, provide ldflag to
locate libsyscommon.so

Change-Id: Idc7c9af42aee50dcdba3bf2c8731db81e1c4dbc8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoboard: renaming get_device_serial_number 88/259788/1 accepted/tizen/unified/20210615.120407 submit/tizen/20210614.021455
Youngjae Cho [Mon, 14 Jun 2021 08:36:05 +0000 (17:36 +0900)]
board: renaming get_device_serial_number

Change-Id: Id9a20fa28abc7da7c725fdaf4244eb7116728707
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoChange board to use /proc/cpuinfo 38/259338/3 accepted/tizen/unified/20210607.011712 submit/tizen/20210604.100157
Hyotaek Shim [Fri, 4 Jun 2021 09:56:13 +0000 (18:56 +0900)]
Change board to use /proc/cpuinfo

Change-Id: Ib295ff76ba4031190adb8410e7302b1cc1d8f113
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoInitialization 35/259335/1
Hyotaek Shim [Fri, 4 Jun 2021 09:27:22 +0000 (18:27 +0900)]
Initialization

Change-Id: I60f42bbb5bc0d9dfdc55ac8a29bd3ec6be1c8bc4
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoInitial empty repository master submit/tizen/20220208.052553
Tizen Infrastructure [Fri, 4 Jun 2021 07:44:34 +0000 (07:44 +0000)]
Initial empty repository