platform/kernel/linux-exynos.git
8 years agodrm/bridge/sii8620: simplify sii8620_mt_msc_cmd_send 06/92606/1
Andrzej Hajda [Mon, 17 Oct 2016 11:14:10 +0000 (13:14 +0200)]
drm/bridge/sii8620: simplify sii8620_mt_msc_cmd_send

The patch removes cryptic temporary array of parameters.

Change-Id: If9233291a0e23e1603ac5d9b6766a0fb2166723f
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: improve transfer logs 05/92605/1
Andrzej Hajda [Mon, 17 Oct 2016 11:08:17 +0000 (13:08 +0200)]
drm/bridge/sii8620: improve transfer logs

Use dev_dbg instead of pr_debug and prettify error logs.

Change-Id: I2e7f568ce3fddab8607c83bfa3b6cdfa1af49586
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: use static version of sii8620_write_seq if possible 04/92604/1
Andrzej Hajda [Mon, 17 Oct 2016 10:25:52 +0000 (12:25 +0200)]
drm/bridge/sii8620: use static version of sii8620_write_seq if possible

Static version should be used whenever arguments are static.

Change-Id: I6b5552cf27109cfa483e248cb25d02216672de23
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: re-factor registry access code 03/92603/1
Andrzej Hajda [Mon, 17 Oct 2016 10:17:38 +0000 (12:17 +0200)]
drm/bridge/sii8620: re-factor registry access code

The patch constifies arguments if possible, adds static version of
sii8620_write_seq and simplifies sii8620_setbits.
All these changes allows to optimize code and synchronize driver with mainline.

Change-Id: I7432156e0dbe47b53f012c4f8561c71e587ba9d3
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agoARM64: dts: exynos5433-tm2(e): sii8620 remove obsolete int-gpio properties 08/92508/2
Andrzej Hajda [Fri, 14 Oct 2016 13:54:01 +0000 (15:54 +0200)]
ARM64: dts: exynos5433-tm2(e): sii8620 remove obsolete int-gpio properties

These properties are not needed anymore as the driver has been converted
to interrupt properties.

Change-Id: I255287ea913b62c286c1a0c62bdf772d33055c49
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: use I2C to parse interrupt DT properties 07/92507/2
Andrzej Hajda [Fri, 14 Oct 2016 13:52:22 +0000 (15:52 +0200)]
drm/bridge/sii8620: use I2C to parse interrupt DT properties

Interrupts should be handled by I2C core instead of private gpios.

Change-Id: Ib4d3b107f398d77c549d2334c4508f69b26427f9
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agoARM64: dts: exynos5433-tm2(e): sii8620 add interrupt properties 06/92506/2
Andrzej Hajda [Fri, 14 Oct 2016 13:48:46 +0000 (15:48 +0200)]
ARM64: dts: exynos5433-tm2(e): sii8620 add interrupt properties

Add interrupts property to represent interrupt pin.
Obsolete int-gpio will be removed after driver update to keep bisectability.

Change-Id: I3c766f45cc37a7765f84cabcbee24d5d551dc113
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: re-factor context fields 05/92505/2
Andrzej Hajda [Fri, 14 Oct 2016 13:20:49 +0000 (15:20 +0200)]
drm/bridge/sii8620: re-factor context fields

The patch makes names of some fields more adequate to their function.
It replaces also mt state fields with enum.
This patch synchronizes fields names with upstream driver.

Change-Id: Ia832a687f02124998db77fd6e3cd973b6f00a7af
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/dsi: mimic indentation of mainline driver 65/92165/3
Andrzej Hajda [Wed, 5 Oct 2016 10:03:09 +0000 (12:03 +0200)]
drm/exynos/dsi: mimic indentation of mainline driver

This patch synchronizes indentation from mainline driver.
It helps in developing dsi driver in both branches.

Change-Id: I3ad3704d0cf9d58a4021cbc8c52ec4201a5f5724
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/dsi: use of_graph_get_endpoint_by_regs helper 64/92164/3
Philipp Zabel [Tue, 3 May 2016 13:47:25 +0000 (15:47 +0200)]
drm/exynos/dsi: use of_graph_get_endpoint_by_regs helper

This allows to remove the local of_graph_get_port_by_reg(),
of_graph_get_endpoint_by_reg(), and of_get_child_by_name_reg()
functions.

Change-Id: Ia8d8e6f9f34bbde91a5f8d9c600a2b8fe5d3f80d
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/dsi: use core helper to create DSI packet 63/92163/3
Andrzej Hajda [Wed, 17 Feb 2016 13:33:08 +0000 (14:33 +0100)]
drm/exynos/dsi: use core helper to create DSI packet

Core provides generic helper to create DSI packet, use it instead of
custom code.

Change-Id: I365c64ba52b85ac1b39dbdab8bb2ccdf6620b279
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/dsi: constify read-only variables 62/92162/3
Andrzej Hajda [Wed, 5 Oct 2016 08:22:47 +0000 (10:22 +0200)]
drm/exynos/dsi: constify read-only variables

Change-Id: Ie9d4cea15e40408ed3a8c8f84002da465c0cae90
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos: support exynos5422 mipi-dsi 61/92161/3
Andrzej Hajda [Wed, 5 Oct 2016 08:51:42 +0000 (10:51 +0200)]
drm/exynos: support exynos5422 mipi-dsi

This patch supports mipi dsi for exynos5422. The dsi register
offsets of the exynos5422 are similar with exynos5433. However,
the values of the registers are quite different from the
exynos5433. For example, the exynos5422 uses sw reset like
previous chips.

