Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I50188a374b64bf8e388668295756456f4afa7bbc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
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>
|
|
Change-Id: I9e71df155d10c7d2a413546b97a2a6ab2993a50e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
gems requires diag mode, which should operate in ffs.
Change-Id: I9ee7714c016add5ef42abb0b6fc03f1e0a1266bf
|
|
Change-Id: I31a9d54c6aab0ef09fb843dd9e40815e37f210a3
|
|
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>
|
|
Change-Id: Ia8546cb21b3f3c59a2160ba04617fb7dd8dc2f8b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I081bfc5252e718601325e6c243e739e79c88ebb5
|
|
Change-Id: Id2ab1ea18209c255c0cbaf2081db19e9874436d2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
|
|
funcs
- sys_read_buf(), sys_write_buf(), sys_get_str()
- sys_set_str(), sys_get_int(), sys_set_int()
Change-Id: I7f303d631d8154deeb64eef71ff7b1d487ccc1a3
|
|
Change-Id: Ia5f36dd43fdb1928a0913957a876f70f71fea4b9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
|
|
/usr/include/hal/device/hal-common-interface.h ==> /hal/include/device/hal-common-interface.h
Change-Id: I754eaa873264a707dc420cc43a52a5384fed11d3
|
|
- support usb serial for sdb devices
---------------------------------------------------
$ sdb devices
List of devices attached
530MWC2R10400764 device artik
---------------------------------------------------
- remove temporary "BuildRequires: pkgconfig(dlog)" dependency
Change-Id: Iae4944b6848efda105396d718ad7fb73a994cd4a
|
|
Change-Id: I3aab6da90dce81e08af4ba15ba51a6d32aac2136
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
bug fix : legacy usb client
Change-Id: I615ffd167f127e45221ae6ffc01491a4a85193f9
|
|
Change-Id: Ie79da201e2aba0c6007b553f142713b3110872ab
|
|
Change-Id: Ie86481b77efdb65ae4123dac1ee91441aa3f007a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
|