platform/core/system/libdevice-node.git
4 years agoFix build error 37/228037/1 accepted/tizen/5.5/unified/20200318.225549 submit/tizen_5.5/20200318.091346
Hyotaek Shim [Wed, 18 Mar 2020 09:06:00 +0000 (18:06 +0900)]
Fix build error

Change-Id: I5af1d9f6b247ceae2475a04f7e95629f9e81f428
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix build error 26/228026/1 submit/tizen_5.5/20200318.072527
Hyotaek Shim [Wed, 18 Mar 2020 07:24:46 +0000 (16:24 +0900)]
Fix build error

Change-Id: I26a3d3db3fecdd5303d99fa1b003e446ba75e002
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoRemove unused usb_client hal feature 62/227962/1 submit/tizen_5.5/20200318.033330 submit/tizen_5.5/20200318.064104
INSUN PYO [Tue, 17 Mar 2020 01:18:16 +0000 (10:18 +0900)]
Remove unused usb_client hal feature

Change-Id: I0d9f5c77a729ca706b85ab988aecd76ccb4c12cc
(cherry picked from commit 94e1d8be764c68c97c6f2ec15a0dc07ce6e3837f)

4 years agoFixed misuse of const variable 05/227705/1 accepted/tizen/5.5/unified/20200316.155231 submit/tizen_5.5/20200316.065201 submit/tizen_5.5/20200316.083018
INSUN PYO [Mon, 16 Mar 2020 01:35:30 +0000 (10:35 +0900)]
Fixed misuse of const variable

Change-Id: I148b8b5b1463c3593f3f609c5ba137403b9272f9
(cherry picked from commit 2f3aa72c35df8b372a583701d477e42150e825c5)

4 years agoRemove unused usb functions after changing usb mode 89/227689/1 submit/tizen_5.5/20200313.073358
INSUN PYO [Thu, 12 Mar 2020 07:29:19 +0000 (16:29 +0900)]
Remove unused usb functions after changing usb mode

After setting the new usb mode, the configfs functions that was not used remain.
For example, changing from rndis mode to sdb mode, /sys/kernel/config/usb_gadget/hal-gadget/rndis.default remains.

A functionfs has to do a few extra things.
 - The socket and service associated with functionfs must be terminated.
 - Umount /dev/usb-funcs/[sdb|mtp]/default
 - Delete /dev/usb-funcs/[sdb|mtp]/default recursively

Change-Id: I2d66f033babd5bea20cfc74d8bf23eb9a89c3be1
(cherry picked from commit 19877fd6f2488dca79d89c5b06f1673a624a5f32)

4 years agoFixed using wrong usb function list when usb gadget enable/disable in configfs 10/227610/1
INSUN PYO [Fri, 13 Mar 2020 03:36:32 +0000 (12:36 +0900)]
Fixed using wrong usb function list when usb gadget enable/disable in configfs

When usb gadget is enabled/disabled in configfs,
it retrieves the list of currently used usb functions in order to run the service handler.

Before the modification, it retrieve a list of "all functions" used even once.

So if you run "ifconfig" after changing usb mode to "sdb mode" -> "rndis mode" -> "sdb mode",
even in sdb mode, the usb0 network interface appears.

Change-Id: I83564591cd899197077823fdb2fbe25d034fcf46
(cherry picked from commit 25b632db82163a339c23ffafc1095be225816b25)

4 years agoRefactoring: replace ffs_service to is_functionfs 09/227509/1
INSUN PYO [Thu, 12 Mar 2020 07:03:07 +0000 (16:03 +0900)]
Refactoring: replace ffs_service to is_functionfs

Change-Id: Ibb74b5627ef1376be141fb23e56787e45b34c142
(cherry picked from commit c1ef88b5dc9a2e8014ebf290e802fb57c34fd5f0)

4 years agoAdd DISPLAY_DETACH display state 50/227450/1 accepted/tizen/5.5/unified/20200313.004359 submit/tizen_5.5/20200312.063422
Youngjae Cho [Thu, 27 Feb 2020 02:11:24 +0000 (11:11 +0900)]
Add DISPLAY_DETACH display state

Change-Id: I9ca39908a04ea557e36f8598236489c1f8e53f6d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit ace7d369c1949819065b9e28143275f13760dc50)

4 years agoFixed to stop services of functionfs when gadget is disabled 64/227364/1
INSUN PYO [Wed, 11 Mar 2020 08:46:35 +0000 (17:46 +0900)]
Fixed to stop services of functionfs when gadget is disabled

sdb.service and mtp-responder.service are alive when the usb cable is unplugged in the configfs environment.

If the usb cable is disconnected, gadget disable is called.
These services are stopped when the gadget is disabled.

Caution 1
Note that the socket units for these services should remain.
The scoket unit has ep0 in the functionfs environment.
If ep0 disappears because the socket unit is stopped, the functionfs can never be enabled.

Caution 2
Since ffs_service works by socket activation, it will be started automatically when data is enqueued to the usb socket.
So when enabling configfs gadget, it doesn't start ffs_service.

Change-Id: I660e0cf157320f6a4e8f152a028772547dd701f6
(cherry picked from commit 5e9327a2d5b5215b4371b406339dc83a89891074)

4 years agoIntroduce 3 level AOD brightness 54/227254/1 accepted/tizen/5.5/unified/20200311.131001 submit/tizen_5.5/20200311.031543
Youngjae Cho [Wed, 11 Mar 2020 00:53:16 +0000 (09:53 +0900)]
Introduce 3 level AOD brightness

Change-Id: Ie8d980be45455bb45e29f893592101a382247668
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 3afe9b27685260317588ffc2b5b314bb68fdfaf8)

4 years agoDelete usb mode not supported by tizen 42/226442/1 accepted/tizen/5.5/unified/20200303.170607 submit/tizen_5.5/20200303.003248
INSUN PYO [Fri, 21 Feb 2020 11:04:08 +0000 (20:04 +0900)]
Delete usb mode not supported by tizen

usb mode supported
/////////////////////////////////////////////////////////////////////////////////////////////////////////

{SET_USB_DEFAULT,         USB_FUNCTION_MTP | USB_FUNCTION_ACM}
{SET_USB_SDB,             USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB}

{SET_USB_NONE,            USB_FUNCTION_NONE}
{SET_USB_RNDIS,           USB_FUNCTION_RNDIS}
{SET_USB_RNDIS_DIAG,      USB_FUNCTION_RNDIS | USB_FUNCTION_DIAG}
{SET_USB_DIAG_RMNET,      USB_FUNCTION_DIAG | USB_FUNCTION_RMNET}
{SET_USB_ACM_SDB_DM,      USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DM}

{SET_USB_SDB_DIAG,        USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG}
{SET_USB_DIAG_SDB,        USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG}

