platform/kernel/linux-exynos.git
7 years agodrm/bridge/sii8620: add message queue cleanup
Andrzej Hajda [Mon, 17 Oct 2016 12:21:37 +0000 (14:21 +0200)]
drm/bridge/sii8620: add message queue cleanup

Queue should be cleaned up on disconnect, otherwise we risk misbehavior.

Change-Id: I4f212e1c36ac75f6f72102b24a1c5b14a932aeca
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/bridge/sii8620: rename symbol names
Andrzej Hajda [Mon, 17 Oct 2016 12:12:18 +0000 (14:12 +0200)]
drm/bridge/sii8620: rename symbol names

The patch renames variables and defines to match these in mainline.

Change-Id: Iec05a4477001d57aa09fc34e1eec2c330f84253d
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/bridge/sii8620: simplify sii8620_mt_msc_cmd_send
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>
7 years agodrm/bridge/sii8620: improve transfer logs
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>
7 years agodrm/bridge/sii8620: use static version of sii8620_write_seq if possible
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>
7 years agodrm/bridge/sii8620: re-factor registry access code
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>
7 years agoARM64: dts: exynos5433-tm2(e): sii8620 remove obsolete int-gpio properties
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>
7 years agodrm/bridge/sii8620: use I2C to parse interrupt DT properties
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>
7 years agoARM64: dts: exynos5433-tm2(e): sii8620 add interrupt properties
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>
7 years agodrm/bridge/sii8620: re-factor context fields
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>
7 years agodrm/exynos/dsi: mimic indentation of mainline driver
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>
7 years agodrm/exynos/dsi: use of_graph_get_endpoint_by_regs helper
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>
7 years agodrm/exynos/dsi: use core helper to create DSI packet
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>
7 years agodrm/exynos/dsi: constify read-only variables
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>
7 years agodrm/exynos: support exynos5422 mipi-dsi
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>
7 years agodrm/exynos/dsi: rename variables to match mainline kernel
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>
7 years agodrm/exynos/dsi: replace registry access macros with functions
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>
7 years agokdbus: link replies in fifo send order
Konrad Lipinski [Fri, 9 Dec 2016 16:38:32 +0000 (17:38 +0100)]
kdbus: link replies in fifo send order

As a consequence, timeouts are now issued in fifo order.

Change-Id: Iacf4e922a37038fa42f95a9d058eeacd0ebce3ec
Signed-off-by: Konrad Lipinski <konrad.l@samsung.com>
7 years agokdbus: Remove the unnecessary code that unlink the reply twice.
INSUN PYO [Thu, 24 Nov 2016 07:03:42 +0000 (16:03 +0900)]
kdbus: Remove the unnecessary code that unlink the reply twice.

In sync call situation, kdbus_conn_reply() calls kdbus_reply_unlink(reply).
Then, kdbus_conn_entry_sync_attach() also calls kdbus_reply_unlink(reply_wake),
so it is called twice. Even it has no problems because kdbus_reply_unlink()
does't free twice, but it is unnecessary.

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

7 years agokdbus: cmdline emptiness check fix
Konrad Lipinski [Wed, 12 Oct 2016 10:54:15 +0000 (12:54 +0200)]
kdbus: cmdline emptiness check fix

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

7 years agokdbus: allowing sending replies even if NO_EXPECT_REPLY is set
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

7 years agokdbus: allow unix domain socket fd passing
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

7 years agokdbus: Upgrade driver to newer upstream version
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

7 years agokdbus: cmdline emptiness check fix
Konrad Lipinski [Wed, 12 Oct 2016 10:54:15 +0000 (12:54 +0200)]
kdbus: cmdline emptiness check fix

Change-Id: Ia925fa43bf4c50ab707be98f275b50808782f063

7 years agokdbus: allow senders to receive own broadcasts
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

7 years agoARM64: tizen_tm2_defconfig: enable CONFIG_NETFILTER_XT_TARGET_SECMARK
jooseong lee [Fri, 25 Nov 2016 08:48:58 +0000 (17:48 +0900)]
ARM64: tizen_tm2_defconfig: enable CONFIG_NETFILTER_XT_TARGET_SECMARK

The config allows security marking of network packets.
Iptable need to set packet's secmark to 'System' label to avoid
Smack deny issue only for multicast address range.

* Refer to : https://review.tizen.org/gerrit/#/c/100096/

