Age | Commit message (Collapse) | Author | Files | Lines |
|
battery.temperature /10
Change-Id: I8da3a9045bc127a696655adeb06ca94ada6cb5cc
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- Has 'battery_get_info_direct' function symbol.
- Load hwcommon library and get battery info direct.
Change-Id: I6e79215127275b4d2f1263fdeb93744976d819a3
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
(cherry picked from commit 1c1758f2edc98c84d0687ddc5b034ff7640ae4ac)
|
|
Change-Id: I9f59841bfeb88db49306c2e486174ad287413fac
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
It is possible to exist both HW/SW bezel function.
Change-Id: I23b7c5c6db71115658092309ef808efe8e0dbe64
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: I740aa8b11b9f486ea00b77303cf379539bceecb9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit e73a15b7e745490c30da329ed2565a2b40e7ccee)
|
|
Change-Id: I4d4d349b51d7feeac6912e08ac79e0b2695d3e7e
(cherry picked from commit 30379cb9470e47417a07250d28177c335b1f4e5c)
|
|
Change-Id: I494c5dbb285870f226fe64392b6b880797309761
(cherry picked from commit 8e03ec0d2c4b7beb09d8a49fa626fb807b991789)
|
|
On SLP : check if /sys/class/usb_mode/usb0/f_[sdb|mtp|acm|rndis|diag|dm] exists
On CFS : check if /usr/lib/systemd/system/[sdb|mpt].service exists or the result of usbg_lookup_function_type()
Change-Id: I2cc8acc3553a8734484d50cfc0ede7a963a363b0
(cherry picked from commit 3bb736815986e6433b2a94555c4ceb64b2abea7a)
|
|
Change-Id: I971a2378b6661038c034c7389e1f5155844f9411
(cherry picked from commit e1bcac1f94bbaa0b7cfb66a63776437863b4a7b7)
|
|
Change-Id: If2d574da915233d2849017892d64a7ea75191970
(cherry picked from commit 66aa88ba4c649532bef7c512eebdb24d9481568b)
|
|
The usb gadget's config uses only one string information.
So instead of dynamically creating string information, only use one fixed.
Change-Id: Ie7e5bb198a429c8ac766002711f6add47d06fa1e
(cherry picked from commit f4221a979f17129610293fed809d7fd822d59f54)
|
|
The usb gadget uses only one string information.
So instead of dynamically creating string information, only use one fixed.
Change-Id: I01adf3d0c7ce498e516b08b5a284c63d2940bcb6
(cherry picked from commit 998f44215d67cdf7aa33d63f012369c3a413bfaa)
|
|
Move common USB gadget attribute value to header
Change-Id: Id06fefc9af78876d46364b39893b4f25ebd9ed82
(cherry picked from commit a3a343526d84ad3c7097014bce38e7ca79bb3a0d)
|
|
Change-Id: Ib091544138444c4108c7b09eb3e70e830661648e
(cherry picked from commit d8d490bd8049ccad9e5a8bede183ce63bbb7e78d)
|
|
One usb function can be used in multiple config in configfs.
So when you create a usb function, you have to check if it exists.
Change-Id: I8f16fe4c542b277c12022d1c96d8ccb0aee32237
(cherry picked from commit 632729260576e9e7a81a18f8ef7dc9f51fe8c184)
|
|
This reverts commit 9065e52b99d5a10fa059c7337b7d693fa32584e5.
The const variable is assigned to the read-only memory map area.
So, we can not modify it.
Change-Id: I8719eef3af23bd7c33e3419d94afdf4f5f19261c
(cherry picked from commit 0eb9342b124760ee703d25bb4cd703338d58cdc1)
|
|
Since the _available_funcs global variable is used in many places, it should be prevented from changing to const.
Change-Id: I53404030e16361a70254fe2780176ac1441b1e13
(cherry picked from commit 9065e52b99d5a10fa059c7337b7d693fa32584e5)
|
|
|
|
Change-Id: Ib6fcc7bd7ec2ed060e68a11b3837a0e2cd3f881b
(cherry picked from commit b55a1f3108990c4dbeb6d11963487b55a659f963)
|
|
To prevent the global variable _available_funcs from being exposed.
Change-Id: I26b09d3fa8fb5c8117c0029eb94dd3b7efe9a2c7
(cherry picked from commit 3d1a1c4e666cd31b88cd678968658368e988cbaa)
|
|
Before : add new functions -> enable new functions as linking to configs -> delete unused configs -> deleted unused functions
After : remove all configs -> remove all functions -> add new functions -> enable new functions as linking to configs
Change-Id: If0fdcb9a1cda9afcb6d865bee7f0db1539d4df2b
(cherry picked from commit e513020a513815371d18079de80c55f370aa6ed6)
|
|
Configfs can use more than one configs.
(/sys/kernel/config/usb_gadget/hal-gadget/configs/hal-config.1 and /sys/kernel/config/usb_gadget/hal-gadget/configs/hal-config.2)
One usb function can be included in two config simultaneously.
In this situation, a handler associated with function can be called twice for a usb function.
To prevent duplicate calls,
it handles only the handlers of functions enabled in configfs, not the usb functions included in all configs.
Change-Id: I5e02dadc5d2688f0ad9210ad5ab149fb95ab05ba
(cherry picked from commit 7803a3c5a1b0293a5bda490c26c95ae8b967e001)
|
|
Before Change: Obtain all information of gadget from the enabled gadget.
After Change: Obtain only necessary function list from the enabled gadget.
Change-Id: Ib6547209f443e7a58bbbdb87373e53d252cdbdb6
(cherry picked from commit 52e9dce09444267176cc1aade368944aadf8cc58)
|
|
Change-Id: I5af1d9f6b247ceae2475a04f7e95629f9e81f428
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I26a3d3db3fecdd5303d99fa1b003e446ba75e002
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I0d9f5c77a729ca706b85ab988aecd76ccb4c12cc
(cherry picked from commit 94e1d8be764c68c97c6f2ec15a0dc07ce6e3837f)
|
|
Change-Id: I148b8b5b1463c3593f3f609c5ba137403b9272f9
(cherry picked from commit 2f3aa72c35df8b372a583701d477e42150e825c5)
|
|
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)
|
|
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)
|
|
Change-Id: Ibb74b5627ef1376be141fb23e56787e45b34c142
(cherry picked from commit c1ef88b5dc9a2e8014ebf290e802fb57c34fd5f0)
|
|
Change-Id: I9ca39908a04ea557e36f8598236489c1f8e53f6d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit ace7d369c1949819065b9e28143275f13760dc50)
|
|
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)
|
|
Change-Id: Ie8d980be45455bb45e29f893592101a382247668
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 3afe9b27685260317588ffc2b5b314bb68fdfaf8)
|
|
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)
|
|
Change-Id: I6eb441abc0ea10e96d14bb3b4d7f114e0689efe3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit f66ad5ff8275412eab4c0bc4279764033ee81ad8)
|
|
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)
|
|
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)
|
|
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)
|
|
Change-Id: Ic3472d6b6da35b199704ca6150447cab05638a71
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit afc9e97d20d06918ade6e6cc555226bc30131889)
|
|
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)
|
|
The usb default value in MCD is MTP + ACM.
Change-Id: I46fb8b450029d061fb53da2e60c168c5a54b1fb6
(cherry picked from commit 6a9dfee0f087d09589556c2a81adc204eb3ffd0b)
|
|
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)
|
|
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
|
|
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)
|
|
Change-Id: Ic9473dbbeee14d609e357c1d3fcc00dbea1dc434
(cherry picked from commit 1c426172aa3a5047914ee14bb0ade36bff0e6826)
|
|
Change-Id: I1ee04b2ca4927f71b5c96c5dcc7988893fc322d6
(cherry picked from commit 2e5bad8ab1f6280dc4149cc0792604f4df40180f)
|
|
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)
|
|
Change-Id: I2a488ef551a3c92a36cfa428787cdfdd31f82cab
(cherry picked from commit 2dbaad820b5f0ca6c9b59ac61c3c14460775f915)
|
|
Change-Id: Ieb87a66543095a44773bdfba105c37b19b3b2cfa
|
|
Merge "struct usb_function_witch_service" into "struct usb_function".
Change-Id: I9ed616f7e5933594093e9a027dd7d56cf1b016c8
(cherry picked from commit c76e213a9ecef080b7dc3ae92105969e9d531deb)
|