{SET_USB_RNDIS_SDB,       USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS}
{SET_USB_RNDIS_TETHERING, USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS}
{SET_USB_RNDIS_SDB_ACM,   USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

Change-Id: Ibec4c14fcde3e55d1b17cec1ba4e76884ddeaf6a
(cherry picked from commit 6bbeb2c29ca623f148a3aefe5181580891183fec)

4 years agoAdd software bezel control 31/225831/1 accepted/tizen/5.5/unified/20200227.121139 submit/tizen_5.5/20200226.105102
Youngjae Cho [Mon, 24 Feb 2020 04:10:54 +0000 (13:10 +0900)]
Add software bezel control

Change-Id: I6eb441abc0ea10e96d14bb3b4d7f114e0689efe3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit f66ad5ff8275412eab4c0bc4279764033ee81ad8)

4 years agoRemove workaround code that it makes usb work in Artik 11/225611/1 accepted/tizen/5.5/unified/20200224.123548 submit/tizen_5.5/20200221.073347
INSUN PYO [Fri, 21 Feb 2020 05:04:52 +0000 (14:04 +0900)]
Remove workaround code that it makes usb work in Artik

Excon does not work perfectly in Artik.
So I added the workaround code, which causes some strange USB initialization.

This problem disappears when the extcon value is always fixed at 1.
So I asked the kernel team to fix the extcon value to 1 and removed the workaround code.
If extcon is always 1, deviecd will not recognize when usb is disconnected, but it will work normally.

Conclusion: For targets where extcon does not work perfectly, deviced do not support usb connect/disconnect.

Change-Id: Idf06c987f589218a458df6904d8fb8f9132f05c3
(cherry picked from commit f68550cd0c83a60621de5ef70de2a9edcba8b5d7)

4 years agoUse mtp-responder-dummy.socket when there is no mtp-responser.socket 08/225208/1 accepted/tizen/5.5/unified/20200221.094219 submit/tizen_5.5/20200218.230832 submit/tizen_5.5/20200220.232939
INSUN PYO [Tue, 18 Feb 2020 04:41:52 +0000 (13:41 +0900)]
Use mtp-responder-dummy.socket when there is no mtp-responser.socket

The mtp-responder.socket is special in the configfs environment.
If mtp-responder.socket is missing, gadget configuration will fail.
As a result, all usb operations do not work properly.
So in environments that mtp doesn't support, use dummy mtp.

Applied target : XU3, Artik headless, RPI4

Change-Id: I34bee7c1837ada478959407cd7c6500e219f28bc
(cherry picked from commit 0202291b7c1b3be3db32bba3001d51d7efe6a362)

4 years agoExtend USB gadget configuration for sync to MCD tizen 4.0 86/224586/1 accepted/tizen/5.5/unified/20200214.050323 submit/tizen_5.5/20200212.002753
INSUN PYO [Mon, 10 Feb 2020 04:45:12 +0000 (13:45 +0900)]
Extend USB gadget configuration for sync to MCD tizen 4.0

static const unsigned int usb_mode_features[SET_USB_MODE_MAX] = {
   [SET_USB_NONE] = USB_FUNCTION_NONE,
   [SET_USB_DEFAULT] = USB_FUNCTION_MTP | USB_FUNCTION_ACM,
   [SET_USB_SDB] = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB,
   [SET_USB_SDB_DIAG] = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG,
   [SET_USB_RNDIS_TETHERING] = USB_FUNCTION_RNDIS | USB_FUNCTION_SDB | USB_FUNCTION_ACM,
   [SET_USB_RNDIS] = USB_FUNCTION_RNDIS,
   [SET_USB_RNDIS_SDB] = USB_FUNCTION_RNDIS | USB_FUNCTION_SDB | USB_FUNCTION_ACM,
   [SET_USB_DIAG_SDB] = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG,
   [SET_USB_RNDIS_DIAG] = USB_FUNCTION_RNDIS | USB_FUNCTION_DIAG,
   [SET_USB_DIAG_RMNET] = USB_FUNCTION_DIAG | USB_FUNCTION_RMNET,
   [SET_USB_ACM_SDB_DM] = USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DM,
   [SET_USB_RNDIS_SDB_ACM] = USB_FUNCTION_RNDIS | USB_FUNCTION_ACM | USB_FUNCTION_SDB,
};

Change-Id: I357240c37f5ceb694929c7f9cde6a04587212dec
(cherry picked from commit 0c129c2561c2e62f2176e4435412a969b4617fb2)

4 years agoApply mac addres for rndis mode 63/224263/1 accepted/tizen/5.5/unified/20200210.131643 submit/tizen_5.5/20200207.085239
Youngjae Cho [Wed, 5 Feb 2020 06:03:04 +0000 (15:03 +0900)]
Apply mac addres for rndis mode

Change-Id: Ic3472d6b6da35b199704ca6150447cab05638a71
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit afc9e97d20d06918ade6e6cc555226bc30131889)

4 years agoExtend USB gadget configuration for ACM mode. 56/224056/1 accepted/tizen/5.5/unified/20200207.122810 submit/tizen_5.5/20200206.042606
INSUN PYO [Thu, 6 Feb 2020 03:58:30 +0000 (12:58 +0900)]
Extend USB gadget configuration for ACM mode.

TV profile doesn't have mtp-responder.service.
If mtp-responder.service does not exist in the configfs environment, usb initialization will fail.
So, we check to see if mtp-responder.service exists and remove MTP from usb mode if it doesn't exist.

If you do not build deviced in engineer mode and have a TV profile, ACM only mode exists.
(Engineer mode always adds SDB to usb mode.)

Change-Id: I0472ee10e572e36638d73df7b2be691c49d8f857
(cherry picked from commit 16d7f6721fe4650090cb94af21e001713956de7d)

4 years agoExtend USB gadget configuration for MTP + ACM mode. 52/224052/1 submit/tizen_5.5/20200206.031849
INSUN PYO [Thu, 6 Feb 2020 02:47:05 +0000 (11:47 +0900)]
Extend USB gadget configuration for MTP + ACM mode.

The usb default value in MCD is MTP + ACM.

Change-Id: I46fb8b450029d061fb53da2e60c168c5a54b1fb6
(cherry picked from commit 6a9dfee0f087d09589556c2a81adc204eb3ffd0b)

4 years agoRevert removing ARRAY_SIZE macro 33/223933/1 accepted/tizen/5.5/unified/20200205.063450 submit/tizen_5.5/20200205.062045
INSUN PYO [Wed, 5 Feb 2020 06:12:43 +0000 (15:12 +0900)]
Revert removing ARRAY_SIZE macro

device-manager-plugin-sc7730 use ARRAY_SIZE as symbol instead of simple define.