Change-Id: I28dce71862d2bddba2ede2f72b7cdd493c3d184f
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoARM: tizen_odroid_defconfig: enableCONFIG_NETFILTER_XT_TARGET_SECMARK
jooseong lee [Fri, 25 Nov 2016 08:46:54 +0000 (17:46 +0900)]
ARM: tizen_odroid_defconfig: enableCONFIG_NETFILTER_XT_TARGET_SECMARK

The config allows security marking of network packets.
Iptable need to set packet's secmark to 'System' label to avoid
Smack deny issue only for multicast address range.

* Refer to : https://review.tizen.org/gerrit/#/c/100096/

Change-Id: If0dcf494197beb7eb5ae035e0998ac2c8907d0cc
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoARM: defconfig: odroid: enable USB CAN/GPS interface
Sangjung Woo [Tue, 13 Dec 2016 07:14:12 +0000 (16:14 +0900)]
ARM: defconfig: odroid: enable USB CAN/GPS interface

In order to support both USB Serial CAN adaptor and GPS USB interface,
this enables its related options.

Change-Id: I220e8366b51798e38759f18b4d830a3b47302400
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
7 years agoARM: defconfig: odroid: enable tethering & its related options
Sangjung Woo [Wed, 19 Oct 2016 10:53:59 +0000 (19:53 +0900)]
ARM: defconfig: odroid: enable tethering & its related options

In order to support Network tethering, this patch enables its related
options.

Change-Id: I4a358b5df65c539d0b56331040b28711ab096078
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agoARM: defconfig: odroid: enable USB PEAK CAN driver
Sangjung Woo [Sat, 12 Nov 2016 02:55:56 +0000 (11:55 +0900)]
ARM: defconfig: odroid: enable USB PEAK CAN driver

In order to support USB PEAK CAN driver, this patch enables it.

Change-Id: I7d859e657cd22ed753b93e41194b7a1eadf1f8fe
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
7 years agoARM: defconfig: odroid: enable CAN and VCAN options.
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>
7 years agoARM: dts: add mmc detect gpio for exynos5422-odroidxu3/4
Ł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

7 years agodrm/exynos: add trace support
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>
7 years agoARM: tizen_{odroid,tm2}_defconfig: enable DMA BUF FENCE support
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>
7 years agodrm/exynos: fence: add dma fence support
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>
7 years agodrm: add helpers for fence and reservation based dma-buf sync
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>
7 years agoBluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution
h.sandeep [Tue, 15 Nov 2016 11:08:58 +0000 (16:38 +0530)]
Bluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution

RPA resolution support of peer device to be checked before starting
directed advertising. This patch load the resolution support info of
device and check before starting directed advertising.

