platform/kernel/linux-exynos.git
8 years agokdbus: prefer unsigned to ulong for permanent memory klewandowski/sandbox/kdbus-perf
Konrad Lipinski [Mon, 23 Jan 2017 11:54:48 +0000 (12:54 +0100)]
kdbus: prefer unsigned to ulong for permanent memory

8 years agokdbus-test: fix message leak in benchmark tests
Konrad Lipinski [Mon, 16 Jan 2017 15:47:48 +0000 (16:47 +0100)]
kdbus-test: fix message leak in benchmark tests

8 years agokdbus: prefer ulong to unsigned for temporary lvalues
Konrad Lipinski [Mon, 16 Jan 2017 15:41:38 +0000 (16:41 +0100)]
kdbus: prefer ulong to unsigned for temporary lvalues

8 years agokdbus-test: -n/--notimeout getopt
Konrad Lipinski [Mon, 16 Jan 2017 13:11:12 +0000 (14:11 +0100)]
kdbus-test: -n/--notimeout getopt

8 years agokdbus-test: augment seclabel test with UID/GID checks and rename to metadata-update
Konrad Lipinski [Thu, 8 Dec 2016 16:32:42 +0000 (17:32 +0100)]
kdbus-test: augment seclabel test with UID/GID checks and rename to metadata-update

8 years agokdbus: CMD_UPDATE_METADATA, use it in seclabel test
Konrad Lipinski [Thu, 8 Dec 2016 14:11:27 +0000 (15:11 +0100)]
kdbus: CMD_UPDATE_METADATA, use it in seclabel test

8 years agokdbus-test: assertions now do a single printf and do not expand preprocessor strings...
Konrad Lipinski [Wed, 30 Nov 2016 12:23:18 +0000 (13:23 +0100)]
kdbus-test: assertions now do a single printf and do not expand preprocessor strings; fix seclabel test

8 years agokdbus-test: misc refinements
Konrad Lipinski [Tue, 29 Nov 2016 15:35:26 +0000 (16:35 +0100)]
kdbus-test: misc refinements

8 years agokdbus: add seclabel: SECLABEL retrieved upon each CONN_INFO, not cached upon HELLO...
Konrad Lipinski [Mon, 28 Nov 2016 17:35:39 +0000 (18:35 +0100)]
kdbus: add seclabel: SECLABEL retrieved upon each CONN_INFO, not cached upon HELLO (TIZEN semantics)

8 years agokdbus-test: add seclabel: test whether SECLABEL is properly updated on every call...
Konrad Lipinski [Mon, 28 Nov 2016 15:27:54 +0000 (16:27 +0100)]
kdbus-test: add seclabel: test whether SECLABEL is properly updated on every call/CONN_INFO (TIZEN-required semantics)

8 years agokdbus-test: policy-priv: account for self-broadcasts
Konrad Lipinski [Mon, 28 Nov 2016 15:01:33 +0000 (16:01 +0100)]
kdbus-test: policy-priv: account for self-broadcasts

8 years agokdbus-test: message-basic: allow self-broadcasts
Konrad Lipinski [Mon, 28 Nov 2016 14:05:13 +0000 (15:05 +0100)]
kdbus-test: message-basic: allow self-broadcasts

8 years agokdbus: enable self-broadcasts
Konrad Lipinski [Mon, 28 Nov 2016 13:44:54 +0000 (14:44 +0100)]
kdbus: enable self-broadcasts

8 years agokdbus: CONN_INFO: drop ATTACH_FLAGS_RECV support
Konrad Lipinski [Mon, 28 Nov 2016 13:40:26 +0000 (14:40 +0100)]
kdbus: CONN_INFO: drop ATTACH_FLAGS_RECV support

8 years agokdbus: fix async reply refcount leaks
Konrad Lipinski [Thu, 17 Nov 2016 13:53:22 +0000 (14:53 +0100)]
kdbus: fix async reply refcount leaks

