Jiyoung Yun [Fri, 29 May 2015 12:38:02 +0000 (21:38 +0900)]
display: Do not control LIBINPUT_EVENT_DEVICE_ADDED event
Change-Id: Ia969a985e4b8a40c52fc4e0d366b71d646173d77
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 29 May 2015 10:42:31 +0000 (19:42 +0900)]
block: Add device changed signal
/Org/Tizen/System/DeviceD/Block/Devices/[devnode]
Interfaces
org.tizen.system.deviced.Block
methods
Mount ("s" mount point)
Unmount ("i" unmount option) /* 0 : Normal, 1 : Force */
signals
DeviceChanged ("issssssisii"
block type, /* 0 : scsi, 1 : mmc */
devnode,
syspath,
fs_usgae,
fs_type,
fs_version,
fs_uuid_enc,
readonly, /* 0 : rw, 1 : ro */
mount_point,
state, /* 0 : unmount, 1 : mount */
primary) /* 0 : false, 1 : true */
Change-Id: I6ea8d7abd9d806a9b1e64e13fc011df3a710493f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 28 May 2015 07:59:04 +0000 (16:59 +0900)]
block: Add new dbus signal for broadcasting added or removed object
When object is added or removed,
BlockManager interface will broadcast those signal.
Application can receive the event and
register the dbus signal for each object by using new object path.
Object path
/Org/Tizen/System/DeviceD/Block/Manager
Interfaces
org.tizen.system.deviced.BlockManager
signals
ObjectAdded ("s" Object path)
ObjectRemoved ("s" Object path)
Change-Id: I756d2234ab421c86e04c588f1c9e94e89432c6c4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 06:08:10 +0000 (15:08 +0900)]
block: Add block manager and block devices dbus object
Block module's dbus structure:
* /Org/Tizen/System/DeviceD/Block/Manager
- org.tizen.system.deviced.BlockManager
- ShowDeviceList ()
* /Org/Tizen/System/DeviceD/Block/Devices/[devnode]
- org.tizen.system.deviced.Block
- Mount (IN s mount_point, OUT i result)
- Unmount (IN i option, OUT i result)
Each block device provides a specific dbus object and
it is connected with a block interface which supports to mount and unmount.
Block manager is for managing whole block devices.
The existing Block object and interface is changed to block manager's.
Change-Id: Iea3c98c6bfaf92da9d5f23cbadcd72bcf0180ca5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:39:43 +0000 (14:39 +0900)]
block: Add primary flags in block data
MMC should be known which block is a primary device.
A primary device means that it is the first partition in each device.
Change-Id: Ie83f829d0c3470b26fd0cf2169b242e2f5b89e86
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:32:24 +0000 (14:32 +0900)]
block: Add format operation
When user request to format a specific block device,
it will format the device and update the related information.
The uuid is always updated by formatting.
Change-Id: I35eb468e53204e2d833b59ef71a7f6a5cd0a006c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:17:31 +0000 (14:17 +0900)]
block: Support to handle individual scenario btw mmc and usb storage.
Add struct block_dev_ops for device operation sets
for supporting to handle individual scenario btw mmc and usb storage.
MMC and usb storage can have each other scenario
when block device is added or removed.
In this case, block_dev_ops is useful.
Change the struct mmc_fs_ops to struct block_fs_ops.
Change-Id: I9bdba58d6ded1b355ea526a02083c06a149abf26
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 20 May 2015 05:44:55 +0000 (14:44 +0900)]
extcon: Do not hdmi lock when hdmi cable is not initialized
Change-Id: Id86a7a4965cb4504f0eda2071e8b8e78e78f3908
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 11 May 2015 04:35:51 +0000 (13:35 +0900)]
display: Fix segfualt issue when display stop and re-start
When display stop, display_dev is released.
But it does not allocate when display restart, so add it.
Change-Id: I2e2c25ce67ef7a7c26db4e890008d382980faadd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:12:37 +0000 (14:12 +0900)]
power: Add power method call
This method is linked to device_power_reboot() in capi-system-device module.
It is a Tizen 2.3.1 public API.
Other method call is for internal modules, not public.
Change-Id: I195487cd6315a57da019fc52e98b7000d929e53f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:07:23 +0000 (14:07 +0900)]
deviced: Add GetBrightnessForCamera method in torch led module
GetBrightnessForCamera is for camera library.
Currently they do not have a daemon for camera,
but they need to get camera brightness value without led priv.
So security team and mmfw team guys agreed to add temporarily method.
It's a temporary solution on Tizen 2.4 and will be removed asap.
Change-Id: I2f0b1c95c2fcb4535efb0958a32ce93f8f509d01
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:02:47 +0000 (14:02 +0900)]
deviced: Add changed flash state method
Whenever who requests to turn on and off flash device,
deviced will broadcast 'ChangeFlashState' dbus signal.
Change-Id: Ic07f3568d804753b84972cf4f2a4e2cfee4af4b4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 7 May 2015 10:10:59 +0000 (19:10 +0900)]
display: Support dpms control on wayland
Deviced does not use display HAL to control dpms anymore.
Instead it control the power of display automatically
with build configuration.
It also supports to control display in wayland using dbus signal.
Change-Id: I691a3bb450ff734ceafd559c07e281dc18aee78c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 6 May 2015 10:13:30 +0000 (19:13 +0900)]
display: Update device-interface code more simple
Do not use deprecated OAL functions (device_set/get_property)
instead it accesses /sys/power/* nodes directly.
And remove the unnecessary x-lcd-on.c file and PMSys structure.
Change-Id: I37495125589f7e9d9880e333416d1bfea7e2fa1c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 4 May 2015 07:37:14 +0000 (16:37 +0900)]
display: Change the default lcd timeout time to 30s (30000s->30s)
Only mobile profile will need this operation.
We should redesign how to manage other profile by one code.
Change-Id: Ib6ab0256ed0692e3ea0f0e949fffd12fd4247315
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 17 Apr 2015 08:23:53 +0000 (17:23 +0900)]
haptic: Add exception handling of unexpectedly killed process.
When some process is killed unexpectedly,
it should control to stop, close and collect the related resources.
Change-Id: I4dd9a226304b7d755ac6d0d5a9ad1ba9bb79ed40
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 15 Apr 2015 07:59:11 +0000 (16:59 +0900)]
deviced: Update the dbus watch logic.
Deviced will invoke the registered function to the sender
whenever the name owner of sender is changed.
Change-Id: Iffd7474cc53531cb8433aaf9c0ea9035d1c5cd3e
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 23 Apr 2015 08:00:36 +0000 (17:00 +0900)]
block: Seperate the mount/unmount code from mmc logic.
There are two type of the supported block device type in deviced.
* Scsi - USB HOST STORAGE
* MMC - SD
The exisiting mmc module has combined block device logic with mmc.
To support scsi block devices, block logic is seperated.
Block module supports to mount multi partition.
The mount point is '/usr/storage/[uuid]'.
To show the current mounted file system,
deviced provides a below dbus method call.
* object path: /Org/Tizen/System/DeviceD/Block
* interface name: org.tizen.system.deviced.Block.ShowDeviceList
TODO: Should be fixed the thread safety issue.
Change-Id: Ie13544f3c2075018c238357167b35018448ff573
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 22 Apr 2015 09:18:50 +0000 (02:18 -0700)]
Merge "deviced: Add udev monitoring logic" into tizen
Jiyoung Yun [Wed, 22 Apr 2015 07:34:05 +0000 (16:34 +0900)]
cradle: Register missing exit function
Change-Id: I2464cf219d44314b70fc56677de007888ad8bc83
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 16 Apr 2015 11:16:41 +0000 (20:16 +0900)]
deviced: Add udev monitoring logic
Sometimes uevent from udev has more various information.
In this case, deviced can use udev monitoring apis.
Change-Id: I6d56620341a0d0ae23b691d4c172377f61672766
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 14 Apr 2015 01:07:16 +0000 (10:07 +0900)]
deviced: Fix uninvoked device notifier func problem
Device notifier is managed by a list.
The list can be changed during other notifier callback function.
So do not remove in unregister func.
Instead it marks deleted and will be removed on deviced idle time.
Change-Id: I7074c2ca99000c10bcfee44047d08de2f15cb7f1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 13 Apr 2015 03:51:33 +0000 (12:51 +0900)]
deviced: Add tizen environment to deviced process
To control display, deviced needs a DISPLAY enviroment value.
So the dependency of tizen-system-env.service is added.
Change-Id: I691015d54c12577c7e8b24df609069afaffc5bf7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 14 Apr 2015 01:02:03 +0000 (10:02 +0900)]
deviced: Remove unused device notifier codes
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I475b762fc6f8e44eac73b57b6020179bc2f14788
Jiyoung Yun [Tue, 7 Apr 2015 10:01:17 +0000 (19:01 +0900)]
power: Do not use vconf key to control poweroff operation
Before changing, deviced can be turn off the target by vconf key.
Now all poweroff case of the dependent on vconf key are removed.
And removed unsupported recovery, fota codes.
Change-Id: Ia01a4e1f898ecb3451c81d226521a4864712dd6c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 7 Apr 2015 06:21:41 +0000 (15:21 +0900)]
deviced: Add device idler logic
It allows for callbacks to be called when the daemon is idle state.
func:
int add_idle_request(int (*func)(void *data), void *data);
Change-Id: I2d7879874da5bd072b6ed205ff4d33a81e919dc7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 7 Apr 2015 04:43:53 +0000 (13:43 +0900)]
deviced: Remove Eina_list codes
Do not use Eina_list anymore.
Instead deviced will use glist api in glibc.
Change-Id: Ia9a2a8a24baadb14e1b5c6fe02f315c56d9b500c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 11:52:12 +0000 (20:52 +0900)]
deviced: Remove unused vconf key and logics
Removed vconf key list:
VCONFKEY_SYSMAN_MMC_DEVICE_CHANGED
VCONFKEY_STARTER_SEQUENCE
VCONFKEY_SETAPPL_PWRSV_CUSTMODE_CPU
VCONFKEY_LCD_BRIGHTNESS_INIT
VCONFKEY_INTERNAL_PRIVATE_MMC_ID
VCONFKEY_DEVICED_BOOT_POWER_ON_STATUS
VCONFKEY_SETAPPL_ACCESSIBILITY_TTS
Change-Id: Ia256ac802c65ca6c0725f1bbe690beca6802ffaf
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 2 Apr 2015 04:00:45 +0000 (13:00 +0900)]
usb: Fix usb connection on 64bit machine
In 64bit machine, sdb can't connect properly to a host.
This patch fixed the issue by changing fconf value.
Change-Id: Ib2c8ac40f7e8a06d93c63141b3e5c5a8945b54c7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 08:46:51 +0000 (17:46 +0900)]
udev: Change the device-change-handler to udev module
Sliding keyboard and tvout is not supported currently.
These logic will add as per the common kernel interface.
Change the device-change-handler to udev module.
And remove the unnecessary codes and defines.
Remove device-handler.h file.
Change-Id: Iecb44fd52cafd7fc3708f3834eecf4f3e7b1df12
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 07:35:14 +0000 (16:35 +0900)]
extcon: Do not invoke the update() if the status is the same as before
Do not invoke the update func. if the status is the same as before.
And do not printout error logs for not matched device.
The information of not matched device is already printed out on booting time.
So it's redundant logs.
Change-Id: I8bd2696036bb4633eb05a128d5a9de46dc35fed1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 10:43:11 +0000 (19:43 +0900)]
fs: Support to mount ext4 file system
Change-Id: Ib3bd2b33ea540c87b7c2e1ee4b6d9d825ccdc7bc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 10:28:29 +0000 (19:28 +0900)]
mmc: Change the udev register way
Do not use an extra udev logic.
Instead I shared the core udev logic.
Change-Id: I879f5f7e2fdbcdac46f06e035e058f3db7c2339a
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 06:46:44 +0000 (15:46 +0900)]
extcon: Support hdmi devices
Hdmi-hdcp, hdmi-audio are not common interfaces in kernel side.
So I removed the codes depends on product kernel.
Change-Id: I38da3fc3215a5d814e48a6ba582403053e1920fb
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 3 Apr 2015 04:19:48 +0000 (13:19 +0900)]
extcon: Support dock devices
Dock module will be activated by extcon event.
If there is no event for dock, it doesn't work.
Change-Id: I13992b2b1d8736ee84e84623aea1bae651f23ccc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Stephane Desneux [Tue, 31 Mar 2015 10:19:45 +0000 (12:19 +0200)]
packaging/postinst: remove erroneous -i on vconftool call
This suppresses the following warning at installation time:
WARNING: only keys beginning with memory/ are allowing option -i
Change-Id: I3763268f849bb551d4dd6356261622661f277a8c
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Jiyoung Yun [Fri, 3 Apr 2015 03:33:07 +0000 (12:33 +0900)]
extcon: Load all attached extcon nodes
I tried to get the information of extcon nodes from udev_enumerate,
but it was failed, it depended on kernel extcon uevent logic.
So deviced searches the attached extcon nodes by accessing the node directly.
Change-Id: I1e6ce69a85b9b3a917079a3570e747b3a0880f7d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 2 Apr 2015 06:21:05 +0000 (15:21 +0900)]
extcon: Enable earjack control logic and remove unused files(ta,usb)
Deviced recognizes the ta(charger) status by using power-supply uevent.
So extcon doesn't care about the ta status.
Usb-handler logic launches usb-server whenever usb is connected,
but usb-server is deprecated and usb logic is included in deviced.
Change-Id: I21d526fb44aebbdac9e21671e45c0237a6335c8b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 2 Apr 2015 04:21:39 +0000 (13:21 +0900)]
deviced: Remove unnecessary modules like factory, csc and testmode
Change-Id: I566e9a04a4b255e30c24c37e2bb8a047e96ba73b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 1 Apr 2015 12:32:55 +0000 (21:32 +0900)]
deviced: Add tool pkgs for deviced
Add deviced-tool pkg to install helper programs.
Change-Id: Ibe36c5dc4fc86acb8f01ba2f8c6da4b0d8ec5f61
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 31 Mar 2015 13:57:37 +0000 (22:57 +0900)]
display: Use libinput to get input events
Remove the exisiting input code and use libinput for getting input events
It's for common use with wayland input system.
Change-Id: I2de534b73250e8d1fdfccd3b02f64eb13efcb45a
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Jiyoung Yun [Mon, 30 Mar 2015 10:04:02 +0000 (19:04 +0900)]
deviced: Move direct_set_debug script from usb-server
Usb-server is no longer used.
Instead to control usb devices will be replaced by deviced.
direct_set_debug script is for controlling sdb or ssh tools manually.
It is a very helpful when deviced does not work normally.
Change-Id: Ib0b3369677d1a1819fb5d57c5072c477e2b389f5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 31 Mar 2015 08:11:53 +0000 (17:11 +0900)]
deviced: Remove unnecessary service files
devicectl-start@/stop@ service files are just helper modules.
It does not need to register by systemd.
You can execute the devicectl binary directly.
Change-Id: I24516c642d558e30e2288b36ee0b81fec0cef244
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 25 Mar 2015 12:03:04 +0000 (21:03 +0900)]
extcon: Add extcon test module on devicectl
To test extcon devices, devicectl supports to enable/disable device manually.
commands:
devicectl extcon enable [MODULE NAME]
devicectl extcon disable [MODULE NAME]
Change-Id: I7f032aee5eb5415380a3dc040e4b13bd9a85af74
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 30 Mar 2015 12:50:25 +0000 (21:50 +0900)]
usb-host: Fix dbus segfault issue on GetDeviceList method call
dbus_message_iter_append_basic() makes segfault
when string is NULL.
So the null is changed to "" string.
Change-Id: I1afe2971d2c3ca7221c40c1e67959531de60e86b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Maciej Wereski [Mon, 30 Mar 2015 14:45:49 +0000 (16:45 +0200)]
Get rid of unnecesary dbus-glib dependency
None of dbus-glib functions were used in libdeviced. Besides dbus-glib is
deprecated.
Change-Id: I6ea986bc3548b36390493050078edacb26a7cb7f
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Jiyoung Yun [Mon, 30 Mar 2015 08:23:05 +0000 (17:23 +0900)]
usb-host: Add the attached usb host device on booting time
When usb host devices are connected before boot,
it will add usb host list automatically by udev enumerate.
Change-Id: I9d0c56405d3c31a8921f0cd724722381110169cf
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Mar 2015 10:47:49 +0000 (19:47 +0900)]
usb-host: Add ChangedDevice signal
Whenever usb host devices are connected and disconnected,
ChangedDevice signal will broacast with whole information about the device.
Added signal:
ChangedDevice("isiiiiisss")
- int32 : Usbhost state(0:remove, 1:add)
- The order of other signatures are the same with that of dbus method.
(devpath, baseclass, subclass, protocol, vendorid, productid,
manufacturer, product, serial)
Change-Id: I23002f1a0766584b49bc9dd4c4c42ea5bde5a002
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Mar 2015 08:36:53 +0000 (17:36 +0900)]
usb-host: Add dbus method to provide the current device list and count
Added dbus method:
GetDeviceList("i")
- "i" : baseclass
- Return whole device information about the matching baseclass.
GetDeviceListCount("i")
- "i" : baseclass
- Return device count about the matching baseclass.
PrintDeviceList
- Print out whole device information for debugging
Change-Id: Iebf51ec81d30b431e384cd2e57a0c1fc3ca2b1cb
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 26 Mar 2015 12:29:15 +0000 (21:29 +0900)]
usb-host: Add usb host logic
When usb host device is added or removed,
deviced receives the usb uevent and control internal usb host list.
Usb host device must have at least one interface.
And an interface is matched with a specific usb class.
Change-Id: Ib0164daa4b7649820146092f2f04e814f5cef4ca
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Mar 2015 11:02:17 +0000 (20:02 +0900)]
mmc: Enable filesystem routine
MMC directory is interlaced with filesystem and mmc logic.
Filesystem logic should be enable regardless of the supported devices.
So I enable MMC routine first and will be separated two logics.
And MMC routine works when sdcard is connected.
So it does not make any overhead at present.
Change-Id: I7c02968aa989df842fc8c43d92af94e92a588be1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 25 Mar 2015 11:57:39 +0000 (20:57 +0900)]
extcon: Changed the function name easily identifiable
get_extcon_uevent_state is changed to get_extcon_state_node.
This function is for getting state node string.
And remove the duplicated logic regarding extcon_changed() and extcon_update().
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: Ifdd5f5f3d1a1b710d9ead02bce64d7cb7e388fdc
Jiyoung Yun [Wed, 11 Mar 2015 06:33:48 +0000 (15:33 +0900)]
deviced: Update usb vconf key whenever usb is connected or not
Currently, runtime-info uses VCONFKEY_SYSMAN_USB_STATUS vconf key
to judge if usb is connected or not.
Deviced will update the vconf key whenever usb is changed.
Change-Id: I97ab2e9a7a8228fe33b14297b4c002398fd9532c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 6 Mar 2015 09:04:05 +0000 (18:04 +0900)]
deviced: Apply display HAL structure
Deviced will control display power using display HAL.
It also supports to control display brightness.
Change-Id: Ie15c0abe434610dfe60bbda7949ba6e5f71d174f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 25 Feb 2015 12:30:05 +0000 (21:30 +0900)]
deviced: Add inline function to make dbus reply automatically
Apply new function in extcon module
Change-Id: Ia9a77fd88be8151288e9f51bc1ddd3e9ece74f8b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Feb 2015 09:56:33 +0000 (18:56 +0900)]
deviced: remove out unsupported device from device list
Unsupported device remove out from device list.
It does not invoke any function of unsuppoted device include exit() function.
Change-Id: Ia09a9a0b3676b0fc8cca8cbf3875c72961d51d1b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 26 Feb 2015 08:03:49 +0000 (17:03 +0900)]
deviced: resolve resource leak issue
DD_LIST_FOREACH define is not proper to remove elementary in loop.
Instead, DD_LIST_FOREACH_SAFE define redeems the issue.
So change the FOREACH define to FOREACH_SAFE.
Change-Id: I722ca291115f2a82b06d29764a7bfc4ae8cc7256
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 26 Feb 2015 03:51:46 +0000 (12:51 +0900)]
deviced: Enable vibrator and check whether it is available at runtime
Deviced will check if there is an external vibrator plugin.
It should be named 'libhaptic-module.so' in lib directory.
If not, it checks whether this target supports the input force feedback.
If there is no valid module, it will return fail
and do not register any function and method related to vibrator.
Change-Id: I3bc1da9cb378fac1ecea3cb0480915e0485c229f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Feb 2015 09:54:59 +0000 (18:54 +0900)]
deviced: add null point check
When deviced is terminated,
if there is no led device, it makes a segfault issue by null point access.
Change-Id: I8724c9f235b090e04682d514e9de8f030b7591ca
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 12 Feb 2015 01:51:13 +0000 (10:51 +0900)]
deviced: Enable camera led module and check whether it is available at runtime
Deviced loads led HAL structure at loading time.
If it is failed, the device does not support camera led module.
Change-Id: Ie45423cdd920ae5192b56a678c4c256b1e5f4a2f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 25 Feb 2015 11:35:32 +0000 (20:35 +0900)]
deviced: Change wrong dbus configuration
Root, console and default user can send to device object path.
Change-Id: I22e24d33cf5b3f93731982f805aba6f2fadccd03
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 24 Feb 2015 10:08:05 +0000 (19:08 +0900)]
deviced: Set vconf as NOTSUP error in no battery model
Runtime-info and Capi-system-device api uses battery vconf
to get battery status.
So if there is no battery in target, deviced set vconf as -ENOTSUP value.
Change-Id: I9fe23fb6671493394a02ff5b4c7d8a91437e48fe
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
taeyoung [Mon, 23 Feb 2015 08:05:22 +0000 (00:05 -0800)]
Merge "usb: set default usb config to usb sdb" into tizen
taeyoung [Tue, 10 Feb 2015 11:13:38 +0000 (20:13 +0900)]
usb: set default usb config to usb sdb
- Default usb config is used from Tizen 1.0 to tizen 2.3.
USB nodes at sysfs are used to set usb configuration.
- Default usb config is not plugin type since it will be used
when other plugin does not exist
Change-Id: I0f1f3ed1ff128d6cb62c410529c6227981a1f5de
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Jiyoung Yun [Fri, 13 Feb 2015 09:18:21 +0000 (18:18 +0900)]
extcon: Replace device-notifier with update callback function
Device-notifier makes to be tight code among each other modules.
And update callback is more useful without any effort to
register or unregister device-notifier.
Change-Id: I6a9ba2eafb26973bf15f18b2dc74a0e1bd970e43
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 13 Feb 2015 05:04:46 +0000 (14:04 +0900)]
extcon: Register GetStatus dbus method
GetStatus method returns the current device status.
The first string argument should be the same with EXTCON_XXX name.
Change-Id: Ifaf2baa26e1189bc6d91e4be6e522df7631ce53f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 13 Feb 2015 04:59:06 +0000 (13:59 +0900)]
extcon: Register extcon uevent inside extcon module
If there is no extcon module,
deviced does not need to register extcon uevent.
So the code is moved into extcon module.
Change-Id: Ib36295a1f54c3528bb0c3473201b1f1d36671e9c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
taeyoung [Tue, 10 Feb 2015 07:54:30 +0000 (16:54 +0900)]
usb: add plugin interfaces for usb configuration
- USB configuration manner can be changed according to the Kernel or vendors.
Thus USB configuration setting codes should be implemented by plugin structure.
- This modification contains basic structure for the USB configuration plugin.
Change-Id: I4afb1033fb59ba132182ae16ffef9fbb34192f13
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 4 Feb 2015 13:27:18 +0000 (22:27 +0900)]
usb: add usb handler
- Usb connection status is delivered to the handler by extcon module
Change-Id: Ieec715641fa758693a5614203f865adb9eb17732
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Jiyoung Yun [Wed, 11 Feb 2015 08:27:29 +0000 (17:27 +0900)]
deviced: Change the way to register edbus object and interface
Each module can register their method using the same interface.
In that case, edbus will return error because object is already registered.
And there are no ways to get an edbus interface using another information.
So I change implementation to register by object and interface string.
Edbus logic will maintain each edbus interface in edbus_object_list.
Change-Id: I175973b1a7d59088cb93545ed2701b30e3d0fadc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 12 Feb 2015 10:20:27 +0000 (19:20 +0900)]
deviced: Add extcon probe function
If there is no extcon class,
deviced does not load extcon module.
Change-Id: I07f7986e4f4d0c27d4020683ea8a3039fbe9d805
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
taeyoung [Mon, 9 Feb 2015 06:59:19 +0000 (15:59 +0900)]
extcon: change extcon object type from 'const' to normal
- Extcon object contains status element and it can be updated
by extcon status. Thus 'const' is removed for the extcon object
Change-Id: I7a26af7ac8c878a145a4a68d77e9af2cc72607b1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 4 Feb 2015 13:18:15 +0000 (22:18 +0900)]
extcon: add function to get current device status
- Each extcon device can have scenario in which they should
get the current status of itself. Thus the getter function
for current device status is added.
Change-Id: I4898d5d9968ff95ee27d7c871cf65b13ca7fc559
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 4 Feb 2015 11:15:42 +0000 (20:15 +0900)]
notifier: change the function name for unregistering device notification
- There is a mismatching for the function name between the prototype
and its implementation. Thus the name is changed correctly.
unregister_notifier_del() -> unregister_notifier()
Change-Id: I5387aae2837d457d0ad610e767e0979ea38a67e5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 4 Feb 2015 08:46:53 +0000 (17:46 +0900)]
extcon: add extcon uevent handler
- The following is a example of extcon state in the uevent delivered
when extcon devices are connected.
USB=1
TA=0
FAST-CHARGER=0
SLOW-CHARGER=0
CHARGER-DOWNSTREAM=0
JIG-USB-ON=0
JIG-USB-OFF=0
JIG-UART-OFF=0
JIG-UART-ON=0
- extcon handler parses the extcon state information and
notifies to the deviced modules related with the extcon devices.
- 'struct extcon_ops' is used to register extcon devices.
Change-Id: I612c4b38f527a0095c49b72958c595d72a99e56f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Jiyoung Yun [Fri, 6 Feb 2015 06:44:17 +0000 (15:44 +0900)]
deviced: Fix library path under 64-bit architecture on pc file
Change-Id: I2801f800b7251ae76daf634a2dd9906db77993d0
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 6 Feb 2015 02:47:05 +0000 (11:47 +0900)]
deviced: Remove unnecessary initialization
DEVICE_PRIORITY_NORMAL value is zero.
And static structure value is initilized zero automatically.
Do not need to reassign the same value.
Change-Id: Ib03242ebbf246ee8fbfc0f099cd5808886cfb68a
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 5 Feb 2015 06:42:16 +0000 (15:42 +0900)]
deviced: Do not register dbus object in the case of deactive module
If there is no power-supply class,
deviced does not register battery dbus object.
Change-Id: Idf6e390f5ffb3e622247d2c6d5727f5b498edd06
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 5 Feb 2015 06:43:32 +0000 (22:43 -0800)]
Merge "deviced: Do not use device-node in battery case" into tizen
Jiyoung Yun [Thu, 5 Feb 2015 06:43:27 +0000 (22:43 -0800)]
Merge "deviced: Enable battery module and check whether it is available at runtime" into tizen
Jiyoung Yun [Thu, 5 Feb 2015 06:43:18 +0000 (22:43 -0800)]
Merge "deviced: Support runtime deviced" into tizen
Jiyoung Yun [Wed, 4 Feb 2015 08:20:52 +0000 (17:20 +0900)]
deviced: Do not use device-node in battery case
deviced control battery module using power-supply class.
So we do not need to use device-node to get battery information.
Instead we can receive the changed event by using power-supply uevent.
Change-Id: I4a94a8f35009c655c2a8ce760fe39e9426f557c2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 4 Feb 2015 06:26:51 +0000 (15:26 +0900)]
deviced: Enable battery module and check whether it is available at runtime
Some build issue is also fixed.
Change-Id: I4b4d9be3a4ca10cbbe44eba412ae4546c182a0dd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 4 Feb 2015 06:06:41 +0000 (15:06 +0900)]
deviced: Support runtime deviced
The available module has been determined by build configuration.
Now deviced will support to judge what module is valid or avaliable at runtime.
If there is no probe which is always true case or the probe succeed,
deviced will activate the module at runtime.
If not, we do not support any method call or operation of the module.
Change-Id: I866c645a4ee193f5473bfc1909894f0e96ba8dc3
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Kibak Yoon [Tue, 3 Feb 2015 12:49:27 +0000 (21:49 +0900)]
rename sensor.h to sensor_internal.h
the header file for sensor internal API was changed to sensor_internal.h.
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: If42f246a4733efd51cc7f066b7771fb52e7e0a8d
Jiyoung Yun [Tue, 27 Jan 2015 05:23:49 +0000 (21:23 -0800)]
Merge "Replace Syspopup by Notification" into tizen
Loïc Plassart [Tue, 13 Jan 2015 09:48:15 +0000 (10:48 +0100)]
Replace Syspopup by Notification
Replace calls to various Syspopup programs by calls to the
notification API.
Change-Id: Icba61a3b9f590be0cbe7f3e9235de532fe8faa24
Author: Loïc Plassart <loic.plassart@eurogiciel.org>
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Jiyoung Yun [Mon, 26 Jan 2015 10:32:41 +0000 (19:32 +0900)]
deviced: Fixed wrong parameter on booting_done signal
Change-Id: Idfa0f163eb67324494d04a0134c74954aa0ebe9f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 13 Jan 2015 05:55:31 +0000 (21:55 -0800)]
Merge "deviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS"" into tizen
José Bollo [Mon, 12 Jan 2015 10:14:58 +0000 (11:14 +0100)]
Fix a runtime dependency
Making libdeviced requiring deviced has more meaning
that deviced requiring itself ^_^
Change-Id: I0dedc4a466e6f0f295cd3bef96c868141c1f9674
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Jiyoung Yun [Mon, 12 Jan 2015 09:00:29 +0000 (18:00 +0900)]
deviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS"
The value is redefined btw libdevice-node and deviced.
So I remove an unused define at deviced side.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I00d9fe78f9048694403a5e085926cf59746a3e13
José Bollo [Wed, 24 Dec 2014 13:48:39 +0000 (14:48 +0100)]
Fix bugs in managing the system group
Change-Id: I274bcf8a0b310a264a1a4ea2fed814dbd8b2db10
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Suchang Woo [Fri, 9 Jan 2015 11:43:55 +0000 (20:43 +0900)]
Fix typo in format string
When loading a config file is failed, this typo makes SIGSEGV.
Change-Id: I5291f29bafd8f3412667d8c350c8d4612d20456c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
jy910.yun [Tue, 18 Nov 2014 13:27:52 +0000 (22:27 +0900)]
deviced: Separate hall, buzzer and sim features from core logic
Features of Deviced:
- Common
- Battery
- Buzzer
- Camera led
- Display
- Extcon
- Hall
- Sdcard
- Sim
- Usb
- Vibrator
Change-Id: I3ee600d299ca1422ac113bc9d91217a8164c162b
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 24 Dec 2014 11:25:39 +0000 (20:25 +0900)]
deviced: Fix wrong rpm dependencies
Libsysman, libslp-pm, libdevman should be in need of deviced library.
Because those library invoke libdeviced function internally.
In contrast, libhaptic does not have any dependency with deviced library.
Change-Id: I1f2f2640f19c44f0024ffc7687014469fb202c2e
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 24 Dec 2014 11:16:43 +0000 (20:16 +0900)]
deviced: Remove hardcoded library path for x64
Change-Id: Ic413b37c78bb81b990a9596b473b042e35195b2b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 22 Dec 2014 08:38:35 +0000 (17:38 +0900)]
Revert "deviced: Remove libhaptic package"
This reverts commit
4c5b290103c91b29f35b3505088e8c72dc86cd88.
Libhaptic is still used in Tizen:Common.
So I added it again.
This module should be replaced to libdeviced ASAP.
Change-Id: I50cb1592af6d575bd16ef7545d4ac22051c815fe
Jiyoung Yun [Thu, 18 Dec 2014 15:37:35 +0000 (00:37 +0900)]
deviced: Change the vconf header file name
The vconf.h file includes vconf-keys.h file internally.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I5820d7ec5278041b644fd0959e70d15152a8d954
Jiyoung Yun [Thu, 18 Dec 2014 07:21:41 +0000 (16:21 +0900)]
deviced: Fix wrong type cast on 64bit build machine
Deviced sometimes pass int value to void * value.
It occurs warning on 64bit build machine
so I fixed wrong type cast from int to 64bit value.
Change-Id: If68a26d5911b803a0793488da64fd22fd1d92867
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 10 Dec 2014 13:07:00 +0000 (22:07 +0900)]
deviced: Remove haptic build errors on 64bit build machine
The haptic handle need to be passed to other process by dbus
at that time it should typecast void * to int.
To avoid it, change the type of haptic handle to int.
Handle will be managed by unique id instead of memory address.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I6db6d11aae0eff50b2ca0f1aed4718a63faf1a4f