platform/kernel/linux-exynos.git
8 years agoARM64: tizen_tm2_defconfig: enable CONFIG_NETFILTER_XT_TARGET_SECMARK 01/100201/2
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>
8 years agoARM: tizen_odroid_defconfig: enableCONFIG_NETFILTER_XT_TARGET_SECMARK 00/100200/2
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>
8 years agokdbus: Remove the unnecessary code that unlink the reply twice. 13/99813/3
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

8 years agoBluetooth: Fix IRK distribution issue when Privacy is disabled 02/99002/5
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>
8 years agoBluetooth: Add MGMT interface for setting IRK 42/97942/9
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>
8 years agoBluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution 41/97941/5
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>
8 years agodrm: exynos: Remove unreachable code 13/98513/6 accepted/tizen/common/20161121.143505 accepted/tizen/ivi/20161121.235322 accepted/tizen/mobile/20161121.235307 accepted/tizen/tv/20161121.235312 accepted/tizen/wearable/20161121.235318 submit/tizen/20161121.092850
Sylwester Nawrocki [Fri, 18 Nov 2016 13:57:41 +0000 (14:57 +0100)]
drm: exynos: Remove unreachable code

This patch reworks function arguments testing to avoid unreachable code
as pointed out with an SVACE warning:

* UNREACHABLE_CODE: This statement in the source code might be unreachable
  during program execution.
   [unreachable] unreachable at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1442
   [The condition property == 0 is always false because at this program
  point the variable property is always not equal to 0] The condition
  property == 0 is always false because at this program point the variable
  property is always not equal to 0 at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1441

* UNREACHABLE_CODE: This statement in the source code might be unreachable
  during program execution.
    [unreachable] unreachable at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1569
    [The condition event_work == 0 is always false because at this program point the
  variable event_work is always not equal to 0] The condition event_work == 0
  is always false because at this program point the variable event_work is
  always not equal to 0 at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1568

Change-Id: I2a9426685c87047bf5ec3ee88b6cce4d1d7d6158
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
8 years agopackaging: odroid: Do Not Use profile macro 46/97446/3
MyungJoo Ham [Mon, 14 Nov 2016 07:42:32 +0000 (16:42 +0900)]
packaging: odroid: Do Not Use profile macro

It is to be obsolete in 4.0.

It is allowed to use "profile" macro ONLY for backward compatibility while
keeping the compatibility with unified build environment.
- Both are false in this usage.

Change-Id: Icd3d5f77304ca5f30d66c8dc8180360ad06cd0e9
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agopackaging: tm2: Do Not Use profile macro 45/97445/3
MyungJoo Ham [Mon, 14 Nov 2016 07:40:13 +0000 (16:40 +0900)]
packaging: tm2: Do Not Use profile macro

It is going to be obsolete soon.

Change-Id: I5add63e38f223ddf015e7bea600c3deef4458935
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agodrm/exynos/hdmi: Don't print error on deferral due to regulators 75/93975/5 accepted/tizen/common/20161117.085224 accepted/tizen/ivi/20161117.010705 accepted/tizen/mobile/20161117.010610 accepted/tizen/tv/20161117.010631 accepted/tizen/wearable/20161117.010651 submit/tizen/20161116.232344
Javier Martinez Canillas [Thu, 21 Apr 2016 18:51:38 +0000 (14:51 -0400)]
drm/exynos/hdmi: Don't print error on deferral due to regulators

The regulators may not be available just because their driver's probe
function was just not executed and so the regulators not registered.

So, in this case the Exynos HDMI driver should not print logs since
a -EPROBE_DEFER is not really an error and that will just pollute
the kernel log and confuse users.

This patch prevents the following misleading messages to be printed:

[    1.443638] [drm:hdmi_probe] *ERROR* failed to get regulators
[    1.449326] [drm:hdmi_probe] *ERROR* hdmi_resources_init failed

Change-Id: Ib23cf62b86f9aacb6e23b64b7716a77d96da83f8
Reported-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agogpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer 74/93974/5
Andrzej Hajda [Tue, 25 Oct 2016 10:49:00 +0000 (12:49 +0200)]
gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer

The helper, devm_regulator_bulk_get() initializes the consumer as NULL,
so this code can be ignored.

Change-Id: Ib23cf62b86f9aacb6e23b64b7716a77d96da87f8
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agogpu: drm: exynos_hdmi: Move PHY logic into single function 73/93973/5
Andrzej Hajda [Tue, 25 Oct 2016 10:47:22 +0000 (12:47 +0200)]
gpu: drm: exynos_hdmi: Move PHY logic into single function

Paring DT properties and getting PHY IO (memory mapped or I2C) in one
function.

Change-Id: Ibc94c66df85a81a8f5239b5d4f334686b6ae863d
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agogpu: drm: exynos_hdmi: Move DDC logic into single function 72/93972/5
Andrzej Hajda [Tue, 25 Oct 2016 10:45:14 +0000 (12:45 +0200)]
gpu: drm: exynos_hdmi: Move DDC logic into single function

Paring DT properties and getting the I2C adapter in one function.

Change-Id: I1df1b6294f61013110bcddb223a3b35fb5c17169
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: improve infoframe configuration 71/93971/5
Andrzej Hajda [Tue, 25 Oct 2016 08:56:27 +0000 (10:56 +0200)]
drm/exynos/hdmi: improve infoframe configuration

Use core helpers to generate infoframes and add VSI frame generation
for UHD modes.

Change-Id: Ibea33cff20c6c4fa6b07a8e206770708a36fe53f
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: always set PHY_POWER_OFF_EN bit 17/93517/6
Andrzej Hajda [Mon, 24 Oct 2016 13:17:41 +0000 (15:17 +0200)]
drm/exynos/hdmi: always set PHY_POWER_OFF_EN bit

The bit is present in all variants (its default value only differs).
The patch makes the code in-sync with mainline.

Change-Id: I6a2a8fcf9d7f8a5616f64eafec7722a4bf1675fa
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: remove unused field 16/93516/6
Andrzej Hajda [Mon, 24 Oct 2016 13:11:56 +0000 (15:11 +0200)]
drm/exynos/hdmi: remove unused field

The patch removes unused hdmi_context field.

Change-Id: Id8836961b6dca7c2a09f7d4a99c3455c96057eb6
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: use array specifier for HDMI-PHY configurations 15/93515/6
Andrzej Hajda [Mon, 24 Oct 2016 13:09:26 +0000 (15:09 +0200)]
drm/exynos/hdmi: use array specifier for HDMI-PHY configurations

HDMI-PHY configurations are stored as array pointer and count pair,
we can re-use existing helpers to simplify their initialization.

Change-Id: Ie387a23428711edc5c027661ac0b1c623c19c468
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: synchronize sysreg code with mainline 14/93514/6
Andrzej Hajda [Mon, 24 Oct 2016 12:15:12 +0000 (14:15 +0200)]
drm/exynos/hdmi: synchronize sysreg code with mainline

There are no other users of sysreg besides 5433. The code can be simplified.
The patch synchronizes the code with mainline.

Change-Id: Ie6996e69388b2ea5afece292b56317d60caa91b0
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: improve clock routines 13/93513/6
Andrzej Hajda [Mon, 24 Oct 2016 11:53:22 +0000 (13:53 +0200)]
drm/exynos/hdmi: improve clock routines

The patch:
- adds unwind code to hdmi_clk_enable_gates,
- simplifies code,
- moves routines up, to match mainline.

Change-Id: I79055471688400b6f449c87d210ae698166acb68
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: constify global variables 12/93512/6
Andrzej Hajda [Mon, 24 Oct 2016 11:08:44 +0000 (13:08 +0200)]
drm/exynos/hdmi: constify global variables

These variables should not be modified.

Change-Id: I9cef5d79465e24d3bc1d825afb94cccc09ff1756
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: convert to gpiod API 11/93511/6
Andrzej Hajda [Mon, 24 Oct 2016 10:12:24 +0000 (12:12 +0200)]
drm/exynos/hdmi: convert to gpiod API

The patch converts API to gpiod and moves initialization code
to hdmi_resources_init.