8 years agokdbus: conn_call() cleanup
Konrad Lipinski [Wed, 16 Nov 2016 18:52:03 +0000 (19:52 +0100)]
kdbus: conn_call() cleanup

8 years agokdbus: pool_slice_copy() fix: off_src now advanced after each write
Konrad Lipinski [Wed, 16 Nov 2016 15:54:05 +0000 (16:54 +0100)]
kdbus: pool_slice_copy() fix: off_src now advanced after each write

8 years agokdbus: kdbus_pool_slice_copy_iovec: remove unnecessary argument (off)
Konrad Lipinski [Wed, 16 Nov 2016 15:24:16 +0000 (16:24 +0100)]
kdbus: kdbus_pool_slice_copy_iovec: remove unnecessary argument (off)

8 years agokdbus-test fixes
Konrad Lipinski [Wed, 16 Nov 2016 14:55:31 +0000 (15:55 +0100)]
kdbus-test fixes

8 years agokdbus-test: conform to test runner spec
Konrad Lipinski [Wed, 16 Nov 2016 12:35:18 +0000 (13:35 +0100)]
kdbus-test: conform to test runner spec

8 years agokdbus-test: -l option
Konrad Lipinski [Wed, 9 Nov 2016 08:40:25 +0000 (09:40 +0100)]
kdbus-test: -l option

8 years agokdbus: cmdline emptiness condition fix
Konrad Lipinski [Wed, 12 Oct 2016 10:44:02 +0000 (12:44 +0200)]
kdbus: cmdline emptiness condition fix

8 years agokdbus: conn_new partial initialization safety fix
Konrad Lipinski [Tue, 11 Oct 2016 12:38:45 +0000 (14:38 +0200)]
kdbus: conn_new partial initialization safety fix

8 years agokdbus: CONN_INFO positive return value fix
Konrad Lipinski [Thu, 29 Sep 2016 12:05:49 +0000 (14:05 +0200)]
kdbus: CONN_INFO positive return value fix

8 years agokdbus: fix NULL free on TIZEN code path for sending unmatched replies
Konrad Lipinski [Tue, 20 Sep 2016 10:27:52 +0000 (12:27 +0200)]
kdbus: fix NULL free on TIZEN code path for sending unmatched replies

8 years agokdbus-test: fix activator for TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 13:25:24 +0000 (15:25 +0200)]
kdbus-test: fix activator for TIZEN

8 years agokdbus-test: fix activator for non-TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 12:31:54 +0000 (14:31 +0200)]
kdbus-test: fix activator for non-TIZEN

8 years agokdbus-test: fix test-policy-ns for TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 12:22:28 +0000 (14:22 +0200)]
kdbus-test: fix test-policy-ns for TIZEN

8 years agokdbus-test: fix test-policy-ns for non-TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 11:41:04 +0000 (13:41 +0200)]
kdbus-test: fix test-policy-ns for non-TIZEN

8 years agokdbus-test: fix test-policy-priv for TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 10:37:07 +0000 (12:37 +0200)]
kdbus-test: fix test-policy-priv for TIZEN

8 years agokdbus-test: fix test-policy-priv for non-TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 08:50:40 +0000 (10:50 +0200)]
kdbus-test: fix test-policy-priv for non-TIZEN

8 years agokdbus-test: fix test-endpoint for both TIZEN and non-TIZEN
Konrad Lipinski [Thu, 15 Sep 2016 06:58:16 +0000 (08:58 +0200)]
kdbus-test: fix test-endpoint for both TIZEN and non-TIZEN

8 years agokdbus selftest
Konrad Lipinski [Fri, 9 Sep 2016 14:31:36 +0000 (16:31 +0200)]
kdbus selftest

8 years agokdbus perf
Konrad Lipinski [Fri, 9 Sep 2016 11:35:49 +0000 (13:35 +0200)]
kdbus perf

8 years agoRevert "kdbus: add documentation"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:33 +0000 (12:43 +0200)]
Revert "kdbus: add documentation"

This reverts commit 36c18a4057fcaa150c129c29a842567e83f93a8b.