E/DEVICE_NODE(  350): common.c: hw_get_info(63) > fail to open module : /usr/lib/hw/external_connection.so: undefined symbol: ARRAY_SIZE
E/DEVICED (  350): extcon.c: extcon_probe(411) > There is no extcon class.
E/DEVICED (  350): devices.c: devices_init(118) > [extcon] Failed to probe.
E/DEVICE_NODE(  350): common.c: hw_get_info(63) > fail to open module : /usr/lib/hw/led.so: undefined symbol: ARRAY_SIZE
E/DEVICED (  350): rgb.c: rgb_probe(387) > There is no LED HAL.
E/DEVICED (  350): devices.c: devices_init(118) > [rgbled] Failed to probe.
E/DEVICE_NODE(  350): common.c: hw_get_info(63) > fail to open module : /usr/lib/hw/led.so: undefined symbol: ARRAY_SIZE
E/DEVICED (  350): torch.c: led_service_load(160) > Failed to load led shared library: -2
E/DEVICED (  350): devices.c: devices_init(118) > [torchled] Failed to probe.
E/DEVICE_NODE(  350): common.c: hw_get_info(63) > fail to open module : /usr/lib/hw/led.so: undefined symbol: ARRAY_SIZE

Change-Id: I621dbca201a36681e23ece03fbb9d7c12eb5d127
(cherry picked from commit 9a038fa3dfa3b8aea9606a7b9586d8f6103ecdc5)

4 years agoExtend USB gadget configuration for usb debug mode. 33/223733/1 submit/tizen_5.5/20200205.031401
INSUN PYO [Mon, 3 Feb 2020 10:02:37 +0000 (19:02 +0900)]
Extend USB gadget configuration for usb debug mode.

In MCD user mode binary, sdb is disabled and mtp mode is only enabled.
When you enable debug mode(on Setting menu), both sdb is enabled.
As a result, sdb and mtp are enabled.
But, there were no configuration of SDB + MTP mode.

Device log at this situation.
//////////////////////////////////////////////////////////////////////
01-15 22:25:31.787 I/DEVICED (P 2608, T 2608): usb-debug.c: usb_debug_changed(64) > USB debug ON.
01-15 22:25:31.788 I/DEVICED (P 2608, T 2608): usb-debug.c: usb_debug_mode_changed(81) > Previous mode(1).
01-15 22:25:31.788 I/DEVICED (P 2608, T 2608): usb-debug.c: usb_debug_mode_changed(88) > New mode(5).
01-15 22:25:31.789 E/DEVICED (P 2608, T 2608): usb.c: usb_change_gadget(244) > Unable to translate id into gadget: -22
01-15 22:25:31.789 E/DEVICED (P 2608, T 2608): usb.c: usb_change_mode(332) > Failed to change gadget: -22
///////////////////////////////////////////////////////////////////////

Change-Id: Ic3f5420603b8ef02411ed429540542710415685b

4 years agoFix bug - move _available_funcs to source code form header. 00/223500/1 accepted/tizen/5.5/unified/20200205.014419 submit/tizen_5.5/20200131.024742 submit/tizen_5.5/20200204.002631
INSUN PYO [Thu, 30 Jan 2020 08:50:09 +0000 (17:50 +0900)]
Fix bug - move _available_funcs to source code form header.

The _available_funcs is in header and static type.
So, _Available_funcs variables are created for all sources that include the header.
In this case, usb_cfs_clinet-common.c, usb_client_common.c and usb_gadget_common.c make its own static variable.

Change-Id: I29d2bb9d8543dafd049bbb9145fc9e4e14c13394
(cherry picked from commit 9a571b90e16b68fdbe2cdcb7ec3ca6e14a1b8b3b)

4 years agoRefactoring usb gadget header #2 81/223481/1
INSUN PYO [Thu, 30 Jan 2020 06:22:03 +0000 (15:22 +0900)]
Refactoring usb gadget header #2

Change-Id: Ic9473dbbeee14d609e357c1d3fcc00dbea1dc434
(cherry picked from commit 1c426172aa3a5047914ee14bb0ade36bff0e6826)

4 years agoFix bug 67/223467/1
INSUN PYO [Thu, 30 Jan 2020 04:30:45 +0000 (13:30 +0900)]
Fix bug

Change-Id: I1ee04b2ca4927f71b5c96c5dcc7988893fc322d6
(cherry picked from commit 2e5bad8ab1f6280dc4149cc0792604f4df40180f)

4 years agoAdd USB rndis_handler for rndis mode 02/223302/1 submit/tizen_5.5/20200128.093910
INSUN PYO [Tue, 28 Jan 2020 08:40:43 +0000 (17:40 +0900)]
Add USB rndis_handler for rndis mode

Rndis mode needs rndis.service and sshd.service.
Also, rndis.service should run first, and sshd.service should run later.

The rndis_handler starts rndis.service and service trigger starts sshd.service.

Change-Id: I1a2f3960b257ce56a7d49e47848ab11021ad418e
(cherry picked from commit 90247ab0794ce0dde0d1bd5f8378fa0a055b5129)

4 years agoAdd USB enable/disable handler 55/223255/1 tizen_5.5_tv accepted/tizen/5.5/unified/20200129.120429 submit/tizen_5.5/20200128.045317
INSUN PYO [Tue, 28 Jan 2020 04:20:15 +0000 (13:20 +0900)]
Add USB enable/disable handler

Change-Id: I2a488ef551a3c92a36cfa428787cdfdd31f82cab
(cherry picked from commit 2dbaad820b5f0ca6c9b59ac61c3c14460775f915)

4 years agoRefactoring usb gadget for functionfs 05/223105/2 submit/tizen_5.5/20200128.022624
INSUN PYO [Thu, 23 Jan 2020 01:26:06 +0000 (10:26 +0900)]
Refactoring usb gadget for functionfs

Change-Id: Ieb87a66543095a44773bdfba105c37b19b3b2cfa

4 years agoRefactoring usb gadget header 95/223095/1 accepted/tizen/5.5/unified/20200128.034023 submit/tizen_5.5/20200122.234617
INSUN PYO [Wed, 22 Jan 2020 06:44:05 +0000 (15:44 +0900)]
Refactoring usb gadget header

Merge "struct usb_function_witch_service" into "struct usb_function".

Change-Id: I9ed616f7e5933594093e9a027dd7d56cf1b016c8
(cherry picked from commit c76e213a9ecef080b7dc3ae92105969e9d531deb)

4 years agoSupport touchscreen powersaving 75/222575/1 accepted/tizen/5.5/unified/20200121.165900 submit/tizen_5.5/20200116.082815 submit/tizen_5.5/20200121.093910
Youngjae Cho [Thu, 21 Nov 2019 03:01:31 +0000 (12:01 +0900)]
Support touchscreen powersaving