Change-Id: Ia1e7b2ae1ef9d5e12877d96759cb9089b52c20b7
Signed-off-by: paras.kumar <paras.kumar@samsung.com>
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
[Fix coding style and adjust commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Fix IRK distribution issue when Privacy is disabled
h.sandeep [Mon, 21 Nov 2016 11:14:42 +0000 (16:44 +0530)]
Bluetooth: Fix IRK distribution issue when Privacy is disabled

The devices, like Android 6.x, which don't support privacy 1.2
couldn't make BLE connection to the device which doesn't distribute
IRK when pairing because they use use wrong address type.
For compatibility, it needs to distribute IRK even though Privacy
feature is disabled. So setting IRK interface is added and BlueZ
will set IRK if privacy feature is disabled. And when BLE pairing,
IRK will be always distributed.

Change-Id: I6dbcef9663a1a0cb2b7db89cad6e725025e41fa1
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoBluetooth: Add MGMT interface for setting IRK
h.sandeep [Tue, 15 Nov 2016 11:18:34 +0000 (16:48 +0530)]
Bluetooth: Add MGMT interface for setting IRK

It is required to set IRK from BlueZ if privacy feature is disabled,
so this patch adds setting IRK interface to MGMT.

Change-Id: I68183b6003c6292e0f7c95b8fe9c0d04890063b5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Don't send the sco vendor commands to other vendor chips
DoHyun Pyun [Fri, 21 Oct 2016 00:10:04 +0000 (09:10 +0900)]
Bluetooth: Don't send the sco vendor commands to other vendor chips

There are BCM sco WBC/NBC commands, and they are only for BCM chips.
So this patch fix not to send the sco commands to non BCM vendor
chips which causes sco command timeout and disconnection.

Change-Id: Iae67b6e6de2ecf68b79e47136c2b80aa530a281c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Increase supervision timeout to fix issues
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>
7 years agoBluetooth: Set le data length command and event
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>
7 years agoBluetooth: Read host suggested default le data length
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>
7 years agoBluetooth: Write host suggested default le data length
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>
7 years agoBluetooth: Read LE Max data length command
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>
7 years agoARM: defconfig: odroid: enable 6LOWPAN and BT_6LOWPAN options
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>
7 years agoarm64: defconfig: tm2: enable 6LOWPAN and BT_6LOWPAN options
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>
7 years agoBluetooth: Fix IPSP connection callback event issue.
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>
7 years agoBluetooth: IPSP Connect/Disconnect apis
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>
7 years agoBluetooth: Add support to enable/disable IPSP
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>
7 years agoBluetooth: Fix issue in the Set LE privacy function.
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>
7 years agoBluetooth: Store the key if auth type is P192
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>
7 years agoBluetooth: check sock parent before unlink
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>
7 years agoBluetooth: Cancel the Sniff timer
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>
7 years agoBluetooth: Enable sniff mode for incoming connection
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>
7 years agoBluetooth: Modify fast connectable type.
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>
7 years agoBluetooth: Send Authentication Request command on pairing failure
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>
7 years agoBluetooth: Enable inquiry and page scan
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>
7 years agoBluetooth: Change authentication requirement.
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>
7 years agoBluetooth: Set link Supervision timeout for a connection
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>
7 years agoBluetooth: Set filter policy for LE connection
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>
7 years agoBluetooth: Get Advertising TX power
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>
7 years agoBluetooth: Set the link for SCO connection
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>
7 years agoBluetooth: Add MGMT command to set SCO settings
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>
7 years agoBluetooth: Add multiple LE advertise state change event
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>
7 years agoBluetooth: Add LE device found MGMT event
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>
7 years agoBluetooth: Add H/W TX timeout error MGMT event
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>
7 years agoBluetooth: Add hardware error MGMT event
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>
7 years agoBluetooth: fix vendor ext rssi link alert event
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>
7 years agoBluetooth: Add LE vendor specific event handler
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>
7 years agoBluetooth: Add set LE scan parameter feature
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>
7 years agoBluetooth: Set Manufacturer data feature
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>
7 years agoBluetooth: Add LE connection parameter update procedure
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>
7 years agoBluetooth: Add stop LE auto connection feature
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>
7 years agoBluetooth: Add BT LE discovery feature
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>
7 years agoBluetooth: Update device name on remote_name_event
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>
7 years agoBluetooth: Add RSSI Monitor feature
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>
7 years agoBluetooth: Functions to modify WhiteList
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>
7 years agoBluetooth: Add Advertising Packet Configuration
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>
7 years agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoBluetooth: Add "TIZEN_BT" flag
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agodrm/exynos/hdmi: remove unused hdmiphy_poweron()
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>
7 years agodrm/exynos: fix types for compilation on 64bit architectures
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

7 years agotrace: ramdump: comment out not used functions
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>
7 years agosched: hmp: fix wrong initialization of hmp_data
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>
7 years agommc: dw_mmc: fix the spamming log message
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>
7 years agoASoC: max98504A: fix build warning
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>
7 years agoiommu: exynos-iommu: fix build warning
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>
7 years agodrm/panel/s6e3ha2: store nit array pointers in context
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>
7 years agodrm/panel/s6e3ha2: merge brightness setting for normal and HMT mode
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>
7 years agodrm/panel/s6e3ha2: fix VINT settings
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>
7 years agodrm/panel/s6e3ha2: merge POC setting commands
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>
7 years agodrm/panel/s6e3ha2: merge interface setting commands
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>
7 years agodrm/panel/s6e3ha2: merge panel update code into one function
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>
7 years agodrm/panel/s6e3ha2: implement dynamic ELVSS setting
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>
7 years agodrm/panel/s6e3ha2: refactor temperature setting function
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>
7 years agodrm/panel/s6e3ha2: replace DCS/MCS command codes with macros
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>
7 years agodrm/panel/s6e3ha2: implement dynamic AID off ratio setting
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>
7 years agodrm/panel/s6e3ha2: handle max brightness specially
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>
7 years agodrm/panel/s6e3ha2: store nit index in context
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>