8 years agoRevert "kdbus: add uapi header file"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:32 +0000 (12:43 +0200)]
Revert "kdbus: add uapi header file"

This reverts commit c95f2190c1822749c0a7f958461130be65c02843.

8 years agoRevert "kdbus: add driver skeleton, ioctl entry points and utility functions"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:31 +0000 (12:43 +0200)]
Revert "kdbus: add driver skeleton, ioctl entry points and utility functions"

This reverts commit 42f0713be88f758d9b9f726e27674fde987a1188.

8 years agoRevert "kdbus: add connection pool implementation"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:31 +0000 (12:43 +0200)]
Revert "kdbus: add connection pool implementation"

This reverts commit cc89ca00362e0ab4b0a1a54fcce5ac3cc4d0ee52.

8 years agoRevert "kdbus: add connection, queue handling and message validation code"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:30 +0000 (12:43 +0200)]
Revert "kdbus: add connection, queue handling and message validation code"

This reverts commit 0ff2c46560c9b5dfee310c7248a90a99a3ca218a.

8 years agoRevert "kdbus: add node and filesystem implementation"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:30 +0000 (12:43 +0200)]
Revert "kdbus: add node and filesystem implementation"

This reverts commit 93faa0a00cc2cd56d3fb120ee1ff8ad019c3e285.

8 years agoRevert "kdbus: add code to gather metadata"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:29 +0000 (12:43 +0200)]
Revert "kdbus: add code to gather metadata"

This reverts commit dfd382cf940c0bbd63fffd1f7c6cd17626e5eb68.

8 years agoRevert "kdbus: add code for notifications and matches"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:28 +0000 (12:43 +0200)]
Revert "kdbus: add code for notifications and matches"

This reverts commit fd73c2d1b53f9787eaa6978af911ea9b420834cd.

8 years agoRevert "kdbus: add code for buses, domains and endpoints"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:28 +0000 (12:43 +0200)]
Revert "kdbus: add code for buses, domains and endpoints"

This reverts commit bb0b2e7f26b1179ebe088d7e007889ae2991c7a0.

8 years agoRevert "kdbus: add name registry implementation"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:27 +0000 (12:43 +0200)]
Revert "kdbus: add name registry implementation"

This reverts commit 3362791d7f8541d6c81221726077d7d3f8511a62.

8 years agoRevert "kdbus: add policy database implementation"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:27 +0000 (12:43 +0200)]
Revert "kdbus: add policy database implementation"

This reverts commit 5c96a9c86fcd8dd5fe5b293a84e9e77c0d65ede3.

8 years agoRevert "kdbus: add Makefile, Kconfig and MAINTAINERS entry"
Konrad Lipinski [Fri, 9 Sep 2016 10:43:12 +0000 (12:43 +0200)]
Revert "kdbus: add Makefile, Kconfig and MAINTAINERS entry"

This reverts commit c6204bacd7604b96b13c2a444f5f66eb2b1b1cf5.

Conflicts:
init/Kconfig

8 years agoRevert "kdbus: add walk-through user space example"
Konrad Lipinski [Fri, 9 Sep 2016 10:42:41 +0000 (12:42 +0200)]
Revert "kdbus: add walk-through user space example"

This reverts commit 9637d8651c42e4863a8b09dd0fd85c66409db28d.

8 years agoRevert "kdbus: add selftests"
Konrad Lipinski [Fri, 9 Sep 2016 10:41:49 +0000 (12:41 +0200)]
Revert "kdbus: add selftests"

This reverts commit bfbc2e3647664de8722b97a10cb7c7bba78a0cc7.

Conflicts:
tools/testing/selftests/Makefile

8 years agoRevert "Documentation: kdbus: fix location for generated files"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:43 +0000 (16:47 +0200)]
Revert "Documentation: kdbus: fix location for generated files"

This reverts commit 851895cac4edcb3fe611e7204a9c1bd8e1ac571b.