Change-Id: I5e0a6f77f1ae6cf8678b0240f3c68c907acf4f38
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 4732d69638a25e1d142c50783200b919c0f35f2d)

4 years agoAdd code to run rndis.service(rndis) and data-route.service(acm) in configfs environment 90/222490/2 accepted/tizen/5.5/unified/20200116.120643 submit/tizen_5.5/20200115.105138
INSUN PYO [Fri, 3 Jan 2020 06:37:29 +0000 (15:37 +0900)]
Add code to run rndis.service(rndis) and data-route.service(acm) in configfs environment

Rndis and acm need their services to complete initialization.

Change-Id: I24381f2e30a4cf1e3051ea4a304d65ad8eb59f50
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
(cherry picked from commit c0fb89192952ca0806c26abddf5daf0e3f3acc30)

4 years agoFix memory leak in configfs 50/222450/1 accepted/tizen/5.5/unified/20200116.120701 submit/tizen_5.5/20200115.084508
INSUN PYO [Wed, 15 Jan 2020 05:05:16 +0000 (14:05 +0900)]
Fix memory leak in configfs

Change-Id: I4df7a7dcb55382a18b93a9bd3afbe909c20c6998
(cherry picked from commit 5a43d7f0d0e7edc87e4afc5c1aa6fbc03b5cf212)

4 years agoExtend USB gadget configuration for further usage 30/222030/1 accepted/tizen/5.5/unified/20200110.090102 submit/tizen_5.5/20200109.072639 submit/tizen_5.5/20200110.082809
INSUN PYO [Thu, 9 Jan 2020 07:04:59 +0000 (16:04 +0900)]
Extend USB gadget configuration for further usage

Change-Id: I05da5a18e1b7734efa8a1a8d319a5c92e3c0d998
(cherry picked from commit ec4f84f3ab81af1197045760b96f90c194608fd9)

4 years agoChange file permission from "-rwxr-xr-x" to "-rw-r--r--" 80/221480/1 accepted/tizen/5.5/unified/20200105.221131 submit/tizen_5.5/20200103.025031
INSUN PYO [Fri, 3 Jan 2020 02:44:21 +0000 (11:44 +0900)]
Change file permission from "-rwxr-xr-x" to "-rw-r--r--"

Change-Id: I8dc05a6e62fd0a6a10199639d4316e22823776cd
(cherry picked from commit 8725dfd7e408db4f59c1722475d2d98c71d48741)

4 years agoDo not check for services failures when disabling usb gadget 03/221303/1 accepted/tizen/5.5/unified/20191231.071225 submit/tizen_5.5/20191231.044416
INSUN PYO [Tue, 31 Dec 2019 04:24:40 +0000 (13:24 +0900)]
Do not check for services failures when disabling usb gadget

Change-Id: I729c3deeba4ab1f7e6ef301090c4ef617f02b4a7
(cherry picked from commit 3767e44502d2bbaf410e682195d0d5ce7b4b871c)

4 years agoAdd USB_FUNCTION_GROUP_WITH_POST_SERVICE for cfs post service. 22/221222/1 accepted/tizen/5.5/unified/20200102.013952 submit/tizen_5.5/20191230.073843
INSUN PYO [Mon, 30 Dec 2019 07:21:12 +0000 (16:21 +0900)]
Add USB_FUNCTION_GROUP_WITH_POST_SERVICE for cfs post service.

To support CFS acm and rndis mode, add new USB_FUNCTION_GROUP_WITH_POST_SERVICE mode.

Legacy mode         : usb prepare --> usb enable --> start sdb, mtp, rndis, and data-router service
CFS sdb, mtp mode   : usb prepare -> start sdb and mtp service -> usb enable
CFS acm, rndis mode : usb prepare -> usb enable -> start acm and rndis service

Change-Id: I7199636d0b2bcfeac068e1c1575e89926c8f7134
(cherry picked from commit 6312d5a191ccc31b8c20ec109d4e2e3ba8406899)

4 years agoAdd data-router.service for USB_FUNCTION_ACM 96/221096/2 accepted/tizen/5.5/unified/20191228.075030 submit/tizen_5.5/20191227.112106
Hyotaek Shim [Fri, 27 Dec 2019 04:34:30 +0000 (13:34 +0900)]
Add data-router.service for USB_FUNCTION_ACM

Change-Id: Ia11f7f904dbb47f5827756578a6dbc69e8214db6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoDo not stop services while enabling usb gadget 95/221095/1
Hyotaek Shim [Fri, 27 Dec 2019 04:32:50 +0000 (13:32 +0900)]
Do not stop services while enabling usb gadget

Change-Id: I86557c424d400c27260bb427a409940c022a8f91
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoSupport USB tethering 50/214950/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.022829 accepted/tizen/5.5/unified/mobile/hotfix/20201027.085822 accepted/tizen/unified/20191004.003706 submit/tizen/20191001.232525 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
INSUN PYO [Mon, 30 Sep 2019 06:33:23 +0000 (15:33 +0900)]
Support USB tethering

To enable USB tethering, you must run the following two commands after configuring the USB endpoint.

1. /sbin/ifconfig usb0 192.168.129.3 up
2. /Sbin/route add -net 192.168.129.0 netmask 255.255.255.0 dev usb0

These commands are not directly executed by deviced, but are delegated to rndis.service.
The reason is to use the already implemented structure (sdbd.service and mtp-response.service).

The patch has been split into deviced and libdeivce-node.
The rndis.service is in deviced, and the code to run rndis.service is in libdevice-node.

Connected patch: "Support USB tethering" commit on deviced.

Change-Id: If4f64310c28cd91f4d2864365127a088e977e26a

5 years agousb_cfs_client: Enable gadget at reconfiguration #2 59/213859/1 submit/tizen/20191001.105102
INSUN PYO [Wed, 11 Sep 2019 07:49:44 +0000 (16:49 +0900)]
usb_cfs_client: Enable gadget at reconfiguration #2

Because it is a workround code for Artik, restrict this patch to artik.
(This workaround will be removed in tizen 6.0)

Change-Id: Ice81dd8c37359bdc4a37099ecff27d696f7f9ec0
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
5 years agoAdd new member for hw_board 79/211179/1 accepted/tizen/unified/20190805.042837 submit/tizen/20190801.065937 submit/tizen/20190801.083214
Youngjae Cho [Wed, 31 Jul 2019 02:29:23 +0000 (11:29 +0900)]
Add new member for hw_board