Change-Id: I5136395b16f3f50defa81be6406d137f3c103e35
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: fix edid memory leak 10/93510/6
Andrzej Hajda [Thu, 9 Jul 2015 06:25:38 +0000 (08:25 +0200)]
drm/exynos/hdmi: fix edid memory leak

edid returned by drm_get_edid should be freed.
The patch fixes it.

Change-Id: Ied8d60b6a1e12409037defb04be4bcf0c906690d
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: remove registry dump 09/93509/6
Andrzej Hajda [Mon, 24 Oct 2016 09:51:13 +0000 (11:51 +0200)]
drm/exynos/hdmi: remove registry dump

HDMI registry dump unnecessary spoils console and is not very helpful.

Change-Id: I6155d370fa69e3da620c28c86bf41d17a398c6c3
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: use optional regulator_get for hdmi-en 08/93508/6
Andrzej Hajda [Mon, 24 Oct 2016 09:40:48 +0000 (11:40 +0200)]
drm/exynos/hdmi: use optional regulator_get for hdmi-en

hdmi-en is an optional regulator so it should be better handled by
devm_regulator_get_optional call.

Change-Id: I2cbb12c54c43b10ebac76a00a5ef954c2ae627f6
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: use constant size array for regulators 07/93507/6
Andrzej Hajda [Mon, 24 Oct 2016 09:33:49 +0000 (11:33 +0200)]
drm/exynos/hdmi: use constant size array for regulators

Driver always uses the same number of regulators, so there is no point in
dynamic allocation.

Change-Id: I8227ea4e341c55f1932f1e88e1138bb50271a749
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: remove deprecated hdmi_resources structure 06/93506/6
Andrzej Hajda [Mon, 24 Oct 2016 09:04:03 +0000 (11:04 +0200)]
drm/exynos/hdmi: remove deprecated hdmi_resources structure

hdmi_resources structure was filled by old platform data code and is not
necessary anymore. The patch removes it at groups together resource related
fields in hdmi_context.
The patch is back-ported from mainline.

Change-Id: Iab2209a9177749ce526569e32c6695d4b09272dc
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: improve HDMI/ACR related code 05/93505/6
Andrzej Hajda [Fri, 25 Sep 2015 12:48:27 +0000 (14:48 +0200)]
drm/exynos/hdmi: improve HDMI/ACR related code

Simple formula can be used to calculate CTS and N coefficients.
Additionaly ACR registers have different offsets for different versions
of IP.

Change-Id: I41be0b432da51651c007428fce7c7c4870ef1cb6
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: use mappings for registers with IP dependent address 04/93504/6
Andrzej Hajda [Mon, 24 Oct 2016 07:57:34 +0000 (09:57 +0200)]
drm/exynos/hdmi: use mappings for registers with IP dependent address

Some registers resides at different offsets depending on device version.
This patch adds infrastructure for mapping such registers to proper address
based on hdmi_type. It adds also mappings to some registers.

Change-Id: Ic345e1a4cb398aebea62b50fd86a44f30b5fd1e5
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: stop duplicating drv_data fields 06/93306/7
Andrzej Hajda [Fri, 21 Oct 2016 13:34:37 +0000 (15:34 +0200)]
drm/exynos/hdmi: stop duplicating drv_data fields

The patch removes duplicated drv_data fields and simplifies drv_data
matching.

Change-Id: I78abbd6dfee0d05c7095ae176fc8e080e233fd64
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: refactor struct str_array_spec 05/93305/7
Andrzej Hajda [Fri, 21 Oct 2016 12:56:43 +0000 (14:56 +0200)]
drm/exynos/hdmi: refactor struct str_array_spec

The patch constifies array and renames symbols to be in sync with mainline.

Change-Id: Ife8aa1b6adde978dbf71fc7c57bd18e01f50fdd7
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: stop programming registers with default values 04/93304/7
Andrzej Hajda [Fri, 21 Oct 2016 12:16:08 +0000 (14:16 +0200)]
drm/exynos/hdmi: stop programming registers with default values

There is no point in rewriting default values, as the IP is reset anyway.

Change-Id: I9c0856d48be83a36ed4a8741e86715353acbf2d0
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: move hdmi_start to hdmi_mode_apply 03/93303/7
Andrzej Hajda [Fri, 21 Oct 2016 12:14:37 +0000 (14:14 +0200)]
drm/exynos/hdmi: move hdmi_start to hdmi_mode_apply