8 years agoRevert "kdbus: samples/kdbus: add -lrt"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:42 +0000 (16:47 +0200)]
Revert "kdbus: samples/kdbus: add -lrt"

This reverts commit dff97f8bfb1dd114211c4bc76787ade48cf66534.

8 years agoRevert "kdbus: fix minor typo in the walk-through example"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:41 +0000 (16:47 +0200)]
Revert "kdbus: fix minor typo in the walk-through example"

This reverts commit cc914cc79d871e02658a06f8f868f765b32cbb7a.

8 years agoRevert "samples/kdbus: drop wrong include"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:41 +0000 (16:47 +0200)]
Revert "samples/kdbus: drop wrong include"

This reverts commit d31e2acb1622e9f3e4314e628f5eea3b400a4f9a.

8 years agoRevert "Documentation/kdbus: fix out-of-tree builds"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:40 +0000 (16:47 +0200)]
Revert "Documentation/kdbus: fix out-of-tree builds"

This reverts commit 937b9b83f9b6058d49797f06c5b36bb4e68d29d4.

8 years agoRevert "Documentation/kdbus: support quiet builds"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:40 +0000 (16:47 +0200)]
Revert "Documentation/kdbus: support quiet builds"

This reverts commit 09d1608b175268e97c0784ddb0ddbce7ae0b2bf0.

8 years agoRevert "Documentation/kdbus: replace 'reply_cookie' with 'cookie_reply'"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:39 +0000 (16:47 +0200)]
Revert "Documentation/kdbus: replace 'reply_cookie' with 'cookie_reply'"

This reverts commit 0178ce7600a90ec3cc941418046f6fec8b2fb3d1.

8 years agoRevert "kdbus: fix header guard name"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:39 +0000 (16:47 +0200)]
Revert "kdbus: fix header guard name"

This reverts commit 49e2599acd7eea5af1875b03851f27834f57c807.

8 years agoRevert "kdbus: connection: fix handling of failed fget()"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:38 +0000 (16:47 +0200)]
Revert "kdbus: connection: fix handling of failed fget()"

This reverts commit c021be145c56a87077165a05b9e26ea4b8403cb8.

8 years agoRevert "samples: kdbus: build kdbus-workers conditionally"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:37 +0000 (16:47 +0200)]
Revert "samples: kdbus: build kdbus-workers conditionally"

This reverts commit 2cd49799d6087fa396c235487103800603b73f87.

8 years agoRevert "selftest/kdbus: enable cross compilation"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:37 +0000 (16:47 +0200)]
Revert "selftest/kdbus: enable cross compilation"

This reverts commit ca25274cc015b21d54b0e0e47d0bea932116bbeb.

8 years agoRevert "kdbus: uapi: Fix kernel-doc for enum kdbus_send_flags"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:36 +0000 (16:47 +0200)]
Revert "kdbus: uapi: Fix kernel-doc for enum kdbus_send_flags"

This reverts commit 0a4a890ce39ffad838a3292ad9530680576e5e43.

8 years agoRevert "Documentation: kdbus: Fix list of KDBUS_CMD_ENDPOINT_UPDATE errors"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:36 +0000 (16:47 +0200)]
Revert "Documentation: kdbus: Fix list of KDBUS_CMD_ENDPOINT_UPDATE errors"

This reverts commit a87631041005f50e0cdd67af4304029319342246.

8 years agoRevert "Documentation: kdbus: Update list of ioctls which cause writing to receiver...
Konrad Lipinski [Thu, 8 Sep 2016 14:47:35 +0000 (16:47 +0200)]
Revert "Documentation: kdbus: Update list of ioctls which cause writing to receiver's pool"

This reverts commit 2685aaa1491d081476e7a650d590fabaf6106318.

8 years agoRevert "Documentation: kdbus: Fix description of KDBUS_SEND_SYNC_REPLY flag"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:35 +0000 (16:47 +0200)]
Revert "Documentation: kdbus: Fix description of KDBUS_SEND_SYNC_REPLY flag"

This reverts commit fe457e2fa9c48a80a9df3733dccd0ee3d79baf5b.