Change-Id: Ia61fa711c1a98aeaf8d8c1f30a5262820eb4317b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoAdd new members for battery_info and display_device 91/204191/2 accepted/tizen/unified/20190422.231517 submit/tizen/20190422.062920
lokilee73 [Mon, 22 Apr 2019 05:55:00 +0000 (14:55 +0900)]
Add new members for battery_info and display_device
- freq_strength for wireless battery charging
- set_multi_brightness for brightness change
  ex) set_multi_brightess(80, 5, 10ms)
      brightness is changed to 80 through 5 steps
      and 10ms delay is applied on each step
- enum for display_aod_mode
  ex) It is to get infomation about always on mode

Change-Id: I4d04d7e0c4bffa660845b924888e8fe8fd4b97e3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoChange libgdbus library name to libsyscommon. 59/203159/1 accepted/tizen/unified/20190412.124555 submit/tizen/20190410.090025
Yunmi Ha [Wed, 10 Apr 2019 08:22:21 +0000 (17:22 +0900)]
Change libgdbus library name to libsyscommon.

Change-Id: I3611395b38a3858d0838ddf94dc12e958fd91856
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
5 years agoApply the latest type for image effect 59/202859/5 accepted/tizen/unified/20190410.002223 submit/tizen/20190409.053926
lokilee73 [Fri, 5 Apr 2019 07:10:11 +0000 (16:10 +0900)]
Apply the latest type for image effect

Change-Id: I849387a3a55104270207d1d70fac9c45490652a5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped() 69/202169/2 accepted/tizen/unified/20190326.024559 submit/tizen/20190325.102033
Hyotaek Shim [Mon, 25 Mar 2019 10:15:19 +0000 (19:15 +0900)]
Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()

Change-Id: I94d972c7dc68d9e6b246702b9217d0b92c908d0c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd hal test for touch sensitivity 99/200699/2 accepted/tizen/unified/20190311.072452 accepted/tizen/unified/20190312.113027 submit/tizen/20190306.005724 submit/tizen/20190308.023010 submit/tizen/20190311.073252
lokilee73 [Thu, 28 Feb 2019 11:09:09 +0000 (20:09 +0900)]
Add hal test for touch sensitivity

Change-Id: I3a689c679e08401c6d9f5bd5dc2ff66f516671e2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd HAL test for bezel 95/200595/1
lokilee73 [Wed, 27 Feb 2019 07:11:37 +0000 (16:11 +0900)]
Add HAL test for bezel

Change-Id: I7117b333ae3c17d71d2c0f8197a68ebee0025426
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd bezel for wearable target 38/200538/2
lokilee73 [Tue, 26 Feb 2019 08:54:25 +0000 (17:54 +0900)]
Add bezel for wearable target

Change-Id: I1ba5453324fcf50f62dbf439ba303c87275580e1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd thermistor feature for hal test 47/200347/1
lokilee73 [Fri, 22 Feb 2019 04:11:50 +0000 (13:11 +0900)]
Add thermistor feature for hal test

Change-Id: I0247d1c74ae8f4eb0ab5e7df34f06b6f6a837b69
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd device_thermal_e 33/196433/3 accepted/tizen/unified/20190219.154203 accepted/tizen/unified/20190221.165818 submit/tizen/20190218.105211 submit/tizen/20190220.073046
lokilee73 [Fri, 28 Dec 2018 08:50:35 +0000 (17:50 +0900)]
Add device_thermal_e

Change-Id: I29a0c82d3973e9a6a01d16cba2def98362c30bc5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agodbus: delete systemd related files 81/199281/1 accepted/tizen/unified/20190211.060145 submit/tizen/20190208.064159 submit/tizen/20190208.083757
sanghyeok.oh [Fri, 8 Feb 2019 06:38:37 +0000 (15:38 +0900)]
dbus: delete systemd related files

Change-Id: I172e43fddb0782253de6f1f07bd2631623f01d83
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agodbus: remove systemd start/stop unit api 65/198765/3
sanghyeok.oh [Tue, 29 Jan 2019 07:53:20 +0000 (16:53 +0900)]
dbus: remove systemd start/stop unit api

Change-Id: Ic498a2c56ffaccdcacf2c01d5d20a169fc5324cf
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoRemove unused plugin about cpu, process, memory and vibrator 53/198653/4 accepted/tizen/unified/20190201.061337 submit/tizen/20190131.021840 submit/tizen/20190131.080207
lokilee73 [Mon, 28 Jan 2019 11:01:38 +0000 (20:01 +0900)]
Remove unused plugin about cpu, process, memory and vibrator

OAL(OEM Adaptation Layer) still exists in libdevice-node,
even though HAL was implemented.

Change-Id: I675272ff3543d0a213e002d00726104b2bccd1fe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoFix memory leak in usb gadget 95/197795/4 accepted/tizen/unified/20190128.061155 accepted/tizen/unified/20190129.064334 submit/tizen/20190117.112303 submit/tizen/20190128.105151
lokilee73 [Wed, 16 Jan 2019 11:33:15 +0000 (20:33 +0900)]
Fix memory leak in usb gadget

Change-Id: I437409ae6c162ecd7dd4a7abf70a5290f12cda98
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agosensitivity: merge sensitivity 74/196674/1 accepted/tizen/unified/20190108.062321 submit/tizen/20190107.023946 submit/tizen/20190107.113744
sanghyeok.oh [Thu, 3 Jan 2019 10:26:54 +0000 (19:26 +0900)]
sensitivity: merge sensitivity

Change-Id: Idaf3029807a13bebe764a0a8c99a8ee5de12cb9a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoRemove the execution flag from non-executables 06/196006/1 accepted/tizen/unified/20181227.062051 accepted/tizen/unified/20181231.125031 submit/tizen/20181226.101405 submit/tizen/20181226.112600 submit/tizen/20181231.010834 submit/tizen/20181231.070821
Paweł Szewczyk [Thu, 20 Dec 2018 16:17:07 +0000 (17:17 +0100)]
Remove the execution flag from non-executables

Change-Id: I8dac91e163b1676aeeaf30e640fcf6a52bcf17a4
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoChange thermal information structure to get temp and adc 46/195146/2
lokilee73 [Tue, 11 Dec 2018 06:21:34 +0000 (15:21 +0900)]
Change thermal information structure to get temp and adc

Thermal state should be decided on deviced side.
So, device HAL has only to supply temp and adc.

Change-Id: I199a3a5b475cbba5eb8cfa672eba5f29f46725e3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoFix some static analysis warnings. 46/193346/1 accepted/tizen/unified/20181121.060510 submit/tizen/20181120.234806
Michal Bloch [Mon, 19 Nov 2018 14:04:05 +0000 (15:04 +0100)]
Fix some static analysis warnings.

Change-Id: I632bd9813094ade3b03dadd7d21bc62dc2152710
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
6 years agousb: Move ffs services cleanup to hw_cfs_gadget_close 94/191294/1 submit/tizen/20181015.121248
Paweł Szewczyk [Mon, 15 Oct 2018 11:35:21 +0000 (13:35 +0200)]
usb: Move ffs services cleanup to hw_cfs_gadget_close