hdmi_start is called for both variants.

Change-Id: I6da89cf21599a760c793121f3ae637eca7cc77ff
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/exynos/hdmi: remove hdmi_v14_conf struct 02/93302/7
Andrzej Hajda [Fri, 21 Oct 2016 12:00:13 +0000 (14:00 +0200)]
drm/exynos/hdmi: remove hdmi_v14_conf struct

The patch removes intermediate struct for HDMIv14 register configuration,
instead registry values are calculated on the fly.

Change-Id: Ib440e0ab375f4eafdc5e6d3e06fcf64ce212ad84
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: remove hdmi_v13_conf struct 01/93301/7
Andrzej Hajda [Fri, 21 Oct 2016 11:40:38 +0000 (13:40 +0200)]
drm/exynos/hdmi: remove hdmi_v13_conf struct

The patch removes intermediate struct for HDMIv13 register configuration,
instead registry values are calculated on the fly.

Change-Id: I4a47b99afda16f9fc928ff3f91359be67c4dc55f
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: remove redundant configuration fields 00/93300/8
Andrzej Hajda [Thu, 27 Oct 2016 08:24:05 +0000 (10:24 +0200)]
drm/exynos/hdmi: remove redundant configuration fields

The patch removes redundant fields from hdmi_conf_regs. Their values
can be calculated from current_mode. This patch is the first step to remove
whole hdmi_conf_regs structure.

Change-Id: Id40fe15302b2546410f68323e92d136eb93b990a
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agodrm/exynos/hdmi: add 297MHz pixel clock support 54/93054/6
Andrzej Hajda [Thu, 20 Oct 2016 07:14:42 +0000 (09:14 +0200)]
drm/exynos/hdmi: add 297MHz pixel clock support

297MHz is used by UHD modes.

Change-Id: I2040adcc3f132dbf1d510309527a9e1574008961
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: synchronize headers with mainline 56/92956/6
Andrzej Hajda [Wed, 19 Oct 2016 12:20:44 +0000 (14:20 +0200)]
drm/bridge/sii8620: synchronize headers with mainline

This patch does not provide functional change.
Its main role is to synchronize header files with mainline.

Change-Id: Ia6f338cc3ec1d50728a9e0e946211451f40e7420
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: rename files according to mainline 55/92955/6
Andrzej Hajda [Wed, 19 Oct 2016 12:15:06 +0000 (14:15 +0200)]
drm/bridge/sii8620: rename files according to mainline

The patch synchronizes file names with mainline.

Change-Id: I6aa491f2d7858f90055e7ea9bce00e8bb7db50e2
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: coding style fixes 54/92954/6
Andrzej Hajda [Wed, 19 Oct 2016 11:52:20 +0000 (13:52 +0200)]
drm/bridge/sii8620: coding style fixes

The patch does not provide functional change beside code style fixing
and synchronizing driver with mainline.

Change-Id: I5dc303ead4af81883c5199e9eaef7e73733a599b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: use lower-case for i2c_device_id 53/92953/6
Andrzej Hajda [Wed, 19 Oct 2016 11:43:38 +0000 (13:43 +0200)]
drm/bridge/sii8620: use lower-case for i2c_device_id

Linux I2C device use lower-case for identification.

Change-Id: I7a86fef880c5c969897658a710c05ead37b74f2b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: add missing error checking 52/92952/6
Andrzej Hajda [Wed, 19 Oct 2016 11:42:05 +0000 (13:42 +0200)]
drm/bridge/sii8620: add missing error checking

The patch adds error checking during initialization and in irq handler.

Change-Id: I26777455fb5ff86c91455a683b6cf5642fe2ed31
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: improve on/off sequence 51/92951/6
Andrzej Hajda [Wed, 19 Oct 2016 11:25:21 +0000 (13:25 +0200)]
drm/bridge/sii8620: improve on/off sequence

The patch puts clock management into on/off functions and adds neccessary
delay after regulator enable.