8 years agoRevert "Documentation: kdbus: Fix typos"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:34 +0000 (16:47 +0200)]
Revert "Documentation: kdbus: Fix typos"

This reverts commit 61e088cc5a532236e7032295306d51687cdad8fc.

8 years agoRevert "kdbus: avoid the use of struct timespec"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:33 +0000 (16:47 +0200)]
Revert "kdbus: avoid the use of struct timespec"

This reverts commit c6c6bf55b3884bfe60db47780b96339eb7739a78.

8 years agoRevert "kdbus: do not append the same connection to the queue twice"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:33 +0000 (16:47 +0200)]
Revert "kdbus: do not append the same connection to the queue twice"

This reverts commit 204d5d1ebd6966496c98b2b8ef29075b7b77a2fa.

8 years agoRevert "kdbus: use LSM hooks in kdbus code"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:32 +0000 (16:47 +0200)]
Revert "kdbus: use LSM hooks in kdbus code"

This reverts commit d6569676240fbd5ea8625c716c350b333132d1ba.

8 years agoRevert "kdbus: TEST_CREATE_CONN now does no depend on TEST_CREATE_BUS"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:32 +0000 (16:47 +0200)]
Revert "kdbus: TEST_CREATE_CONN now does no depend on TEST_CREATE_BUS"

This reverts commit f539d4d79a080e697fee6f63a4d6e66609892139.

8 years agoRevert "kdbus: selftests extended"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:31 +0000 (16:47 +0200)]
Revert "kdbus: selftests extended"

This reverts commit 76f2f0ce4d28dcf5bffa2fe205a955f30064d78d.

8 years agoRevert "kdbus: Ability to run kdbus test by executable binary name"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:30 +0000 (16:47 +0200)]
Revert "kdbus: Ability to run kdbus test by executable binary name"

This reverts commit d52f42806d6f4c8062487d194ceb58e630bb6e43.

8 years agoRevert "kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:30 +0000 (16:47 +0200)]
Revert "kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion"

This reverts commit ad289b06b44d8ee26ddebb7ae2f356aae54c6996.

8 years agoRevert "kdbus: disable internal kdbus policy"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:29 +0000 (16:47 +0200)]
Revert "kdbus: disable internal kdbus policy"

This reverts commit 00f9d63df02b74553422b8c78c0bad56e6feeb7a.

8 years agoRevert "kdbus: pool: use __vfs_read()"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:29 +0000 (16:47 +0200)]
Revert "kdbus: pool: use __vfs_read()"

This reverts commit 43cae6073ecad6f3d5d88d501adb82d7d6033ada.

8 years agoRevert "kdbus: disable all internal policy checks"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:28 +0000 (16:47 +0200)]
Revert "kdbus: disable all internal policy checks"

This reverts commit be985df5ae55fc71deab9e1d5fcac184e1c6d781.

8 years agoRevert "kdbus: disable internal kdbus policy"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:27 +0000 (16:47 +0200)]
Revert "kdbus: disable internal kdbus policy"

This reverts commit d3b7dbe82cbfeccc185429db97de9900d5613c2e.

8 years agoRevert "Remove kdbus Linux Security Module hooks"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:26 +0000 (16:47 +0200)]
Revert "Remove kdbus Linux Security Module hooks"

This reverts commit f96c6e2fdf356414d97685cd75b12f22ac1be89f.

8 years agoRevert "increate KDBUS_CONN_MAX_REQUESTS_PENDING to 1024 from 128"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:25 +0000 (16:47 +0200)]
Revert "increate KDBUS_CONN_MAX_REQUESTS_PENDING to 1024 from 128"

This reverts commit 550b610f452ab35ec1687bf5a2c27ae97935d18c.

8 years agoRevert "kdbus: allow unix domain socket fd passing"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:24 +0000 (16:47 +0200)]
Revert "kdbus: allow unix domain socket fd passing"

This reverts commit f2aac2074d017971dbfb49a9bbc576e03e3eb07b.