Change-Id: I1fc61542b8228ff038b64ee1df3cd5b6c3947a1c
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb_client: Cleanup ffs services at gadget disable 06/191206/1 submit/tizen/20181015.022811
Paweł Szewczyk [Fri, 12 Oct 2018 11:47:05 +0000 (13:47 +0200)]
usb_client: Cleanup ffs services at gadget disable

Each functionfs daemon spawned at gadget initialization should be closed
before functionfs can be succesfully cleaned up.

Change-Id: I97654fa882f5b7346e5aee3aedd3ea00e50fcb47
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd get_number for multi led 78/189478/1 accepted/tizen/5.0/unified/20181102.020606 accepted/tizen/unified/20180928.080555 accepted/tizen/unified/20181001.150956 submit/tizen/20180927.030248 submit/tizen/20181001.110913 submit/tizen_5.0/20181101.000004
lokilee73 [Tue, 18 Sep 2018 05:54:21 +0000 (14:54 +0900)]
Add get_number for multi led

Change-Id: If2096cbf5860b783a9a9add98ca8f3a2fa1783a2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoAdd .gitignore 68/188868/1
Hyotaek Shim [Tue, 11 Sep 2018 07:21:08 +0000 (16:21 +0900)]
Add .gitignore

Change-Id: Idcf456b1628d0f65df5b5176298f12e993bc4323
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoMinor fix on license 67/188867/2
Hyotaek Shim [Tue, 11 Sep 2018 07:19:37 +0000 (16:19 +0900)]
Minor fix on license

Change-Id: Iedd043c66897eb8a4cca0e636dc98eba75a33ab5
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoAdd license file on all rpm packages 52/188852/1 accepted/tizen/unified/20180912.061611 submit/tizen/20180911.060541
pr.jung [Tue, 11 Sep 2018 05:58:17 +0000 (14:58 +0900)]
Add license file on all rpm packages

Change-Id: Idad73eb748eb8fccf07095ab30d8fe13ccbeafb7
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoAdd exception handle for HAL test 61/187761/1 accepted/tizen/unified/20180828.181916 submit/tizen/20180828.075148
lokilee73 [Tue, 28 Aug 2018 07:34:35 +0000 (16:34 +0900)]
Add exception handle for HAL test

Change-Id: Ifbfa3fd48e57debb70a4f9f6e3954f46c29ecdd7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoTo fix gtest errors 10/187310/2 submit/tizen/20180822.022033
lokilee73 [Wed, 22 Aug 2018 02:01:42 +0000 (11:01 +0900)]
To fix gtest errors

There were errors by unsupported devices.
  ex) thermal and cpu in wearable target
Old value of h/w info remained and it caused errors.
So, initialize h/w info at the beggining of gtest.

Change-Id: I95edc88ff7020346f0a9d1bf5c0edff6dea28bc0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRename deprecated function, updated_cb for battery, thermal and extcon 23/187223/1 accepted/tizen/unified/20180821.160748 submit/tizen/20180821.082124
lokilee73 [Tue, 21 Aug 2018 05:30:04 +0000 (14:30 +0900)]
Rename deprecated function, updated_cb for battery, thermal and extcon

Change-Id: I92d16c3233894a5e662126eee32bdc5fdce5a890
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoMake simple helper functions static inline 51/186951/4 accepted/tizen/unified/20180821.091035 submit/tizen/20180820.103206
Paweł Szewczyk [Thu, 16 Aug 2018 12:45:09 +0000 (14:45 +0200)]
Make simple helper functions static inline

To prevent dynamic linking to these functions by modules that use them
we make them static inline.

Change-Id: Ifc753b5eff9bcde3f54c3f98e2494f7a331dc73e
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoUnify cpp files to one 58/187058/1
lokilee73 [Fri, 17 Aug 2018 11:35:40 +0000 (20:35 +0900)]
Unify cpp files to one

Merge below cpp files to device_haltests.cpp
gtest_hal_battery.cpp
gtest_hal_cpu.cpp
gtest_hal_display.cpp
gtest_hal_extcon.cpp
gtest_hal_ir.cpp
gtest_hal_rgb.cpp
gtest_hal_thermal.cpp
gtest_hal_touchscreen.cpp
gtest_hal_usb_client.cpp
gtest_hal_gadget.cpp

Change-Id: I20a155136b21e6b2a4a86daeb24f2592dc281b22
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agounittest: coverity fix 84/185284/2
sanghyeok.oh [Fri, 27 Jul 2018 08:13:07 +0000 (17:13 +0900)]
unittest: coverity fix

Change-Id: I71ea9b6eddd1d39c72e5e3fbd9e391196607c2ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoAdd voltage and temperature in battery_info 32/178932/2 accepted/tizen/unified/20180712.092608 submit/tizen/20180706.105024 submit/tizen/20180710.030326
lokilee73 [Tue, 15 May 2018 02:32:08 +0000 (11:32 +0900)]
Add voltage and temperature in battery_info

Change-Id: Ia93aecb173b11db66d9c397bf53e048751ccd080
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoAdd omitted gtest cases 27/183427/2
lokilee73 [Thu, 5 Jul 2018 08:46:20 +0000 (17:46 +0900)]
Add omitted gtest cases

get_frame_rate for LCD and free_gadget for USB Client

Change-Id: Ia898bbb31255b015bf8076dcd445c8cc4dcbda02
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agousb_cfs_client: Enable gadget at reconfiguration 12/183012/1
Paweł Szewczyk [Fri, 29 Jun 2018 13:37:59 +0000 (15:37 +0200)]
usb_cfs_client: Enable gadget at reconfiguration

This workaround was introduced on artik, where gadget need to be enabled
before usb connection can be properly monitored. As this does little
harm, it's moved here to prevent regression on artik.

The side effect of this is starting some functionfs daemons long before
they are actually needed, so this should be removed when exton issue is
fixed.

Change-Id: Ia41c21e3c44d7d3a00d557f181e8c22766c6f31b
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoMove usb_gadget common code from device-manager-plugins 00/182500/4 submit/tizen/20180628.074924
Paweł Szewczyk [Mon, 25 Jun 2018 12:43:03 +0000 (14:43 +0200)]
Move usb_gadget common code from device-manager-plugins

Change-Id: I19f45a7f858bd09f4e2403e4227a7c2a71aab05a
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoMove container_of macro to common.h 99/182499/4
Paweł Szewczyk [Mon, 25 Jun 2018 10:57:23 +0000 (12:57 +0200)]
Move container_of macro to common.h

The container_of macro can be used by many modules. This commit moves it
to common header to prevent duplication.