Change-Id: I82f19afc66c2893a1bfb9d09ea56e631f67921ae
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/dsi: rename variables to match mainline kernel 60/92160/3
Andrzej Hajda [Wed, 5 Oct 2016 07:57:12 +0000 (09:57 +0200)]
drm/exynos/dsi: rename variables to match mainline kernel

Decreasing number of differences in tizen and mainline
should simplify development of both branches.

Change-Id: I7b0ef48f01a9681e4661434916d410e1d173a30d
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/dsi: replace registry access macros with functions 59/92159/3
Andrzej Hajda [Mon, 17 Oct 2016 09:07:23 +0000 (11:07 +0200)]
drm/exynos/dsi: replace registry access macros with functions

Functions are preferred over macros as more type-safe.

Change-Id: I24a618d1c8189ad5606db4529178811957b062bb
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agoFix for enabling self-broadcast-signal subscription 65/91665/4 accepted/tizen/3.0/ivi/20161028.151324 accepted/tizen/3.0/mobile/20161028.143217 accepted/tizen/3.0/tv/20161028.143516 accepted/tizen/3.0/wearable/20161028.150845 accepted/tizen/common/20161017.170119 accepted/tizen/ivi/20161017.075853 accepted/tizen/mobile/20161017.075810 accepted/tizen/tv/20161017.075823 accepted/tizen/wearable/20161017.075838 submit/tizen/20161017.013745 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
INSUN PYO [Wed, 12 Oct 2016 03:11:10 +0000 (12:11 +0900)]
Fix for enabling self-broadcast-signal subscription

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
[ This commit re-applies change I4d52c8b8653025e2cca138b40a4e84f1805e1c7 to new kdbus upstream version. ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: Ia886dd4b3e15b1d89ee7fd31d12be9ae7d1b863e

8 years agokdbus: allowing sending replies even if NO_EXPECT_REPLY is set 68/91668/4
Lukasz Skalski [Wed, 20 Jul 2016 16:21:25 +0000 (18:21 +0200)]
kdbus: allowing sending replies even if NO_EXPECT_REPLY is set

[ This commit re-applies change I34427f381957dd8d366e9e4d837d5a2a34a39cc1 to new kdbus upstream version. ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I6155f3599e59cd880267d9c03b0212b47ec9a64c

8 years agokdbus: allow unix domain socket fd passing 67/91667/4
Konrad Lipinski [Fri, 15 Jul 2016 11:15:05 +0000 (13:15 +0200)]
kdbus: allow unix domain socket fd passing

[ This commit re-applies change Ifafec44da924ec8ed677629606c92a45e7171636 to new kdbus upstream version. ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: Ib293d0d864a3a91cf8422bcccc1f7593285868a1

8 years agokdbus: Upgrade driver to newer upstream version 64/91664/4
Karol Lewandowski [Thu, 6 Oct 2016 12:20:24 +0000 (14:20 +0200)]
kdbus: Upgrade driver to newer upstream version

This commit upgrades kdbus ipc driver from v4 patchset, as posted on lkml
for review by Greg Kroah-Hartman on Mar 09 2015 to commit 0c05fbdc82f from
new upstream kdbus repository (git://github.com/systemd/kdbus).

Summary of major changes:

 * message importer rewritten - considerably reduces internal message
   processing overhead,

 * name registration reworked to follow DBus Specification precisely,

 * attached metadata now follow /proc access checks

 * reduced in-kernel stack buffer to 256 bytes for small messages

Change-Id: I6d849173b4289e1b684ed1a9b48e6e0b361e5d53

8 years agokdbus: cmdline emptiness check fix 75/91975/1 accepted/tizen/common/20161017.170018 accepted/tizen/ivi/20161017.013621 accepted/tizen/mobile/20161017.013555 accepted/tizen/tv/20161017.013606 accepted/tizen/wearable/20161017.013613 submit/tizen/20161014.114439
Konrad Lipinski [Wed, 12 Oct 2016 10:54:15 +0000 (12:54 +0200)]
kdbus: cmdline emptiness check fix

Change-Id: Ia925fa43bf4c50ab707be98f275b50808782f063

8 years agoFix for enabling self-broadcast-signal subscription 66/91866/1 accepted/tizen/common/20161012.154418 accepted/tizen/ivi/20161012.114024 accepted/tizen/mobile/20161012.113939 accepted/tizen/tv/20161012.113955 accepted/tizen/wearable/20161012.114005 submit/tizen/20161012.033918
INSUN PYO [Wed, 12 Oct 2016 03:11:10 +0000 (12:11 +0900)]
Fix for enabling self-broadcast-signal subscription

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

8 years agokdbus: allow senders to receive own broadcasts 37/91737/1 submit/tizen/20161011.063715
INSUN PYO [Tue, 11 Oct 2016 06:14:46 +0000 (15:14 +0900)]
kdbus: allow senders to receive own broadcasts

The dbus1 spec does not place a restriction on who can receive broadcasts.
As long as the sender has a MATCH-rule on itself, it can as well receive
its own broadcasts.

As it turns out, user-space currently relies on this feature. So make sure
to allow this just like dbus1. If we find some client that does not work
with this, we will have to turn it into a HELLO-flag. Until then, just try
to adjust the default behavior.

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

8 years agoARM: defconfig: odroid: enable CAN and VCAN options. 75/91475/3 accepted/tizen/common/20161010.145854 accepted/tizen/ivi/20161010.232210 accepted/tizen/mobile/20161010.232125 accepted/tizen/tv/20161010.232145 accepted/tizen/wearable/20161010.232151 submit/tizen/20161010.061729
Sangjung Woo [Mon, 10 Oct 2016 05:03:14 +0000 (14:03 +0900)]
ARM: defconfig: odroid: enable CAN and VCAN options.

In order to support CAN (i.e. Controller Area Network), this patch
enables CAN and its related options like VCAN.

Change-Id: I4d709b0be98c1ed1c307925fd5cdca0058ea6847
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agoARM: dts: add mmc detect gpio for exynos5422-odroidxu3/4 01/91301/3 submit/tizen/20161010.025055
Łukasz Stelmach [Thu, 6 Oct 2016 14:42:34 +0000 (16:42 +0200)]
ARM: dts: add mmc detect gpio for exynos5422-odroidxu3/4

The patch adds gpio for detecting presence of MMC card.
It fixes issue with kernel hang when MMC card is missing
and prevents flooding kernel log with mmc bus parameters.

Change-Id: I6eca44d9942c9f5958dba68a98ea25f2809ed20d
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=fb1aeedb61adcb7651eada9eb79ddfa11f21f085

8 years agopackaging: devel package name unification 86/90786/4
Dmitry Kovalenko [Tue, 4 Oct 2016 08:32:04 +0000 (11:32 +0300)]
packaging: devel package name unification

All kernels provides unified kernel-devel-tizen package and located at
/boot/kernel/devel/tizen-devel (solved using symlink)

Change-Id: Ia8d5091db9a1073c170abbadb0d7cc37bc6380f6
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
[Update commit-msg and just add Provided name for devel package instead of replacing]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agodrm/exynos/hdmi: remove unused hdmiphy_poweron() 68/90968/1
Seung-Woo Kim [Wed, 5 Oct 2016 07:26:11 +0000 (16:26 +0900)]
drm/exynos/hdmi: remove unused hdmiphy_poweron()

The function hdmiphy_poweron() is not used anymore, so this patch
removes it. This patch fixes following build warning.

   drivers/gpu/drm/exynos/exynos_hdmi.c:1897:13: warning: 'hdmiphy_poweron' defined but not used [-Wunused-function]
    static void hdmiphy_poweron(struct hdmi_context *hdata)
                ^

Change-Id: I4c51b45becf8f52ef85020c7e1628d7baad90670
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agosensors: brcm: fix not to send commands to not initialized mcu 75/90775/3
Hoegeun Kwon [Tue, 4 Oct 2016 07:49:16 +0000 (16:49 +0900)]
sensors: brcm: fix not to send commands to not initialized mcu

The suspend and resume errors happen when sensorhub mcu was not
initialized. So it needs to check the sensorhub mcu state.

Change-Id: I7d738d2316bbe20922df39c6ddfdf3573bc8984d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
8 years agodrm/exynos: add trace support 07/89507/6
Inki Dae [Fri, 19 Aug 2016 11:46:09 +0000 (13:46 +0200)]
drm/exynos: add trace support

This patch adds trace support and also inserts
two trace points, one is win_commit and other is finish_pageflip.
These would give us help to trace pageflip operation.

Change-Id: I1cd912f03703ae40d3fe45a4b329eddfce5178e4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[squashed with bugfixes and ported to v4.1 Tizen kernel]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
8 years agoBluetooth: Increase supervision timeout to fix issues 07/90807/4
Sudha Bheemanna [Tue, 4 Oct 2016 09:16:13 +0000 (14:46 +0530)]
Bluetooth: Increase supervision timeout to fix issues

Too small supervision timeout causes sudden link loss when remote
device has multiple links and it cannot manage those properly. To
protect such a case, it needs to widen supervision timeout.

Change-Id: I6e0cef7d5d5b6f1c3635ee1c1b59c550438dfd9f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoARM: tizen_{odroid,tm2}_defconfig: enable DMA BUF FENCE support 10/89510/3
Marek Szyprowski [Fri, 19 Aug 2016 12:11:00 +0000 (14:11 +0200)]
ARM: tizen_{odroid,tm2}_defconfig: enable DMA BUF FENCE support

Change-Id: I963eaef32f09f32f3e93418e6c236964ee0e54ad
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
8 years agodrm/exynos: fence: add dma fence support 06/89506/3
Inki Dae [Fri, 19 Aug 2016 11:44:54 +0000 (13:44 +0200)]
drm/exynos: fence: add dma fence support

This patch adds DMA fence based DMABUF synchronization feature.
The original codes of this feature is a below repository,
    https://chromium.googlesource.com/chromiumos/third_party/kernel
     chromeos-3.14

Change-Id: I4bcefb1487d6a85530fcd5ea4dde5fba435bb827
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[squashed with bugfixes and ported to v4.1 Tizen kernel]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
8 years agodrm: add helpers for fence and reservation based dma-buf sync 05/89505/3
Dominik Behr [Fri, 19 Aug 2016 11:44:17 +0000 (13:44 +0200)]
drm: add helpers for fence and reservation based dma-buf sync

BUG=chromium:395901
TEST=emerge-veyron chromeos-kernel-3_14, deploy and boot kernel

Change-Id: I0cdf6d23e9f4924128d4de77c0f3ed7589766bb8
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/218381
[mszyprow: ported to v4.1 kernel]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
8 years agodrm/exynos: fix types for compilation on 64bit architectures 03/90503/2
Marek Szyprowski [Wed, 3 Feb 2016 12:42:47 +0000 (13:42 +0100)]
drm/exynos: fix types for compilation on 64bit architectures

This patch fixes compilation warnings (on 64bit architectures) and bugs
related to casting pointers through 32bit integers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[backport from mainline to remove remaining build warnings]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I21826b01286c6152be873d2234e14eb1950f3ca9

8 years agoBluetooth: fix build error without BT_6LOWPAN 88/90488/2
Seung-Woo Kim [Fri, 30 Sep 2016 08:15:12 +0000 (17:15 +0900)]
Bluetooth: fix build error without BT_6LOWPAN

Without config option BT_6LOWPAN, no 6lowpan functions are built-in,
so it causes build error. This patch fixes the build error.

Change-Id: If5bcea028dc8127a0451fb4f35bd4cd83ca43dc5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Set le data length command and event 51/88351/5
Sudha Bheemanna [Fri, 16 Sep 2016 10:07:22 +0000 (15:37 +0530)]
Bluetooth: Set le data length command and event

Sets the data length for the le data packet with in the
advised limits. MGMT command and event are added to handle
the setting of data length.

Change-Id: I3dbcbba83098e17f0e6da209753f8924ffb67678
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Read host suggested default le data length 01/88301/5
Sudha Bheemanna [Fri, 16 Sep 2016 07:24:31 +0000 (12:54 +0530)]
Bluetooth: Read host suggested default le data length

This patch adds MGMT command and code for supporting reading
default le data length value set at the controller.

Change-Id: I2b81982dc26ed5af4a8f8a3d3913db5d64625260
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Write host suggested default le data length 99/88299/4
Sudha Bheemanna [Fri, 16 Sep 2016 06:39:57 +0000 (12:09 +0530)]
Bluetooth: Write host suggested default le data length

This patch adds MGMT command and code for supporting write
default le data length command to the controller.

Change-Id: I3d2c8b622b7913a3ed542342e3ba8076c30dc279
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Read LE Max data length command 92/88292/10
Sudha Bheemanna [Fri, 16 Sep 2016 05:08:30 +0000 (10:38 +0530)]
Bluetooth: Read LE Max data length command

This patch adds the MGMT command and code to support reading
the maximum data length supported command for LE.

Change-Id: I4dc0041f2070de2ccb6a4164c8823612863c941e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoARM: defconfig: odroid: enable 6LOWPAN and BT_6LOWPAN options 38/90338/1
Seung-Woo Kim [Thu, 29 Sep 2016 07:33:28 +0000 (16:33 +0900)]
ARM: defconfig: odroid: enable 6LOWPAN and BT_6LOWPAN options

This patch enables 6Lowpan modules for BT.

Change-Id: Id607cc9ef9cdcee5600ecfe151562752ade82475
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoarm64: defconfig: tm2: enable 6LOWPAN and BT_6LOWPAN options 37/90337/1
Seung-Woo Kim [Thu, 29 Sep 2016 07:28:41 +0000 (16:28 +0900)]
arm64: defconfig: tm2: enable 6LOWPAN and BT_6LOWPAN options

This patch enables 6Lowpan modules for BT.

Change-Id: I5181bd4ae1face748049448239cb62e90b341fbf
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Fix IPSP connection callback event issue. 22/88322/5
h.sandeep [Fri, 16 Sep 2016 09:15:24 +0000 (14:45 +0530)]
Bluetooth: Fix IPSP connection callback event issue.

This patch fixes the IPSP connection callback event issue
between kernel and bluez layer.

Change-Id: Ia4d625aa8a6dbc9da89a7d9f12308af9c90d0594
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: IPSP Connect/Disconnect apis 26/88226/8
Sudha Bheemanna [Thu, 15 Sep 2016 07:23:03 +0000 (12:53 +0530)]
Bluetooth: IPSP Connect/Disconnect apis

This patch adds MGMT code to support IPSP connect and
disconnect apis and handle connection state changed event.

Change-Id: I1c41ec4f38cf9a108e443def3bc23c1b964e2985
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add support to enable/disable IPSP 19/88219/8
Sudha Bheemanna [Thu, 15 Sep 2016 04:42:09 +0000 (10:12 +0530)]
Bluetooth: Add support to enable/disable IPSP

This patch supports MGMT commands and code to enable or disable
IPSP 6LowPan features.

Change-Id: Ia866ecfa517c7d7e4320f17d94d80dfeb9261e59
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Fix issue in the Set LE privacy function. 19/87519/8
Sudha Bheemanna [Thu, 8 Sep 2016 10:51:01 +0000 (16:21 +0530)]
Bluetooth: Fix issue in the Set LE privacy function.

This patch fixes not to check the hdev power before setting
LE Privacy.

Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Store the key if auth type is P192 29/87929/7
Sudha Bheemanna [Mon, 12 Sep 2016 07:16:44 +0000 (12:46 +0530)]
Bluetooth: Store the key if auth type is P192

This patch allows to store the key after authentication
if auth type is "HCI_LK_AUTH_COMBINATION_P192"

Change-Id: Ie44dbe7dfec361edab61aceaf9b2ca4057b88fa5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: check sock parent before unlink 19/87919/5
Sudha Bheemanna [Mon, 12 Sep 2016 06:27:38 +0000 (11:57 +0530)]
Bluetooth: check sock parent before unlink

Add a check for BT socket before using it to unlink
in bt_accept_unlink(). This helps to avoid kernel panic.

Change-Id: Ie8919dedce239a3476c06ad48ebb3a0f731b9856
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[update patch title]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Cancel the Sniff timer 36/87536/5
Sudha Bheemanna [Thu, 8 Sep 2016 11:31:39 +0000 (17:01 +0530)]
Bluetooth: Cancel the Sniff timer

This patch adds code to cancel the sniff timer.

Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Enable sniff mode for incoming connection 30/87530/6
Sudha Bheemanna [Thu, 8 Sep 2016 11:10:50 +0000 (16:40 +0530)]
Bluetooth: Enable sniff mode for incoming connection

Add provision to set the link poilicy to enable sniff mode
for incoming connection.

Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Modify fast connectable type. 18/87518/6
Sudha Bheemanna [Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)]
Bluetooth: Modify fast connectable type.

This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Send Authentication Request command on pairing failure 11/87511/6
Sudha Bheemanna [Thu, 8 Sep 2016 09:41:28 +0000 (15:11 +0530)]
Bluetooth: Send Authentication Request command on pairing failure

This patch allows to send HCI_OP_AUTH_REQUESTED command
to the remote device if pairing failure happens because
of pin or key missing error.

Change-Id: I9c28394dc06b22fd5fe9e58ac0b7d728c086bde4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Enable inquiry and page scan 06/87506/6
Sudha Bheemanna [Thu, 8 Sep 2016 09:24:54 +0000 (14:54 +0530)]
Bluetooth: Enable inquiry and page scan

This patch enables the inquiry and page scan after ACL
disconnection with one device and if there are no other
devices connected.

Change-Id: Ifb28be7d23f237d35112b2e0739ed55169baacf7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Change authentication requirement. 77/87477/6
Sudha Bheemanna [Thu, 8 Sep 2016 07:34:11 +0000 (13:04 +0530)]
Bluetooth: Change authentication requirement.

This patch updates the authentication requirement to general
MITM if local and remote device IO capabilities are not
NO_INPUT_NO_OUTPUT.

Change-Id: Ie3955c3f8287418e74af20d40bdf30d0f1963e31
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Set link Supervision timeout for a connection 69/87469/6
Sudha Bheemanna [Thu, 8 Sep 2016 06:54:43 +0000 (12:24 +0530)]
Bluetooth: Set link Supervision timeout for a connection

This patch allows to set the supervision timeout for a connection
if the device role is master.

Change-Id: I7897167ec07803f3059f2ab4d3314b0b7a951533
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Set filter policy for LE connection 59/87459/7
Sudha Bheemanna [Thu, 8 Sep 2016 05:51:06 +0000 (11:21 +0530)]
Bluetooth: Set filter policy for LE connection

This patch sets the filter policy to a default value 0x01 during
LE auto connection if the destination address is not set. And it
updates the destination address once the LE connection complete
event is recieved during LE auto connection. And for it checks
valid destination address before cancelling LE connection when
connection timeout occurs.

Change-Id: I9877556c0b0ab4826f5f4934ead4d85b7837036d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[squash patches, LE connection policy, set dest address and check dest address before cancelling connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Get Advertising TX power 11/87311/9
Sudha Bheemanna [Wed, 7 Sep 2016 09:52:08 +0000 (15:22 +0530)]
Bluetooth: Get Advertising TX power

This patch adds MGMT command to read the advertising TX power.

Change-Id: Ide9e5d332f034928d2eae2cbd68a025a0d42be1b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Set the link for SCO connection 71/87471/7
Sudha Bheemanna [Thu, 8 Sep 2016 07:07:45 +0000 (12:37 +0530)]
Bluetooth: Set the link for SCO connection

This patch sets the link policy for SCO/eSCO connection.

Change-Id: I71caef5a3887f73a10329b6886c8cf52b80e8d37
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[add link policy setting in sco connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Add MGMT command to set SCO settings 23/87123/11
Sudha Bheemanna [Tue, 6 Sep 2016 11:08:36 +0000 (16:38 +0530)]
Bluetooth: Add MGMT command to set SCO settings

Added code to set sco settings.

Change-Id: I37aa572436241b06e00d1e9e75964aac747eeba5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[remove sco link policy part]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Add multiple LE advertise state change event 48/87448/9
Sudha Bheemanna [Thu, 8 Sep 2016 05:01:17 +0000 (10:31 +0530)]
Bluetooth: Add multiple LE advertise state change event

This patch adds code for providing multiple LE advertisement state
changed event to upper layer.

Change-Id: I58fb8044e74402376ec30b121081edce7c8709d1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci_vendor_mutli_adv_state_change_evt and remove hci event structure from mgmt]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Add LE device found MGMT event 40/87440/10
Sudha Bheemanna [Thu, 8 Sep 2016 04:40:03 +0000 (10:10 +0530)]
Bluetooth: Add LE device found MGMT event

This patch adds new MGMT event for LE device discovery and allows
the handling of all advertisement packets in platform.

Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add H/W TX timeout error MGMT event 42/87342/10
Sudha Bheemanna [Wed, 7 Sep 2016 11:17:58 +0000 (16:47 +0530)]
Bluetooth: Add H/W TX timeout error MGMT event

This patch sends the H/W TX timeout error MGMT event if HCI command
timeout occurs after sending HCI commands.

Change-Id: I5eb593f2fe4d31c404dd94ef582790e47d03b10a
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add hardware error MGMT event 15/87315/10
Sudha Bheemanna [Wed, 7 Sep 2016 10:12:22 +0000 (15:42 +0530)]
Bluetooth: Add hardware error MGMT event

Add code to handle hardware error MGMT event.

Change-Id: I5875ea2aeae7aba95c1f8e15b456704dc6bcdee4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: fix vendor ext rssi link alert event 78/90178/2
Seung-Woo Kim [Wed, 28 Sep 2016 16:59:05 +0000 (01:59 +0900)]
Bluetooth: fix vendor ext rssi link alert event

This patch fixes style for rssi link alert event from vendor
specific group ext.

Change-Id: I0e7003e417c5f5a590cce8264caccad515dd3c10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Add LE vendor specific event handler 53/87453/7
Sudha Bheemanna [Thu, 8 Sep 2016 05:26:15 +0000 (10:56 +0530)]
Bluetooth: Add LE vendor specific event handler

This patch adds the vendor specific LE meta event handler.
It handles the vendor specific handles like,
LE_MULTI_ADV_STATE_CHANGE_SUB_EVENT, LE_RSSI_LINK_ALERT.

Change-Id: I1f344a31e36f9c7442fe0bd8b598e67d9f5fb9bf
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci vendor speicif group event function]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agotrace: ramdump: comment out not used functions 62/90162/1
Seung-Woo Kim [Wed, 28 Sep 2016 15:39:28 +0000 (00:39 +0900)]
trace: ramdump: comment out not used functions

This patch comments out not used functions to remove following
warnings.

   drivers/trace/exynos-ss.c:593:21: warning: 'exynos_ss_get_core_panic_stat' defined but not used [-Wunused-function]
    static unsigned int exynos_ss_get_core_panic_stat(unsigned cpu)
                        ^
   drivers/trace/exynos-ss.c:1047:13: warning: 'exynos_ss_dump_task_info' defined but not used [-Wunused-function]
    static void exynos_ss_dump_task_info(void)
                ^

Change-Id: I267ad6128ea33ceb4cc476c0aa5aa0a6c4da6f95
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agosched: hmp: fix wrong initialization of hmp_data 60/90160/1
Seung-Woo Kim [Wed, 28 Sep 2016 15:25:48 +0000 (00:25 +0900)]
sched: hmp: fix wrong initialization of hmp_data

There was wrong memset for hmp_data, so this patch fixes it. This also
fixes following build warning.

   kernel/sched/fair.c: In function 'hmp_attr_init':
   kernel/sched/fair.c:5642:2: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
     memset(&hmp_data, sizeof(hmp_data), 0);
     ^

Change-Id: I2d1b49b2591015fab011a150278f6688324411f6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agommc: dw_mmc: fix the spamming log message 58/89758/1
Jaehoon Chung [Thu, 22 Sep 2016 05:12:00 +0000 (14:12 +0900)]
mmc: dw_mmc: fix the spamming log message

When there is no Card which is set to "broken-cd", it's displayed a clock
information continuously. Because it's polling for detecting card.
This patch is fixed this problem.

Change-Id: I035dd0ecf5857f0639d6d1091e958a0552ffba47
Fixes: 65257a0deed5 ("mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus()")
Reported-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
8 years agoASoC: max98504A: fix build warning 15/89515/1
Inki Dae [Mon, 26 Sep 2016 01:58:22 +0000 (10:58 +0900)]
ASoC: max98504A: fix build warning

This patch fixes below build warnings,
     sound/soc/codecs/max98504a.c:271:1: warning: label 'err_access'
defined but not used [-Wunused-label]
     sound/soc/codecs/max98504a.c:173:15: warning: unused variable
'value' [-Wunused-variable]

Change-Id: I74bbe99e44591052daa05eadcbfaa795fb0e99d4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agoiommu: exynos-iommu: fix build warning 14/89514/1
Inki Dae [Mon, 26 Sep 2016 01:47:37 +0000 (10:47 +0900)]
iommu: exynos-iommu: fix build warning

This fixes below build warning,
drivers/iommu/exynos-iommu.c:389:16: warning: unused variable 'addr'
[-Wunused-variable]

Change-Id: I154ed6bbc79dc75c7de0579141019a2ce441e9a1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agoBluetooth: Add set LE scan parameter feature 55/85455/12 accepted/tizen/3.0/ivi/20161011.050606 accepted/tizen/3.0/mobile/20161015.033728 accepted/tizen/3.0/tv/20161016.005322 accepted/tizen/3.0/wearable/20161015.083624 accepted/tizen/common/20160926.154209 accepted/tizen/ivi/20160927.021026 accepted/tizen/mobile/20160927.021032 accepted/tizen/tv/20160927.021021 accepted/tizen/wearable/20160927.021029 submit/tizen/20160926.022655 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000004 submit/tizen_3.0_wearable/20161015.000004
Sudha Bheemanna [Thu, 25 Aug 2016 07:16:07 +0000 (12:46 +0530)]
Bluetooth: Add set LE scan parameter feature

Added new MGMT command to set LE scan parameters

Change-Id: I5ea660f97e93dfcc72273971ad0250e7f582f718
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Set Manufacturer data feature 46/85446/16
Sudha Bheemanna [Thu, 25 Aug 2016 06:43:09 +0000 (12:13 +0530)]
Bluetooth: Set Manufacturer data feature

Added new MGMT command to set the manufacturer data
in the BR/EDR packet.

Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add LE connection parameter update procedure 41/85441/21
Sudha Bheemanna [Thu, 25 Aug 2016 06:28:22 +0000 (11:58 +0530)]
Bluetooth: Add LE connection parameter update procedure

Added new MGMT command to update LE connection parameters

Change-Id: I6ae16513437cd42d40e75958aa8415baa1cbedbb
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add stop LE auto connection feature 34/85434/13
Sudha Bheemanna [Thu, 25 Aug 2016 06:11:34 +0000 (11:41 +0530)]
Bluetooth: Add stop LE auto connection feature

Added new MGMT command to disable LE auto connection.

Change-Id: I1f5f61b83227501ad54019008b405fd47fd722a3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoBluetooth: Add BT LE discovery feature 24/85424/14
Sudha Bheemanna [Thu, 25 Aug 2016 05:53:02 +0000 (11:23 +0530)]
Bluetooth: Add BT LE discovery feature

This patch adds new MGMT commands to start LE discovery separately
and handles LE discovery state.

Change-Id: I85958b8c2b5c7e28f57c69e86037ab1e61a75db0
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoBluetooth: Update device name on remote_name_event 14/85414/13
Sudha Bheemanna [Thu, 25 Aug 2016 04:47:19 +0000 (10:17 +0530)]
Bluetooth: Update device name on remote_name_event

This patch updates the device name on receiving the HCI event
remote_name_event during connection establishment.

Change-Id: I9a217e6760b1803a70af201a3f6903e722079749
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agodrm/panel/s6e3ha2: store nit array pointers in context 64/88064/3
Andrzej Hajda [Tue, 13 Sep 2016 06:54:45 +0000 (08:54 +0200)]
drm/panel/s6e3ha2: store nit array pointers in context

Nit arrays are often used by the driver, storing their pointers in
the context simplifies code.

Change-Id: I88700800367112002b57dec2cc066b38a84a7511
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: merge brightness setting for normal and HMT mode 70/87970/3
Andrzej Hajda [Mon, 12 Sep 2016 10:21:57 +0000 (12:21 +0200)]
drm/panel/s6e3ha2: merge brightness setting for normal and HMT mode

Both functions do the same thing, the only difference is the order
of operations, which is incorrect in case of normal mode.

Change-Id: I2f6850d3b6ae9c0afeafda74756ee2a78166da36
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: fix VINT settings 69/87969/3
Andrzej Hajda [Mon, 12 Sep 2016 10:18:25 +0000 (12:18 +0200)]
drm/panel/s6e3ha2: fix VINT settings

VINT should be set only for s6e3ha2 panel and should depend linearly on
nit value. The patch merges also VINT setting for normal and HMT mode.

Change-Id: I86383ea6fd1ac84812771c8923483e433698bc18
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: merge POC setting commands 68/87968/3
Andrzej Hajda [Mon, 12 Sep 2016 09:23:07 +0000 (11:23 +0200)]
drm/panel/s6e3ha2: merge POC setting commands

The patch merges POC setting commands into one function.

Change-Id: Ifbcc0921e9c4cc6da015460e700607e2cdba561a
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: merge interface setting commands 67/87967/3
Andrzej Hajda [Mon, 12 Sep 2016 09:04:19 +0000 (11:04 +0200)]
drm/panel/s6e3ha2: merge interface setting commands

The patch merges interface setting commands into one function.

Change-Id: Iedb8592413a9f2b1cf47ed1be9576e5afd694336
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: merge panel update code into one function 66/87966/3
Andrzej Hajda [Mon, 12 Sep 2016 08:55:42 +0000 (10:55 +0200)]
drm/panel/s6e3ha2: merge panel update code into one function

The patch merges panel update sequence into one function and adds
necessary delay.

Change-Id: I056c0288a1200ab43dea5c0184c99601f8d5d625
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: implement dynamic ELVSS setting 41/87941/3
Andrzej Hajda [Mon, 12 Sep 2016 08:10:07 +0000 (10:10 +0200)]
drm/panel/s6e3ha2: implement dynamic ELVSS setting

ELVSS settings should depend on actual brightness.

Change-Id: Id18fbdfdd8a3e2ddd577add4322aba617af1348b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: refactor temperature setting function 40/87940/3
Andrzej Hajda [Fri, 9 Sep 2016 13:12:42 +0000 (15:12 +0200)]
drm/panel/s6e3ha2: refactor temperature setting function

Function setting temperature was named incorrectly and split into two
functions. The patch fixes it and makes the code more readable.

Change-Id: If3588d56b4c5a9aaae833ff84b96ee47171f2bb4
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: replace DCS/MCS command codes with macros 39/87939/3
Andrzej Hajda [Fri, 9 Sep 2016 10:50:35 +0000 (12:50 +0200)]
drm/panel/s6e3ha2: replace DCS/MCS command codes with macros

Available documentation provides command names or at least command
descriptions for DCS/MCS commands.

Change-Id: I84e5881f18c1a8f6d7cdba2c74f35659b0149139
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: implement dynamic AID off ratio setting 66/87566/4
Andrzej Hajda [Thu, 8 Sep 2016 13:43:22 +0000 (15:43 +0200)]
drm/panel/s6e3ha2: implement dynamic AID off ratio setting

AID off ratio should be set according to current brightness.

Change-Id: I37094998479aa3fbe88c77767e1779c09b40cf84
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: handle max brightness specially 65/87565/4
Andrzej Hajda [Thu, 8 Sep 2016 13:39:04 +0000 (15:39 +0200)]
drm/panel/s6e3ha2: handle max brightness specially

The last nit should be treated specially and should be selected
iff max brightness is set.

Change-Id: Ifa58b0f6ced9859485ee727eb296415fa50e4cd0
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: store nit index in context 64/87564/4
Andrzej Hajda [Thu, 8 Sep 2016 10:59:12 +0000 (12:59 +0200)]
drm/panel/s6e3ha2: store nit index in context

NIT index will be used by other functions, so instead evaluating it
multiple times we will store it in context.

Change-Id: I9e32ce8a8a23b43857a6285790aead27920ba693
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: add brightness setting to HMT modes 91/87491/4
Andrzej Hajda [Thu, 8 Sep 2016 08:27:49 +0000 (10:27 +0200)]
drm/panel/s6e3ha2: add brightness setting to HMT modes

In HMT mode gamma tables should be calculated differently.
The patch adds code to calculate them in both variants.

Change-Id: I5f3f493bae96113b6195676c443b733c5a0221a1
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: move all attributes to backlight device 90/87490/4
Andrzej Hajda [Thu, 8 Sep 2016 07:32:27 +0000 (09:32 +0200)]
drm/panel/s6e3ha2: move all attributes to backlight device

It simplifies access attributes from user space.

Change-Id: I83e9359bbd86e82bf386bb1d7040886891009054
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: fix brightness to nits mapping 89/87489/4
Andrzej Hajda [Wed, 7 Sep 2016 13:15:05 +0000 (15:15 +0200)]
drm/panel/s6e3ha2: fix brightness to nits mapping

Brightness should be linearly mapped to nit values instead of nit indices.
Panel should use gamma index which has corresponding nit value nearest
to expected brightness after re-scaling.

Change-Id: I9bfa6385651b292881a10f8e2972551bdd0008de
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: use different tables for s6e3hf2 model 10/87310/5
Andrzej Hajda [Wed, 7 Sep 2016 09:50:51 +0000 (11:50 +0200)]
drm/panel/s6e3ha2: use different tables for s6e3hf2 model

s6e3hf2 model differs from s6e3ha2. To provide proper gamma tables
different configuration tables should be used.

Change-Id: I9e1f4637ceae13bfc2b229d7319184fe4cbc0b35
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: use Dynamic AID tables 58/87158/5
Andrzej Hajda [Tue, 6 Sep 2016 13:45:08 +0000 (15:45 +0200)]
drm/panel/s6e3ha2: use Dynamic AID tables

The patch adds support for dynamically generated gamma tables using
dynamic_aid helpers.

Change-Id: I2124abdda78169f3662f0658b5477e2e8f04ed33
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel: add Samsung Dynamic AID helpers 57/87157/6
Andrzej Hajda [Tue, 6 Sep 2016 09:35:03 +0000 (11:35 +0200)]
drm/panel: add Samsung Dynamic AID helpers

Dynamic AMOLED Impulse Driving helpers allow to calculate gamma tables
for different brightness levels based on tables specific for given
model of display panel and values written in MTP memory of the panel.

Change-Id: I98de87d78b481f3369ea9952df058126ec513e9b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agoBluetooth: Add RSSI Monitor feature 98/85298/17
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agokmsg: format back to previous for /dev/kmsg 17/88817/4
Michal Bloch [Tue, 20 Sep 2016 14:05:51 +0000 (16:05 +0200)]
kmsg: format back to previous for /dev/kmsg

 * no binary characters and no \0 at the end
 * done because the new format breaks various tools (such as sd-journal)
 * only affects prime /dev/kmsg, the additional /dev/kmsg12 etc unaffected

Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Change-Id: Ideadbeef08f960fa7a2766b91ab2a72e8d2891b6

8 years agoBluetooth: Functions to modify WhiteList 62/85262/10
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoBluetooth: Add Advertising Packet Configuration 50/85250/13
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoRevert "LOCAL / dwc3: gadget: add VBUS session handling" 48/88848/1
Dongwoo Lee [Wed, 21 Sep 2016 02:20:17 +0000 (11:20 +0900)]
Revert "LOCAL / dwc3: gadget: add VBUS session handling"

This reverts commit 835ba793e91ddfc2ec8dc25183fac0efdf346f4a.

After commit 628ef0d ("usb: udc: add usb_udc_vbus_handler"), the
patch is not necessary, and it causes failure of host switch after
peripheral role.

Change-Id: I6e1786ee7f2ab46019f3fb50efc92735f0c99cab
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoARM: defconfig: odroid: enable CPUFREQ_DT config option 36/88536/1
Seung-Woo Kim [Mon, 19 Sep 2016 13:17:54 +0000 (22:17 +0900)]
ARM: defconfig: odroid: enable CPUFREQ_DT config option

To support cpufreq from non big.little arm socs, CPUFREQ_DT shuold
be enabled. So, this patch enables CPUFREQ_DT config option.

Change-Id: Ic964ce630b6e0eeb4480d5f87b9ec32f375ffc0f
Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agodrm/panel/s6e3ha2: remove redundant definition of VINT_STATUS_MAX 56/87156/4
Andrzej Hajda [Tue, 6 Sep 2016 09:20:32 +0000 (11:20 +0200)]
drm/panel/s6e3ha2: remove redundant definition of VINT_STATUS_MAX

VINT_STATUS_MAX is equal to size of VINT_TABLE, so it can be replaced
be ARRAY_SIZE macro.

Change-Id: I5c6ee3ec4a9827e844f89d0d85ccb18f785378aa
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/panel/s6e3ha2: fix includes 55/87155/4
Andrzej Hajda [Tue, 6 Sep 2016 08:48:22 +0000 (10:48 +0200)]
drm/panel/s6e3ha2: fix includes

The patch removes unnecessary includes an sorts the rest.

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