8 years agoRevert "kdbus: allowing sending replies even if NO_EXPECT_REPLY is set"
Konrad Lipinski [Thu, 8 Sep 2016 14:47:24 +0000 (16:47 +0200)]
Revert "kdbus: allowing sending replies even if NO_EXPECT_REPLY is set"

This reverts commit b69a86c13e9edea37fc765acf844732446fb7048.

8 years agodrm/exynos/hdmi: workaround to check invalid modes with attached drm bridge 87/87187/3 accepted/tizen/common/20160912.181039 accepted/tizen/ivi/20160912.093458 accepted/tizen/mobile/20160912.093411 accepted/tizen/tv/20160912.093425 accepted/tizen/wearable/20160912.093442 submit/tizen/20160912.021917
Seung-Woo Kim [Wed, 7 Sep 2016 01:09:29 +0000 (10:09 +0900)]
drm/exynos/hdmi: workaround to check invalid modes with attached drm bridge

Currently, there is no way to check valid modes for bridge from
user and if the attached drm bridge, mhl adapter, does not support
a mode with fixup, then it is not possible to be set on exynos-hdmi.
So this patch adds workaround to check invalid modes with attached
drm bridge during mode_valid from exynos-hdmi.

Change-Id: I4dcd7edaa1261c1c3ed349c2dcddec226efcc6ec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoMerge "Enable dummy_hcd and FunctionFS in tm2 config." into tizen
Sylwester Nawrocki [Wed, 7 Sep 2016 14:50:26 +0000 (07:50 -0700)]
Merge "Enable dummy_hcd and FunctionFS in tm2 config." into tizen

8 years agoarm64: dts: exynos5433: add sleep state for BCM4773 sensorhub gpios 15/87015/4
Hoegeun Kwon [Fri, 2 Sep 2016 02:30:10 +0000 (11:30 +0900)]
arm64: dts: exynos5433: add sleep state for BCM4773 sensorhub gpios

The BCM4773 power pins need to be alive during sleep mode,
because the MCU needs to respond to the external sensors events.

Add a sleep alive state for pins.

 - gpd2-0 (GPS_HUB_EN)
 - gpf2-2 (MCU_AP_INT_2_1.8V)
 - gpf2-3 (AP_MCU_INT_1.8V)

While pins:

 - gpd8-0 (SHUB_SPI_SCK)
 - gpd8-1 (SHUB_SPI_SSN)
 - gpd6-0 (SHUB_SPI_MISO)
 - gpd6-1 (SHUB_SPI_MOSI)

need to be managed when the device goes and resumes from
sleep mode.

Change-Id: If508f5b4526e5de665f76b0adb96ae64779b6eb7
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
8 years agoEnable dummy_hcd and FunctionFS in tm2 config. 57/86957/1
Krzysztof Opasiak [Mon, 5 Sep 2016 15:24:48 +0000 (17:24 +0200)]
Enable dummy_hcd and FunctionFS in tm2 config.

This is required to run usb host API test suit.

Change-Id: I203ef286bef030ddd359e6e18145b612a7d8dc05
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agodrm: bridge: sii8620: retry hw reset with i2c failure 74/86274/2
Joonyoung Shim [Wed, 31 Aug 2016 09:17:48 +0000 (18:17 +0900)]
drm: bridge: sii8620: retry hw reset with i2c failure

With specific targets, sometimes(almost) i2c read is failed when hdmi
cable is plugged.

[  341.285875] sii8620 7-0039: I2C read of [0x0000] failed with code -6.
[  341.286149] sii8620 7-0039: Error accessing I2C bus, -6.

Retry hw reset operation of sii8620 mhl if i2c read is failed then can
do normal i2c operation. This solution came from android kernel.

Change-Id: Icf9f54eb941e3ac5a8728fb9552b51928578d508
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agousb: gadget: change the class of MTP interface descriptor 97/85997/3
Dongwoo Lee [Mon, 29 Aug 2016 04:30:13 +0000 (13:30 +0900)]
usb: gadget: change the class of MTP interface descriptor