Change-Id: I3d87766b561db8f67354d0abe8784ea62d05016d
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd HAL for board 98/182498/4
Paweł Szewczyk [Mon, 25 Jun 2018 10:32:22 +0000 (12:32 +0200)]
Add HAL for board

For now includes only getting serial number of the device

Change-Id: I2541fccdb6a3a083b89ce5cf277f482d12b44dfc
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd common code from usb_client HAL 97/182497/4
Paweł Szewczyk [Fri, 22 Jun 2018 13:47:47 +0000 (15:47 +0200)]
Add common code from usb_client HAL

Change-Id: I863b5e9757f943eb6659e939118b9c03e22c8229
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoMove code from 'shared' files to common package 20/181420/4
Paweł Szewczyk [Wed, 13 Jun 2018 12:33:53 +0000 (14:33 +0200)]
Move code from 'shared' files to common package

Change-Id: Idd38578a32f5b415d7c2f9f0bcf37e7a71bcf770
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd API for controling systemd units 19/181419/4
Paweł Szewczyk [Wed, 30 May 2018 12:31:47 +0000 (14:31 +0200)]
Add API for controling systemd units

Change-Id: Ic13a69fbf0008ce37c0774b857e718335c0cf921
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd cpp files for HAL test 15/180815/8
lokilee73 [Mon, 4 Jun 2018 11:21:27 +0000 (20:21 +0900)]
Add cpp files for HAL test

Change-Id: I374e127cdccecd9d8642c31460cc57cd83eed260
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoChange rpm name from device-hal-tc to device-haltests 27/180827/1 accepted/tizen/unified/20180615.071956 submit/tizen/20180605.005646 submit/tizen/20180614.143144 submit/tizen/20180615.005643
lokilee73 [Mon, 4 Jun 2018 14:00:15 +0000 (23:00 +0900)]
Change rpm name from device-hal-tc to device-haltests

Change-Id: If8ef874a6f181bbf36504b3ef9511af4f0792477
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agogtest: Add gtest for led 22/174822/2
pr.jung [Wed, 4 Apr 2018 05:00:59 +0000 (14:00 +0900)]
gtest: Add gtest for led

Change-Id: I0d3c88dd1131fb4262d54b766002043c4a1ee333
Signed-off-by: pr.jung <pr.jung@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agogtest: Add gtest for battery, cpu, display, extcon, and touchscreen 62/174762/1
pr.jung [Wed, 4 Apr 2018 04:58:44 +0000 (13:58 +0900)]
gtest: Add gtest for battery, cpu, display, extcon, and touchscreen

Change-Id: I733890ff1261e3e45e11129ea82f6e7e12a65a9e
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agogtest: Add gtest for ir 37/174137/7
pr.jung [Wed, 28 Mar 2018 11:02:58 +0000 (20:02 +0900)]
gtest: Add gtest for ir

Change-Id: I26ae1223e63c650c354a3f152fe6669023ac348a
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoremove unused usb_client item 11/172411/1 accepted/tizen/unified/20180314.141513 accepted/tizen/unified/20180316.062509 submit/tizen/20180314.002506 submit/tizen/20180314.081248 submit/tizen/20180315.052738
INSUN PYO [Wed, 14 Mar 2018 00:22:00 +0000 (09:22 +0900)]
remove unused usb_client item

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I500619bd569067dbe7d0c9c33613a141aa756066

6 years agousb_device: add usb configfs HAL 04/171904/2 submit/tizen/20180314.000517
INSUN PYO [Thu, 8 Mar 2018 05:50:34 +0000 (14:50 +0900)]
usb_device: add usb configfs HAL

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I532fbf31d95567efb1550293632f97480dc11811

6 years agousb: Add service names to suitable USB functions 18/171418/1
Krzysztof Opasiak [Fri, 2 Mar 2018 20:44:11 +0000 (21:44 +0100)]
usb: Add service names to suitable USB functions

Both MTP and SDB functions requires userspace service to work.
So let's add names of those services to function structure.

Change-Id: I544fb4251751c8c98f11197af2898cf5c1a53d33
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 04/107604/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/4.0/unified/20170816.013134 accepted/tizen/4.0/unified/20170829.015847 accepted/tizen/common/20161229.140153 accepted/tizen/ivi/20161229.233207 accepted/tizen/mobile/20161229.233108 accepted/tizen/tv/20161229.233129 accepted/tizen/unified/20170309.033800 accepted/tizen/wearable/20161229.233148 submit/tizen/20161229.040631 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004 submit/tizen_unified/20170308.100409 tizen_4.0.m1_release
taeyoung [Thu, 29 Dec 2016 01:21:35 +0000 (10:21 +0900)]
Merge branch 'tizen_3.0' into tizen

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I4af8a6b19362cb83a5289815977fa87c3127c305

7 years agocpu: add cpu HAL interfaces 72/105272/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.141446 accepted/tizen/3.0.m2/tv/20170104.142024 accepted/tizen/3.0.m2/wearable/20170104.142319 accepted/tizen/3.0/common/20161222.181704 accepted/tizen/3.0/ivi/20161222.093510 accepted/tizen/3.0/mobile/20161222.093423 accepted/tizen/3.0/tv/20161222.093434 accepted/tizen/3.0/wearable/20161222.093456 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161222.053422
taeyoung [Fri, 16 Dec 2016 06:51:13 +0000 (15:51 +0900)]
cpu: add cpu HAL interfaces

Currently cpu boosting related functions are added.

Change-Id: I4f73ea6433711aff6c9b6d95d04ac3af07378b29
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: add display enhance function for both mode and scenario 71/102671/2 accepted/tizen/3.0/common/20161207.195206 accepted/tizen/3.0/ivi/20161207.135048 accepted/tizen/3.0/mobile/20161207.134831 accepted/tizen/3.0/tv/20161207.134827 accepted/tizen/3.0/wearable/20161207.135002 submit/tizen_3.0/20161207.041906
taeyoung [Tue, 6 Dec 2016 09:36:50 +0000 (18:36 +0900)]
display: add display enhance function for both mode and scenario

Change-Id: I8bd596f6ec62dc2239a510151ee091a5023d4090
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodevice-node : remove unreachable code 92/102692/1
Kichan Kwon [Tue, 6 Dec 2016 10:12:11 +0000 (19:12 +0900)]
device-node : remove unreachable code

Change-Id: I590c995f69ab84e54fb7124a9e577673a97c2693
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agodisplay: add internal interface for display enhancement 70/101070/7 accepted/tizen/3.0/common/20161201.135144 accepted/tizen/3.0/ivi/20161201.031527 accepted/tizen/3.0/mobile/20161201.031408 accepted/tizen/3.0/tv/20161201.031441 accepted/tizen/3.0/wearable/20161201.031504 submit/tizen_3.0/20161130.101437
taeyoung [Wed, 30 Nov 2016 08:02:08 +0000 (17:02 +0900)]
display: add internal interface for display enhancement