Change-Id: I4fc052eb21058e787355a8f2dfeb75b05a5d5341
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: fix reset line logic 50/92950/6
Andrzej Hajda [Wed, 19 Oct 2016 11:23:30 +0000 (13:23 +0200)]
drm/bridge/sii8620: fix reset line logic

Reset line is active in low state, previous configuration was incorrect,
but it worked because logic was also inverted in the driver.
The patch fixes it. To keep bisectability both changes are put into one patch.
The patch adjusts also delays.

Change-Id: I07d08f763fa5ed4805eb638c1d2bb1ddd3328680
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: remove single-use-only in-liner 49/92949/6
Andrzej Hajda [Tue, 18 Oct 2016 14:08:02 +0000 (16:08 +0200)]
drm/bridge/sii8620: remove single-use-only in-liner

sii8620_edid_size is used only once and is simple enough to be removed.

Change-Id: Idd53dbccc381722216c81d7a49e284f701435165
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: fix EDID fetch code 48/92948/6
Andrzej Hajda [Tue, 18 Oct 2016 14:03:03 +0000 (16:03 +0200)]
drm/bridge/sii8620: fix EDID fetch code

The patch adds handling errors during EDID fetch. Additionally it makes
code cleanup.

Change-Id: Icb94df6386d4b18ee5f7756991d0419b90763157
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: simplify sii8620_mt_read_devcap code 47/92947/7
Andrzej Hajda [Tue, 18 Oct 2016 12:13:35 +0000 (14:13 +0200)]
drm/bridge/sii8620: simplify sii8620_mt_read_devcap code

Use helper instead of direct allocation.

Change-Id: I5137e43f8e6f8ed0614f38969634cd1f5c5aec56
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: stop using macros having NULL values 46/92946/7
Andrzej Hajda [Tue, 18 Oct 2016 12:08:10 +0000 (14:08 +0200)]
drm/bridge/sii8620: stop using macros having NULL values

Many VAL_* macros represent single unset bit, ie their value is 0.
These macros are confusing and obfuscates the code.
The patch removes all uses of such macros, and replaces all
uses of single-set-bit VAL_* macros with their BIT_* equivalent.
Beside cleaning it makes the driver closer to the mainline.

Change-Id: Ib96a329d4023affe3d39bfff746af8773871c6d3
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agoUseless and Dangerous Spec Statement 44/97444/1
MyungJoo Ham [Mon, 14 Nov 2016 07:38:41 +0000 (16:38 +0900)]
Useless and Dangerous Spec Statement

- Do Not Use "profile"

- If you do not want tm2 in non-mobile, just do not include
it in non-mobile Build Project.

Change-Id: Iec9652db7480d00d1e4de2405d3826bd98ddc039
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoARM: defconfig: odroid: enable USB PEAK CAN driver 37/97337/1 accepted/tizen/common/20161114.171438 accepted/tizen/ivi/20161114.074007 accepted/tizen/mobile/20161114.073910 accepted/tizen/tv/20161114.073931 accepted/tizen/wearable/20161114.073948 submit/tizen/20161114.022710
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>
8 years agokdbus: cmdline emptiness check fix 26/92326/3
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

8 years agodrm/exynos: fix error handling in exynos_drm_subdrv_open 50/94450/3
Arnd Bergmann [Mon, 14 Mar 2016 14:22:25 +0000 (15:22 +0100)]
drm/exynos: fix error handling in exynos_drm_subdrv_open

gcc-6 warns about a pointless loop in exynos_drm_subdrv_open:

drivers/gpu/drm/exynos/exynos_drm_core.c: In function 'exynos_drm_subdrv_open':
drivers/gpu/drm/exynos/exynos_drm_core.c:104:199: error: self-comparison always evaluates to false [-Werror=tautological-compare]
  list_for_each_entry_reverse(subdrv, &subdrv->list, list) {

Here, the list_for_each_entry_reverse immediately terminates because
the subdrv pointer is compared to itself as the loop end condition.

If we were to take the current subdrv pointer as the start of the
list (as we would do if list_for_each_entry_reverse() was not a macro),
we would iterate backwards over the &exynos_drm_subdrv_list anchor,
which would be even worse.

Instead, we need to use list_for_each_entry_continue_reverse()
to go back over each subdrv that was successfully opened until
the first entry.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[Backport from mainline to fix build warning with gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Iee4b9078f0bd521507716521a339b37ea5dd8776

8 years agopackaging: switch find calls from -exec to -delete and xargs 12/92812/4
Slava Barinov [Wed, 12 Oct 2016 09:06:23 +0000 (12:06 +0300)]
packaging: switch find calls from -exec to -delete and xargs

The -delete and xargs approach is faster than -exec and in
Tizen 3.0 cross-builds it grants huge build acceleration due
to tool acceleration system peculiarities.

Change-Id: Ibbbb82962235cd098cd6952c288e9f120bb63ed3
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agomm: remove gup_flags FOLL_WRITE games from __get_user_pages() 69/94469/1 accepted/tizen/common/20161031.122108 accepted/tizen/ivi/20161101.005239 accepted/tizen/mobile/20161101.005146 accepted/tizen/tv/20161101.005159 accepted/tizen/wearable/20161101.005219 submit/tizen/20161031.063553 submit/tizen/20161031.074716
Linus Torvalds [Thu, 13 Oct 2016 20:07:36 +0000 (13:07 -0700)]
mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

[ Upstream commit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 ]

This is an ancient bug that was actually attempted to be fixed once
(badly) by me eleven years ago in commit 4ceb5db9757a ("Fix
get_user_pages() race for write access") but that was then undone due to
problems on s390 by commit f33ea7f404e5 ("fix get_user_pages bug").

In the meantime, the s390 situation has long been fixed, and we can now
fix it by checking the pte_dirty() bit properly (and do it better).  The
s390 dirty bit was implemented in abf09bed3cce ("s390/mm: implement
software dirty bits") which made it into v3.9.  Earlier kernels will
have to look at the page state itself.

Also, the VM has become more scalable, and what used a purely
theoretical race back then has become easier to trigger.

To fix it, we introduce a new internal FOLL_COW flag to mark the "yes,
we already did a COW" rather than play racy games with FOLL_WRITE that
is very fundamental, and then use the pte dirty flag to validate that
the FOLL_COW flag is still valid.

Change-Id: Id6048418817ef29d04bf4e2a5c4e39ece812be81
Reported-and-tested-by: Phil "not Paul" Oester <kernel@linuxace.com>
Acked-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Michal Hocko <mhocko@suse.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Nick Piggin <npiggin@gmail.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agoRevert "Fix for enabling self-broadcast-signal subscription" 77/92977/2
Karol Lewandowski [Wed, 19 Oct 2016 15:53:52 +0000 (17:53 +0200)]
Revert "Fix for enabling self-broadcast-signal subscription"

This reverts commit 8ebcf6b29cbc2838841b4eb5875a59c70f187b68.

Original fix is no longer needed - proper one has been applied
to systemd, which now does not forward broadcasts to itself
when kdbus is used.

Reference: https://github.com/systemd/systemd/commit/0a069ce62de904ae9cbaf23d026ac380b02e50e4

    core: harden cgroups-agent forwarding
    Author: David Herrmann <dh.herrmann@gmail.com>

    Furthermore, never forward broadcasts we sent ourself. This might happen
    on kdbus, as we forward the message on the same bus we received it on,
    thus ending up in an endless loop.

Change-Id: Ic81e519669603a839f863b931908e45c064501d8
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
8 years agopwm: samsung: Fix to use lowest div for large enough modulation bits 73/93573/1
Seung-Woo Kim [Tue, 16 Aug 2016 14:22:01 +0000 (23:22 +0900)]
pwm: samsung: Fix to use lowest div for large enough modulation bits

From pwm_samsung_calc_tin(), there is routine to find the lowest divider
possible to generate lower frequency than requested one. But it is
always possible to generate requested frequency with large enough
modulation bits except on s3c24xx, so this patch fixes to use lowest div
for the case. This patch removes following UBSAN warning:

   UBSAN: Undefined behaviour in drivers/pwm/pwm-samsung.c:197:13
   shift exponent 32 is too large for 32-bit type 'long unsigned int'
   [...]
   [<c0670248>] (ubsan_epilogue) from [<c06707b4>] (__ubsan_handle_shift_out_of_bounds+0xd8/0x120)
   [<c06707b4>] (__ubsan_handle_shift_out_of_bounds) from [<c0694b28>] (pwm_samsung_config+0x508/0x6a4)
   [<c0694b28>] (pwm_samsung_config) from [<c069286c>] (pwm_apply_state+0x174/0x40c)
   [<c069286c>] (pwm_apply_state) from [<c0b2e070>] (pwm_fan_probe+0xc8/0x488)
   [<c0b2e070>] (pwm_fan_probe) from [<c07ba8b0>] (platform_drv_probe+0x70/0x150)
   [...]

Cc: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
[Backport from mainline to remove UBSAN warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Idf20ea7ccb2d20d0317e5c82498dd1e7fa3656cc

8 years agosensors: brcm: bbdpl2: fix log messages to info level with new line 94/93394/2
Seung-Woo Kim [Mon, 24 Oct 2016 05:53:59 +0000 (14:53 +0900)]
sensors: brcm: bbdpl2: fix log messages to info level with new line

This patch fixes log messages to info level and adds new line
character to log messages.

Change-Id: I71fe0a46f6b1d5e1c2cd590e8681bcda29004b39
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agoASoC: max98090: Add extcon support for jack detection notification 58/93258/5
Dongwoo Lee [Fri, 21 Oct 2016 02:51:46 +0000 (11:51 +0900)]
ASoC: max98090: Add extcon support for jack detection notification

This patch applies extcon for jack detection notification.
Changes in jack state is reported to input driver with snd-soc
framework, as well as to extcon framework.

Change-Id: Id46f10320b18258472521fad57cbbfc98547bb6d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
8 years agoASoC: max98090: fix interrupt handling problem 59/93259/5
Dongwoo Lee [Fri, 21 Oct 2016 07:51:40 +0000 (16:51 +0900)]
ASoC: max98090: fix interrupt handling problem

The max98090_interrupt handler currently will read the device status
register. After that, it will act only when the JDET bit is set.
However, when max98090_interrupt handler is triggered and jack status
register has really changed, the JDET bit of device status register
is not set as expected for unknown reason. Because of this, the jack status cannot be reported.

This patch adds a workaround solution for jack detection, by adding
the second chance to recognize the reason of interrupt generation.
If the interrupt is generated without setting any values on device
status register, jack status register is compared to the current jack
states. If the jack status is changed, the JDET bit is manually set.

Change-Id: I74f6fb54fb9cc47e292f1f8e116032faae89c063
Reported-by: Huang Chao <chao7.huang@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
8 years agoBluetooth: Don't send the sco vendor commands to other vendor chips 80/93180/5
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>
8 years agoARM: defconfig: odroid: enable tethering & its related options 26/92926/2
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>
8 years agodrm/bridge/sii8620: improve reading device capabilities function 11/92611/1
Andrzej Hajda [Mon, 17 Oct 2016 13:57:03 +0000 (15:57 +0200)]
drm/bridge/sii8620: improve reading device capabilities function

This patch adds error checks, improves logging and constifies static array.
As a result the function is similar to mainline, except missing sink
name reporting which is not yet supported by drm core.

Change-Id: Icf7a72f0b9098f74f04e039c8c5dc5dfa3c59e17
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: abstract out common MSC command 10/92610/1
Andrzej Hajda [Mon, 17 Oct 2016 12:43:47 +0000 (14:43 +0200)]
drm/bridge/sii8620: abstract out common MSC command

Four different functions share the same code, this patch abstracts out
the common part.

Change-Id: Ia2c7ccb59863be03bf47d61ec979c72bb3258df6
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: fix message worker function 09/92609/1
Andrzej Hajda [Mon, 17 Oct 2016 12:37:47 +0000 (14:37 +0200)]
drm/bridge/sii8620: fix message worker function

Messages should not be handled in error and busy state. Also state should
be update on success.

Change-Id: Ib6ac51f920cb44f75628cbec78b3bb32774816ff
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
8 years agodrm/bridge/sii8620: add message queue cleanup 08/92608/1
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>
8 years agodrm/bridge/sii8620: rename symbol names 07/92607/1
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>
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>