The host fails to recognize tm2(e) as gadget mode when VID is changed, even
though the matching is performed without comparing VID. This patch fixes
this issue by changing the class of MTP interface descriptor.

Change-Id: I75c1ff710c28bb7c911963bce6c8cdb328424b95
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
8 years agobuild: add support for x86_64 host 78/85978/1
Seung-Woo Kim [Tue, 30 Aug 2016 04:31:03 +0000 (13:31 +0900)]
build: add support for x86_64 host

For x86_64 host local build, this patch adds prebuilt mkimage from
u-boot and local build script files uses the prebuilt mkimage as
host architecture. The mkimage requires dtc also, but it is already
in scripts/dtc and built as host tool during kernel build,so dtc is
not required prebuilt files.

Change-Id: Id3f734ee39cc1e639bcaff2a7e49ad6d6c66665a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agosensors: sensorhub_brcm: fix for compatibility 21/85621/1
Seung-Woo Kim [Fri, 26 Aug 2016 07:04:31 +0000 (16:04 +0900)]
sensors: sensorhub_brcm: fix for compatibility

For 32bit compatibility, compat_ioctl should be registered. Also,
32bit built IOCTL value is different from 64bit, then it should be
considered. So this fixes for compatibility with compat_ioctl.

Change-Id: I11c353d4cd39a8ef5014f2b9b2d1f504fda86182
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agomisc: tizen_global_lock: replace device node name to tgl 87/85587/2
Seung-Woo Kim [Fri, 26 Aug 2016 04:16:45 +0000 (13:16 +0900)]
misc: tizen_global_lock: replace device node name to tgl

The old name is not necessary anymore, so this patch replaces device
node name to "tgl".

Change-Id: I9e4c92db3c355e74b909384ff869b2aa3a388086
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoarm64: defconfig: tm2: enable SMACK and AUDIT options for NETFILTER 68/85468/1 accepted/tizen/common/20160829.140033 accepted/tizen/ivi/20160829.085252 accepted/tizen/mobile/20160829.085200 accepted/tizen/tv/20160829.085218 accepted/tizen/wearable/20160829.085240 submit/tizen/20160829.013616
Seung-Woo Kim [Thu, 25 Aug 2016 08:16:03 +0000 (17:16 +0900)]
arm64: defconfig: tm2: enable SMACK and AUDIT options for NETFILTER

To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.

Change-Id: I684ce5771dbd6e52ee529ede647d36c6561e549e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoARM: defconfig: odroid: enable SMACK and AUDIT options for NETFILTER 67/85467/1
Seung-Woo Kim [Thu, 25 Aug 2016 08:02:54 +0000 (17:02 +0900)]
ARM: defconfig: odroid: enable SMACK and AUDIT options for NETFILTER

To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.

Change-Id: I9176fcad446ea87f503165c4cf2f3aff3c60ec4f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agosensors: brcm: use non atomic sleeps instead of atomic delays 36/84536/8
Hoegeun Kwon [Wed, 17 Aug 2016 07:19:50 +0000 (16:19 +0900)]
sensors: brcm: use non atomic sleeps instead of atomic delays

Do not use mdelay in non atomic contexts, use the appropriate
*sleep functions instead.

mdelay should be used only in atomic contexts, out from atomic it
keeps looping over the CPU wasting unnecessary resources.

Replace the mdelay's with:

 - usleep_range for 10us - 20ms delays,
 - msleep for over 20ms

Change-Id: Id03238f3918f43cb42c31ef258a12c3e7f4506a5
Reported-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agoarm64: tizen_tm2_defconfig: enable BCM4773 version 2 sensorhub for tm2(e) 35/84535/9
Hoegeun Kwon [Wed, 17 Aug 2016 07:17:38 +0000 (16:17 +0900)]
arm64: tizen_tm2_defconfig: enable BCM4773 version 2 sensorhub for tm2(e)