Change-Id: Ia6e66afdd517f9678c5dd2923c19cf5a7f7e54ee
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: add thermal HAL interface 96/98996/1 accepted/tizen/3.0/common/20161123.140943 accepted/tizen/3.0/ivi/20161123.083945 accepted/tizen/3.0/mobile/20161123.083856 accepted/tizen/3.0/tv/20161123.083911 accepted/tizen/3.0/wearable/20161123.083929 submit/tizen_3.0/20161122.133614
taeyoung [Mon, 21 Nov 2016 10:26:27 +0000 (19:26 +0900)]
thermal: add thermal HAL interface

Change-Id: Ic614ce4ec06f710de2d96019360b7ec0b62ece9f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge branch 'tizen' into tizen_3.0 38/94938/1 accepted/tizen/3.0/common/20161114.081245 accepted/tizen/3.0/ivi/20161103.001947 accepted/tizen/3.0/mobile/20161103.001859 accepted/tizen/3.0/tv/20161103.001915 accepted/tizen/3.0/wearable/20161103.001929 submit/tizen_3.0/20161102.073456 submit/tizen_3.0_common/20161110.084657
pr.jung [Wed, 2 Nov 2016 04:40:24 +0000 (13:40 +0900)]
Merge branch 'tizen' into tizen_3.0

Change-Id: Id510e5e68c6a8fa930948a0abf3be77be86c3e47
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: add display frame rate interfaces 96/93796/1 accepted/tizen/common/20161031.121815 accepted/tizen/ivi/20161101.004619 accepted/tizen/mobile/20161101.004531 accepted/tizen/tv/20161101.004545 accepted/tizen/wearable/20161101.004601 submit/tizen/20161031.024122
taeyoung [Wed, 26 Oct 2016 04:13:19 +0000 (13:13 +0900)]
display: add display frame rate interfaces

Display frame rate can be adjusted by the interfaces.

Change-Id: I41d0cabb993d72c62a72229418c1e9a891099161
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agodisplay: add interface to convert light sensing value to brightness 68/93268/4 accepted/tizen/common/20161024.135223 accepted/tizen/common/20161025.083538 accepted/tizen/ivi/20161028.151032 accepted/tizen/mobile/20161028.150956 accepted/tizen/tv/20161028.151007 accepted/tizen/wearable/20161028.151022 submit/tizen/20161024.103433 submit/tizen/20161025.065819 submit/tizen_3.0_common/20161104.104000
taeyoung [Fri, 21 Oct 2016 10:24:45 +0000 (19:24 +0900)]
display: add interface to convert light sensing value to brightness

deviced will use the interface to convert the light sensing value
to the brightness value to change.

Change-Id: I89d0306d654273850067ee56216dae3ae84c65ef
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoClean up library dependencies for hwcommon and device-node 91/92991/1 accepted/tizen/common/20161020.043519 submit/tizen/20161020.031059
Kunhoon Baik [Thu, 20 Oct 2016 01:41:56 +0000 (10:41 +0900)]
Clean up library dependencies for hwcommon and device-node

Change-Id: I5cee751663dbe0c20909d71586261f9446d88243

8 years agoAdd usb_client HAL API 76/83576/6 accepted/tizen/3.0/ivi/20161011.044351 accepted/tizen/3.0/mobile/20161015.033528 accepted/tizen/3.0/tv/20161016.005029 accepted/tizen/3.0/wearable/20161015.083243 accepted/tizen/common/20160920.132114 accepted/tizen/ivi/20160920.231845 accepted/tizen/mobile/20160920.231811 accepted/tizen/tv/20160920.231824 accepted/tizen/wearable/20160920.231835 submit/tizen/20160920.044232 submit/tizen_3.0_ivi/20161010.000003 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000003
Krzysztof Opasiak [Thu, 11 Aug 2016 17:39:10 +0000 (19:39 +0200)]
Add usb_client HAL API

This API allows to apply abstract gadget description
received from USB gadget HAL to usb gadget subsystem in Kernel
via system infrastructure available on this particular device.

Change-Id: Ibf05b3ec7c8abfed357f886eada5864dca514051
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agoUSB gadget HAL API 35/83435/7
Krzysztof Opasiak [Wed, 10 Aug 2016 20:45:34 +0000 (22:45 +0200)]
USB gadget HAL API

This API provides translation between set of functions
which should be available and abstract USB gadget description
(reprezented by struct usb_gadget).

This HAL can be used bo both define new values for VendorID,
ProductID and other stuff, and alse to add some new function
available only on this particular device (vendor specific).

Change-Id: I63464d9828bfc3fbf06a77d5d9fea82341bddf45
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agodisplay: add getter for the maximum brightness of display 75/78775/1 accepted/tizen/common/20160804.174411 accepted/tizen/ivi/20160804.081141 accepted/tizen/mobile/20160804.081212 accepted/tizen/tv/20160804.081107 accepted/tizen/wearable/20160804.081125 submit/tizen/20160803.081834
taeyoung [Thu, 7 Jul 2016 00:45:40 +0000 (09:45 +0900)]
display: add getter for the maximum brightness of display

- The maximum brightness of display varies
  according to the driver. Thus maximum brightness
  function is added for platform to adjust all cases.

Change-Id: Iab3c2b82372b174d569487b7c85f2024185a89b5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agobattery: add battery HAL interface 34/68434/1 accepted/tizen/common/20160615.193918 accepted/tizen/ivi/20160616.003440 accepted/tizen/mobile/20160616.003551 accepted/tizen/tv/20160616.003418 accepted/tizen/wearable/20160616.003533 submit/tizen/20160615.115707
Taeyoung Kim [Wed, 4 May 2016 07:54:44 +0000 (16:54 +0900)]
battery: add battery HAL interface

- If standard battery interfaces of Mainline kernel is always used,
  this HAL is no use. But Tizen need to work on other kernel version
  and thus the battery HAL interfaces are added.

Change-Id: I25b0b46f6d3dc1ee640c130b4c0f6ed2b588e606
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoRemove thread unsafety function usage. 78/62478/2 accepted/tizen/common/20160318.145924 accepted/tizen/ivi/20160318.113930 accepted/tizen/mobile/20160318.113742 accepted/tizen/tv/20160318.113833 accepted/tizen/wearable/20160318.113816 submit/tizen/20160318.062127
pr.jung [Wed, 16 Mar 2016 09:14:06 +0000 (18:14 +0900)]
Remove thread unsafety function usage.

Change-Id: I8d086de719e6942737864eb56e9a054da4a2457d
Signed-off-by: pr.jung <pr.jung@samsung.com>