The CONFIG_SENSORS_SSP_BBD_VER2 flag enables the version 2 of the
sensorhub in the config file.

Change-Id: I21984f496e063f3cb727a8f76f6e189cafc2bd71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agosensors: brcm: bbdpl2: add new version (v2) of the BCM4773 sensorhub 34/84534/8
Hoegeun Kwon [Thu, 18 Aug 2016 08:46:19 +0000 (17:46 +0900)]
sensors: brcm: bbdpl2: add new version (v2) of the BCM4773 sensorhub

Commit, "sensors: add support for the BCM 4773 sensorhub" has
added support for the BCM4773. Since then the firmware interface
has been updated to a new version: version 2.

Add the second version of the BCM4773 sensorhub and rename the
previous version configuration flags to VER1.

Change-Id: Ie40d4b41fe4c3491567246392d2fee1d7c9cad48
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
8 years agoarm64: tizen_tm2_defconfig: Enables BCM4773 sensorhub for tm2 board 33/84533/6
Hoegeun Kwon [Wed, 17 Aug 2016 06:59:42 +0000 (15:59 +0900)]
arm64: tizen_tm2_defconfig: Enables BCM4773 sensorhub for tm2 board

Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.

Change-Id: I765f87ee868dfe8d4155a42bf895b09c35cbb85b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agoarm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e) 32/84532/5
Hoegeun Kwon [Wed, 17 Aug 2016 06:58:31 +0000 (15:58 +0900)]
arm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e)

Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.

Move the GPIO initialization pins in the board section.

Change-Id: Ia4567598527d5169c6669c791fcf40e5d7693b70
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agosensors: add support for the BCM 4773 sensorhub 31/84531/5
Hoegeun Kwon [Wed, 17 Aug 2016 06:57:23 +0000 (15:57 +0900)]
sensors: add support for the BCM 4773 sensorhub

The Broadcom BCM4773 is a microcontroller that works as a
sensorhub. It's placed in between sensors and AP.

It's connected to the AP through SPI bus and has support for
a range of sensors:

 - icm20610
 - yas532
 - bmp182
 - tmg399x
 - mobeam

The config file provides a "choice" option in order to choose
between different targets, S333 and TM2(e).

The BCM4773 it can handle GPS and the gps driver is the main
entry point to the sensorhub driver as an SPI device.

Change-Id: I07f676459cf53cbb88d75cac0459b5e374f353a5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agosensors: Kconfig: move the ssp and ssp_sensorhub in upper directory 30/84530/4
Hoegeun Kwon [Wed, 17 Aug 2016 08:31:22 +0000 (17:31 +0900)]
sensors: Kconfig: move the ssp and ssp_sensorhub in upper directory

The CONFIG_SSP and SENSORS_SSP_SENSORHUB are flags not strictly
related to the STM sensorhub. Put them outside from the
stm_rinato directory to an upper level to be ready to relate to
other sensorhubs.

Change-Id: I0334080c699136659842746fd06dcbbdeeccc0c0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agosensors: stm_rinato: Kconfig: remove unused SHTC1 driver configuration 45/85145/2
Hoegeun Kwon [Wed, 24 Aug 2016 01:03:04 +0000 (10:03 +0900)]
sensors: stm_rinato: Kconfig: remove unused SHTC1 driver configuration

The STM sensorhub doesn't have the shtc1 compass sensor driver.
Remove it from the related configuration file.

Change-Id: Ie37da88344b975d61a379b40d8175e944f5a6b71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agodrm/panel/s6e3ha2: add panel id read code 56/84556/4
Andrzej Hajda [Fri, 19 Aug 2016 11:46:57 +0000 (13:46 +0200)]
drm/panel/s6e3ha2: add panel id read code

The patch adds helper to DCS read commands and reporting Display ID.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc279
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: remove spare underscore 55/84555/3
Andrzej Hajda [Thu, 18 Aug 2016 15:41:48 +0000 (17:41 +0200)]
drm/panel/s6e3ha2: remove spare underscore

Coding style fix.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc278
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>