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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Andrzej Hajda [Thu, 8 Sep 2016 08:27:49 +0000 (10:27 +0200)]
drm/panel/s6e3ha2: add brightness setting to HMT modes
In HMT mode gamma tables should be calculated differently.
The patch adds code to calculate them in both variants.
Change-Id: I5f3f493bae96113b6195676c443b733c5a0221a1
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Thu, 8 Sep 2016 07:32:27 +0000 (09:32 +0200)]
drm/panel/s6e3ha2: move all attributes to backlight device
It simplifies access attributes from user space.
Change-Id: I83e9359bbd86e82bf386bb1d7040886891009054
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Wed, 7 Sep 2016 13:15:05 +0000 (15:15 +0200)]
drm/panel/s6e3ha2: fix brightness to nits mapping
Brightness should be linearly mapped to nit values instead of nit indices.
Panel should use gamma index which has corresponding nit value nearest
to expected brightness after re-scaling.
Change-Id: I9bfa6385651b292881a10f8e2972551bdd0008de
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Wed, 7 Sep 2016 09:50:51 +0000 (11:50 +0200)]
drm/panel/s6e3ha2: use different tables for s6e3hf2 model
s6e3hf2 model differs from s6e3ha2. To provide proper gamma tables
different configuration tables should be used.
Change-Id: I9e1f4637ceae13bfc2b229d7319184fe4cbc0b35
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Tue, 6 Sep 2016 13:45:08 +0000 (15:45 +0200)]
drm/panel/s6e3ha2: use Dynamic AID tables
The patch adds support for dynamically generated gamma tables using
dynamic_aid helpers.
Change-Id: I2124abdda78169f3662f0658b5477e2e8f04ed33
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Tue, 6 Sep 2016 09:35:03 +0000 (11:35 +0200)]
drm/panel: add Samsung Dynamic AID helpers
Dynamic AMOLED Impulse Driving helpers allow to calculate gamma tables
for different brightness levels based on tables specific for given
model of display panel and values written in MTP memory of the panel.
Change-Id: I98de87d78b481f3369ea9952df058126ec513e9b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Tue, 6 Sep 2016 09:20:32 +0000 (11:20 +0200)]
drm/panel/s6e3ha2: remove redundant definition of VINT_STATUS_MAX
VINT_STATUS_MAX is equal to size of VINT_TABLE, so it can be replaced
be ARRAY_SIZE macro.
Change-Id: I5c6ee3ec4a9827e844f89d0d85ccb18f785378aa
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Tue, 6 Sep 2016 08:48:22 +0000 (10:48 +0200)]
drm/panel/s6e3ha2: fix includes
The patch removes unnecessary includes an sorts the rest.
Change-Id: I1a021a8cbfdff3009e90f6bfaa14525a584006e7
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Seung-Woo Kim [Wed, 7 Sep 2016 01:09:29 +0000 (10:09 +0900)]
drm/exynos/hdmi: workaround to check invalid modes with attached drm bridge
Currently, there is no way to check valid modes for bridge from
user and if the attached drm bridge, mhl adapter, does not support
a mode with fixup, then it is not possible to be set on exynos-hdmi.
So this patch adds workaround to check invalid modes with attached
drm bridge during mode_valid from exynos-hdmi.
Change-Id: I4dcd7edaa1261c1c3ed349c2dcddec226efcc6ec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Mon, 19 Sep 2016 13:17:54 +0000 (22:17 +0900)]
ARM: defconfig: odroid: enable CPUFREQ_DT config option
To support cpufreq from non big.little arm socs, CPUFREQ_DT shuold
be enabled. So, this patch enables CPUFREQ_DT config option.
Change-Id: Ic964ce630b6e0eeb4480d5f87b9ec32f375ffc0f
Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Krzysztof Opasiak [Mon, 5 Sep 2016 15:24:48 +0000 (17:24 +0200)]
Enable dummy_hcd and FunctionFS in tm2 config.
This is required to run usb host API test suit.
Change-Id: I203ef286bef030ddd359e6e18145b612a7d8dc05
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Joonyoung Shim [Wed, 31 Aug 2016 09:17:48 +0000 (18:17 +0900)]
drm: bridge: sii8620: retry hw reset with i2c failure
With specific targets, sometimes(almost) i2c read is failed when hdmi
cable is plugged.
[ 341.285875] sii8620 7-0039: I2C read of [0x0000] failed with code -6.
[ 341.286149] sii8620 7-0039: Error accessing I2C bus, -6.
Retry hw reset operation of sii8620 mhl if i2c read is failed then can
do normal i2c operation. This solution came from android kernel.
Change-Id: Icf9f54eb941e3ac5a8728fb9552b51928578d508
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Dongwoo Lee [Mon, 29 Aug 2016 04:30:13 +0000 (13:30 +0900)]
usb: gadget: change the class of MTP interface descriptor
The host fails to recognize tm2(e) as gadget mode when VID is changed, even
though the matching is performed without comparing VID. This patch fixes
this issue by changing the class of MTP interface descriptor.
Change-Id: I75c1ff710c28bb7c911963bce6c8cdb328424b95
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Tue, 30 Aug 2016 04:31:03 +0000 (13:31 +0900)]
build: add support for x86_64 host
For x86_64 host local build, this patch adds prebuilt mkimage from
u-boot and local build script files uses the prebuilt mkimage as
host architecture. The mkimage requires dtc also, but it is already
in scripts/dtc and built as host tool during kernel build,so dtc is
not required prebuilt files.
Change-Id: Id3f734ee39cc1e639bcaff2a7e49ad6d6c66665a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 25 Aug 2016 08:16:03 +0000 (17:16 +0900)]
arm64: defconfig: tm2: enable SMACK and AUDIT options for NETFILTER
To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.
Change-Id: I684ce5771dbd6e52ee529ede647d36c6561e549e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 25 Aug 2016 08:02:54 +0000 (17:02 +0900)]
ARM: defconfig: odroid: enable SMACK and AUDIT options for NETFILTER
To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.
Change-Id: I9176fcad446ea87f503165c4cf2f3aff3c60ec4f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
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>
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>
Hoegeun Kwon [Fri, 2 Sep 2016 02:30:10 +0000 (11:30 +0900)]
arm64: dts: exynos5433: add sleep state for BCM4773 sensorhub gpios
The BCM4773 power pins need to be alive during sleep mode,
because the MCU needs to respond to the external sensors events.
Add a sleep alive state for pins.
- gpd2-0 (GPS_HUB_EN)
- gpf2-2 (MCU_AP_INT_2_1.8V)
- gpf2-3 (AP_MCU_INT_1.8V)
While pins:
- gpd8-0 (SHUB_SPI_SCK)
- gpd8-1 (SHUB_SPI_SSN)
- gpd6-0 (SHUB_SPI_MISO)
- gpd6-1 (SHUB_SPI_MOSI)
need to be managed when the device goes and resumes from
sleep mode.
Change-Id: If508f5b4526e5de665f76b0adb96ae64779b6eb7
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Seung-Woo Kim [Fri, 26 Aug 2016 07:04:31 +0000 (16:04 +0900)]
sensors: sensorhub_brcm: fix for compatibility
For 32bit compatibility, compat_ioctl should be registered. Also,
32bit built IOCTL value is different from 64bit, then it should be
considered. So this fixes for compatibility with compat_ioctl.
Change-Id: I11c353d4cd39a8ef5014f2b9b2d1f504fda86182
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 07:19:50 +0000 (16:19 +0900)]
sensors: brcm: use non atomic sleeps instead of atomic delays
Do not use mdelay in non atomic contexts, use the appropriate
*sleep functions instead.
mdelay should be used only in atomic contexts, out from atomic it
keeps looping over the CPU wasting unnecessary resources.
Replace the mdelay's with:
- usleep_range for 10us - 20ms delays,
- msleep for over 20ms
Change-Id: Id03238f3918f43cb42c31ef258a12c3e7f4506a5
Reported-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 07:17:38 +0000 (16:17 +0900)]
arm64: tizen_tm2_defconfig: enable BCM4773 version 2 sensorhub for tm2(e)
The CONFIG_SENSORS_SSP_BBD_VER2 flag enables the version 2 of the
sensorhub in the config file.
Change-Id: I21984f496e063f3cb727a8f76f6e189cafc2bd71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Thu, 18 Aug 2016 08:46:19 +0000 (17:46 +0900)]
sensors: brcm: bbdpl2: add new version (v2) of the BCM4773 sensorhub
Commit, "sensors: add support for the BCM 4773 sensorhub" has
added support for the BCM4773. Since then the firmware interface
has been updated to a new version: version 2.
Add the second version of the BCM4773 sensorhub and rename the
previous version configuration flags to VER1.
Change-Id: Ie40d4b41fe4c3491567246392d2fee1d7c9cad48
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 06:59:42 +0000 (15:59 +0900)]
arm64: tizen_tm2_defconfig: Enables BCM4773 sensorhub for tm2 board
Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.
Change-Id: I765f87ee868dfe8d4155a42bf895b09c35cbb85b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 06:58:31 +0000 (15:58 +0900)]
arm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e)
Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.
Move the GPIO initialization pins in the board section.
Change-Id: Ia4567598527d5169c6669c791fcf40e5d7693b70
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 06:57:23 +0000 (15:57 +0900)]
sensors: add support for the BCM 4773 sensorhub
The Broadcom BCM4773 is a microcontroller that works as a
sensorhub. It's placed in between sensors and AP.
It's connected to the AP through SPI bus and has support for
a range of sensors:
- icm20610
- yas532
- bmp182
- tmg399x
- mobeam
The config file provides a "choice" option in order to choose
between different targets, S333 and TM2(e).
The BCM4773 it can handle GPS and the gps driver is the main
entry point to the sensorhub driver as an SPI device.
Change-Id: I07f676459cf53cbb88d75cac0459b5e374f353a5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 08:31:22 +0000 (17:31 +0900)]
sensors: Kconfig: move the ssp and ssp_sensorhub in upper directory
The CONFIG_SSP and SENSORS_SSP_SENSORHUB are flags not strictly
related to the STM sensorhub. Put them outside from the
stm_rinato directory to an upper level to be ready to relate to
other sensorhubs.
Change-Id: I0334080c699136659842746fd06dcbbdeeccc0c0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 24 Aug 2016 01:03:04 +0000 (10:03 +0900)]
sensors: stm_rinato: Kconfig: remove unused SHTC1 driver configuration
The STM sensorhub doesn't have the shtc1 compass sensor driver.
Remove it from the related configuration file.
Change-Id: Ie37da88344b975d61a379b40d8175e944f5a6b71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Andrzej Hajda [Fri, 19 Aug 2016 11:46:57 +0000 (13:46 +0200)]
drm/panel/s6e3ha2: add panel id read code
The patch adds helper to DCS read commands and reporting Display ID.
Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc279
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Thu, 18 Aug 2016 15:41:48 +0000 (17:41 +0200)]
drm/panel/s6e3ha2: remove spare underscore
Coding style fix.
Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc278
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Thu, 18 Aug 2016 15:34:27 +0000 (17:34 +0200)]
drm/panel/s6e3ha2: use internal helper instead of mipi_dsi_dcs_write_buffer
Since driver have its own helper to write dcs commands there is no need
to call mipi-dsi helpers.
Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc277
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Thu, 18 Aug 2016 15:05:32 +0000 (17:05 +0200)]
drm/panel/s6e3ha2: switch to mipi_dsi_dcs_write_buffer helper
mipi_dsi_dcs_write_buffer is more suitable helper than mipi_dsi_dcs_write.
It does not replicate buffers and is less prone to off-by-one errors.
Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc276
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 08:23:24 +0000 (17:23 +0900)]
sensors: stm_rinato: Kconfig: remove unused YAS532 driver configuration
The STM sensorhub doesn't have the yas532 compass sensor driver.
Remove it from the related configuration file.
Change-Id: Id5334412ec6c7db53cb016ce7c0ba4367ca1d8a5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 17 Aug 2016 06:54:51 +0000 (15:54 +0900)]
clk: samsung: set SPI0 ioclk and slck as ignore unused
There is no one who handles the ioclk and sclk for the SPI0 bus,
in order to be able to use the SPI 0 bus, set them as ignore
unused by using the CLK_IGNORE_UNUSED flag in the gate
declaration.
The Exynos5433 SoC needs to have all the clocks enabled, they get
all disabled even if one of them is disabled.
Change-Id: I57a625f20c40b4d76046da1a8caf5976454dda1b
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Dongwoo Lee [Thu, 18 Aug 2016 01:27:19 +0000 (10:27 +0900)]
drm: bridge: sii8620: add "extcon" support
sii8620 is always activated whether MHL device is connected or not.
To dynamically turn on/off sii8620 as following the state of device
connection, this patch adds extcon-related features to the driver.
Change-Id: I59b6083beb3bb27a0e3f1bc8efacd99123874a7a
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Wed, 17 Aug 2016 07:22:27 +0000 (16:22 +0900)]
ARM: dts: tm2(e): add "extcon" property to sii8620
A "extcon" property is added to tm2(e) dts, so sii8620 can be noted about
MHL device connection from MUIC through extcon framework.
Change-Id: I4bd1f7d62cf1d6b1f3252f42267247c9b50b721c
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Thu, 18 Aug 2016 01:18:37 +0000 (10:18 +0900)]
arm64: dts: exynos5433: tm2/tm2e: clean up non proper line changes
This patch cleans up non proper line changes.
Change-Id: Ifcbac0c5d194266f88b7e88545a7d86e0bcda96a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 18 Aug 2016 01:08:59 +0000 (10:08 +0900)]
arm64: dts: exynos5433: move tm2/tm2e specific wlan nodes to board dts
The wlan and related pinctrl dt nodes are only proper for tm2/tm2e
boards, so it should not be in exynos5433. So this patch moves the
bodes to speicifc board dts files.
Change-Id: Idd0a5bdb34aa4f61ac41c492c9bde2797d26e3af
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 18 Aug 2016 01:05:48 +0000 (10:05 +0900)]
arm64: dts: exynos5433: tm2/tm2e: remove unnecessary disabling spi_6
The spi_6 dt node is already disabled from exynos5433, so it is not
really requred to disable from board dts files.
Change-Id: I15e79f79e1cdc3ff6ddaa2f34d63939c5e3fd324
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Krzysztof Kozlowski [Wed, 17 Aug 2016 13:33:39 +0000 (15:33 +0200)]
gator: Fix out-of-tree build
Fixes out-of-tree build error:
In file included from ../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_pm.h:28:0,
from ../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase.h:49,
from ../drivers/gator/gator_events_mali_midgard_hw.c:25:
../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_hwaccess_pm.h:30:32: fatal error: mali_kbase_pm_defs.h: No such file or directory
#include <mali_kbase_pm_defs.h>
^
make[3]: *** [drivers/gator/gator_events_mali_midgard_hw.o] Error 1
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Change-Id: I4ac47177425b120c556323ca9c4f0fb6a9bd5edd
Jaehoon Chung [Wed, 17 Aug 2016 06:01:39 +0000 (15:01 +0900)]
ARM64: tizen_tm2_defconfig: update the configuration file
Update the tizen_tm2_defcofig file.
Synchronized the defconfig file after updated some Kconfig files.
Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc275
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Dongwoo Lee [Tue, 16 Aug 2016 02:44:16 +0000 (11:44 +0900)]
power: max77843_charger: fix to unregister extcon interest
The extcon interest should be unregistered when probe fails or the driver is
removed. This patch fixes to call extcon_unregister_interest() on both cases.
Change-Id: I6639d7a4685c11985d08e642ebb32eb031b3326d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Tue, 16 Aug 2016 02:14:22 +0000 (11:14 +0900)]
power: max77843_charger: fix not to check null for max77843_charger_dt_init()
In order to check error of max77843_charger_dt_init(), IS_ERR()
should be used instead of IS_ERR_OR_NULL() because it never returns
NULL.
Change-Id: Icac4e707bf269fcb40c8f7289930684c6912f048
Suggested-by: Sylwester Nawrocki <a.nawrocki@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Fri, 12 Aug 2016 03:56:16 +0000 (12:56 +0900)]
power: max77843_charger: fix bugs for extcon register
A member "edev" of struct "max77843_charger" is uninitalized, but
is accessed in conditional statement. The code seems to have a bug.
This patch fixes this bug.
Change-Id: I103554ab8a5ddcfcae623cd5dc914aeaed6a48cb
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Wed, 10 Aug 2016 13:13:01 +0000 (22:13 +0900)]
packaging: tm2: fix not to provide kernel-headers
The kernel-headers pakcage is provided for common kernel headers
from linux-glibc-devel pacakge but currently, it is also provided
from tm2 kernel. So this patch fixes not to provide kernel-headers.
Change-Id: Idb68fd8c66a61ac6110a5adefece8fc1ea4a733f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Daniel Thompson [Tue, 22 Dec 2015 21:36:44 +0000 (19:36 -0200)]
drm: prime: Honour O_RDWR during prime-handle-to-fd
Currently DRM_IOCTL_PRIME_HANDLE_TO_FD rejects all flags except
(DRM|O)_CLOEXEC making it difficult (maybe impossible) for userspace
to mmap() the resulting dma-buf even when this is supported by the
DRM driver.
It is trivial to relax the restriction and permit read/write access.
This is safe because the flags are seldom touched by drm; mostly they
are passed verbatim to dma_buf calls.
v3 (Tiago): removed unused flags variable from drm_prime_handle_to_fd_ioctl.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1450820214-12509-2-git-send-email-tiago.vignatti@intel.com
[jy0922.shim: applied from mainline kernel]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Change-Id: I7e605e4e4fb10816e143a478ca0dc2aa018486f3
Joonyoung Shim [Thu, 11 Aug 2016 05:02:28 +0000 (14:02 +0900)]
drm/exynos: workaround to permit O_RDWR of dma-buf
It is possible for userspace to mmap() directly by the commit
bfe981a09528 ("drm: prime: Honour O_RDWR during prime-handle-to-fd")
but userspace using DRM_IOCTL_PRIME_HANDLE_TO_FD should be modified as
adding DRM_RDWR flag.
This patch permits O_RDWR of dma-buf as workaround until all tizen
kernel applies the commit
bfe981a09528 ("drm: prime: Honour O_RDWR
during prime-handle-to-fd") userspace uses DRM_RDWR flag on
DRM_IOCTL_PRIME_HANDLE_TO_FD to mmap() dma-buf directly.
Change-Id: I29e86e98cece1fb84af35b2333c998525a94a381
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Joonyoung Shim [Thu, 11 Aug 2016 05:02:00 +0000 (14:02 +0900)]
ARM: tizen_trats2_defconfig: Disable MALI_DVFS
MALI_DVFS is internal DVFS feature of mali400. Now we use specific
DVFS(USING_GPU_UTILIZATION) and USING_GPU_UTILIZATION conflicts with
MALI_DVFS, so disable MALI_DVFS config.
Change-Id: I7edd335a1f23e09ee38ecb43e9c380f695dac78b
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Joonyoung Shim [Thu, 11 Aug 2016 05:01:38 +0000 (14:01 +0900)]
ARM: tizen_rinato_defconfig: Disable MALI_DVFS
MALI_DVFS is internal DVFS feature of mali400. Now we use specific
DVFS(USING_GPU_UTILIZATION) and USING_GPU_UTILIZATION conflicts with
MALI_DVFS, so disable MALI_DVFS config.
Change-Id: Iebef1cddfecfa968d2b19b8b0af7ba5ae017c841
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Joonyoung Shim [Thu, 11 Aug 2016 04:54:10 +0000 (13:54 +0900)]
ARM: tizen_odroid_defconfig: Disable MALI_DVFS
MALI_DVFS is internal DVFS feature of mali400. Now we use specific
DVFS(USING_GPU_UTILIZATION) and USING_GPU_UTILIZATION conflicts with
MALI_DVFS, so disable MALI_DVFS config.
Change-Id: I00d0b9737a4caed5a357a2e196e0c37392eb1d80
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Andrzej Hajda [Tue, 9 Aug 2016 09:07:47 +0000 (11:07 +0200)]
Revert "drm/exynos/decon5433: wait for two vblanks before framebuffer removal"
Since previous patch fixes strange DECON behavior we do not
need to wait for two vblanks before freeing buffers.
This reverts commit
661aaf94623c1de5d96503aaefdfae4b9105cb1a.
Change-Id: I3cbd68f9af5748f74c5a878de34b6b531aa26075
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Tue, 9 Aug 2016 08:44:25 +0000 (10:44 +0200)]
drm/exynos/decon5433: update shadow registers iff there are active windows
Improper usage of DECON_UPDATE register leads to subtle errors.
If it set in decon_commit when there are no active windows it results
in slow registry updates - all subsequent shadow registry updates takes more
than full vblank. On the other side if it is not set when there are
active windows it results in garbage on the screen after suspend/resume of
FB console.
The patch hopefully fixes it.
Change-Id: I3cbd68f9af5748f74c5a878de34b6b531aa26074
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Lukasz Skalski [Wed, 20 Jul 2016 16:21:25 +0000 (18:21 +0200)]
kdbus: allowing sending replies even if NO_EXPECT_REPLY is set
Change-Id: I34427f381957dd8d366e9e4d837d5a2a34a39cc1
Konrad Lipinski [Fri, 15 Jul 2016 11:15:05 +0000 (13:15 +0200)]
kdbus: allow unix domain socket fd passing
Change-Id: Ifafec44da924ec8ed677629606c92a45e7171636
INSUN PYO [Wed, 29 Jun 2016 05:04:09 +0000 (14:04 +0900)]
kdbus: increate KDBUS_CONN_MAX_REQUESTS_PENDING to 1024 from 128
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I82e1d634c88f2e86a29e7f5d50ce5226943c2e54
Karol Lewandowski [Thu, 23 Jun 2016 13:02:50 +0000 (15:02 +0200)]
kdbus: Remove kdbus Linux Security Module hooks
This commit removes support for kdbus-LSM hooks as policy decisions
are handled solely by userspace (libdbuspolicy library). This commit
reverts following:
-
802de9506 ("lsm: smack: smack callbacks for kdbus security hooks")
-
f13b7e7bd ("kdbus: use LSM hooks in kdbus code")
-
067afa709 ("lsm: smack: Make ipc/kdbus includes visible so smack callbacks could see them")
-
442f047fd ("lsm: make security_file_receive available for external modules")
-
3b556db4b ("lsm: kdbus security hooks")
Change-Id: Iae90cdb9577a9e706288b28d70bd57574398276e
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Krzysztof Opasiak [Mon, 6 Jun 2016 20:03:50 +0000 (22:03 +0200)]
Enable dummy_hcd and FunctionFS in odroidxu3 config.
This is required to run usb host API test suit.
Change-Id: I99058db93922e1279f090d76bbacf6c8fe7985b8
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Tue, 2 Aug 2016 14:26:52 +0000 (16:26 +0200)]
Fix slp-gadget dependency and auto selection.
Change-Id: Ia305bdb93921e1279f590d76bbacf6c8fe7985b3
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Mon, 6 Jun 2016 19:40:33 +0000 (21:40 +0200)]
usb: gadget: Allow to build both USB functions and legacy gadgets
Currently it is possible to build in some subset of usb functions
*OR* some gadget module. This is limited only by Kconfig not
any functionality.
This patch removes this limitation. With this patch it is possible
to set up all build combinations:
1) Multiple gadgets build in
2) Part of functions build in, part of functions as a modules
3) Some gadgets build in and some part of functions build in/modules
etc.
As this patch makes Kconfig quite complicated let me clarify how it works:
USB_F_<func name> - used in makefile for compilation
USB_CONFIGFS_F_<func name> - Chosen by user in function menu
USB_G_<gadget name>_REQ_F_<func name> - set up by gadget to mark
that this particular gadget requires this func to work
USB_F_<func name>_SELECTOR - helper config which is used to determine
if function should be build in or compiled as a module
The rules are quite simple:
1) If any of USB_CONFIGFS_F_<func name>, USB_G_*_REQ_F_<func name> equals
y, then USB_F_<func name> is set to y and function is build in
2) If none of USB_CONFIGFS_F_<func name>, USB_G_*_REQ_F_<func name> equals
y, but any of them equals m then USB_F_<func name> is set to m and function
is compiled as a module
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Backported from commit under review @linux-usb mailing list]
Change-Id: Ic8c2ad723a43536ca4c621ed590e01ba8f0fbf5b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Michal Bloch [Tue, 20 Sep 2016 14:05:51 +0000 (16:05 +0200)]
kmsg: format back to previous for /dev/kmsg
* no binary characters and no \0 at the end
* done because the new format breaks various tools (such as sd-journal)
* only affects prime /dev/kmsg, the additional /dev/kmsg12 etc unaffected
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Change-Id: Ideadbeef08f960fa7a2766b91ab2a72e8d2891b6
Michal Bloch [Tue, 19 Jul 2016 15:58:54 +0000 (17:58 +0200)]
kmsg: allow binary characters
* do not touch unprintable characters. This is so that logs can have formatting
such as newlines, tabulation, or colours.
* the textual part is now delimited by \0. This is because \n which used to be
the delimiter is now available for logs.
* NOTE: requires corresponding changes in dlogutil.
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Change-Id: Ib7a83241e7a72b2ba527f52801a8bae0698d18f4
Seung-Woo Kim [Mon, 12 Dec 2016 08:21:40 +0000 (17:21 +0900)]
Smack: ignore private inode for file functions
The access to fd from anon_inode is always failed because there is
no set xattr operations. So this patch fixes to ignore private
inode including anon_inode for file functions.
It was only ignored for smack_file_receive() to share dma-buf fd,
but dma-buf has other functions like ioctl and mmap.
Reference: https://lkml.org/lkml/2015/4/17/16
Change-Id: I1c6b93107c17e1ca3d96360c5cb8ec18a29ba45e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
jooseong lee [Wed, 20 Jul 2016 01:07:11 +0000 (10:07 +0900)]
Smack: Assign smack_known_web label for kernel thread's socket in the sk_alloc_security hook
Creating struct sock by sk_alloc function in various kernel subsystems
like bluetooth dosen't call smack_socket_post_create(). In such case,
received sock label is the floor('_') label and makes access deny.
Refers to:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=
7412301b76bd53ee53b860f611fc3b5b1c2245b5
Change-Id: I614c5f0e6d59be5ca6b49f0581edfef79fc334cf
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
Inki Dae [Mon, 4 Jul 2016 08:32:31 +0000 (17:32 +0900)]
arm: tizen_odroid_defconfig: enable Android logger driver
This patch enables Android logger driver.
Tizen common platform will use Android logger driver
and dlog will be used as its backend.
Change-Id: Id94c5d8f57bfd9d66c8ace470ff82b58699e20a4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Dongwoo Lee [Fri, 5 Aug 2016 07:02:46 +0000 (16:02 +0900)]
usb: gadget: Add MTP functions to legacy composite
MTP functions are added to legacy SLP composite gadget.
Change-Id: If2b7e8466ed7f8e5ccb5a6a1f4a7c6a11ee32e4e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Andrzej Hajda [Fri, 8 Jul 2016 13:47:30 +0000 (15:47 +0200)]
drm/panel/s6e3ha2: add basic HMT support
The patch adds basic Head Mounted Theater(HMT) support without
brightness setting. Sequences for tm2e does not always work, needs to be
re-examined.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
[jy0922.shim: fix for tm2e and add one hardcoded brightness setting]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Change-Id: I8327b365146e87b1139006fd92b1abb01522d400
Andrzej Hajda [Fri, 8 Jul 2016 11:31:45 +0000 (13:31 +0200)]
drm/panel/s6e3ha2: add locking to brightness update
Brightness update can be called asynchronously, so access to device should
be synchronized. To do this callback should be split into backlight callback
and device specific part, which can be called from other places.
Change-Id: Ib0c9d81ccaffe63b650dcd948c3ca1e770d03763
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Fri, 8 Jul 2016 11:11:58 +0000 (13:11 +0200)]
drm/panel/s6e3ha2: simplify s6e3ha2_update_gamma
s6e3ha2_update_gamma should update existing helpers to transfer data.
Change-Id: I0d087c93ea854c27c0e9eb151ae01d0190c11497
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Fri, 8 Jul 2016 11:01:01 +0000 (13:01 +0200)]
drm/panel/s6e3ha2: simplify panel unprepare
Special helper should be used instead of directly checking ctx->error.
Change-Id: If472a2771691df95244bd5f2c41fa98b7013fee5
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Fri, 8 Jul 2016 10:54:00 +0000 (12:54 +0200)]
drm/panel/s6e3ha2: fix s6e3ha2_clear_error
The purpose of s6e3ha2_clear_error is to clear ctx->error and return
cleaned value to caller.
Change-Id: I5cb0cd93acc91463ad72d0eab45a302dd26a72e5
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Seung-Woo Kim [Thu, 4 Aug 2016 01:41:22 +0000 (10:41 +0900)]
packaging: exclude build for non proper obs project
For tm2, it is only required to build for mobile aarch64 and for
odroid, it is only reuiqred to build for arm projects except for
wearable or mobile tm1 projects. So this patch adds build exclude
for each packaging.
Change-Id: Iba02f6ceb54a3a813e68095cfff6b6c06e4839fb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Joonyoung Shim [Thu, 4 Aug 2016 08:04:42 +0000 (17:04 +0900)]
spi: exynos5433-isp: Fix doubled clock disable on suspend
This patch came from the commit
9d7fd21acb20 ("spi/s3c64xx: Fix doubled
clock disable on suspend") and the commit
4fcd9b9e06d4 ("spi: s3c64xx:
simplify suspend / resume handlers").
Fix doubled clock disable and unprepare during PM suspend which triggered
the warnings:
[ 24.258574] WARNING: CPU: 0 PID: 326 at drivers/clk/clk.c:1010 clk_core_disable+0x90/0x14c()
[ 24.258580] Modules linked in:
[ 24.258589] CPU: 0 PID: 326 Comm: deviced Not tainted 4.1.0-01299-g70114f2-dirty #26
[ 24.258592] Hardware name: Samsung TM2 board (DT)
[ 24.258595] Call trace:
[ 24.258605] [<
ffffffc000089f34>] dump_backtrace+0x0/0x124
[ 24.258610] [<
ffffffc00008a068>] show_stack+0x10/0x1c
[ 24.258618] [<
ffffffc000a36ed0>] dump_stack+0x78/0xbc
[ 24.258624] [<
ffffffc00009acc8>] warn_slowpath_common+0x9c/0xd4
[ 24.258628] [<
ffffffc00009adc0>] warn_slowpath_null+0x14/0x20
[ 24.258632] [<
ffffffc000748e80>] clk_core_disable+0x8c/0x14c
[ 24.258636] [<
ffffffc0007493ec>] clk_disable+0x28/0x40
[ 24.258644] [<
ffffffc000529164>] s3c64xx_spi_suspend+0x3c/0x70
[ 24.258652] [<
ffffffc0004d7938>] platform_pm_suspend+0x20/0x50
[ 24.258659] [<
ffffffc0004e1b10>] dpm_run_callback+0x4c/0x190
[ 24.258664] [<
ffffffc0004e2b34>] __device_suspend+0xf4/0x380
[ 24.258669] [<
ffffffc0004e4738>] dpm_suspend+0x128/0x35c
[ 24.258674] [<
ffffffc0004e4e74>] dpm_suspend_start+0x68/0x78
[ 24.258681] [<
ffffffc0000e269c>] suspend_devices_and_enter+0xb8/0x838
[ 24.258685] [<
ffffffc0000e319c>] pm_suspend+0x380/0x5d8
[ 24.258690] [<
ffffffc0000e16d4>] state_store+0x7c/0xf4
[ 24.258697] [<
ffffffc000376a74>] kobj_attr_store+0x10/0x24
[ 24.258705] [<
ffffffc0002164d4>] sysfs_kf_write+0x3c/0x50
[ 24.258710] [<
ffffffc00021596c>] kernfs_fop_write+0xbc/0x180
[ 24.258718] [<
ffffffc0001aa2e8>] __vfs_write+0x28/0x10c
[ 24.258722] [<
ffffffc0001aac00>] vfs_write+0x8c/0x16c
[ 24.258726] [<
ffffffc0001ab518>] SyS_write+0x40/0xa0
The clocks may be already disabled before suspending. Check PM runtime
suspend status and disable clocks only if device is not suspended.
During resume do not enable the clocks if device is runtime suspended.
Change-Id: I194a5d458744086998b82602146648d34ff7050a
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Jaehoon Chung [Tue, 2 Aug 2016 01:23:37 +0000 (10:23 +0900)]
ARM: dts: trats2: add "reboot-inform" property for supporting reboot mode
Add the reboot-inform property for supporting reboot mode.
Trats2 is INFORM3 register, other boards are using INFORM2 regsiter.
In trats2's case, when we released the tizen-2.X with linux-3.10 kernel,
it had used the INFORM3 register. That's why trats2 only use the INFORM3
register.
Change-Id: Ief314f50c47601ad646789790b36731e64e0b688
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 1 Aug 2016 10:45:54 +0000 (19:45 +0900)]
ARM: dts: odroid: add "reboot-inform" property for supporting reboot mode
Add the reboot-inform property for supporting reboot mode.
Odroid families use the INFORM2 register as reboot special mode.
Change-Id: I906c32e6d26fcf08748f4916c277fb3995a1117f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 1 Aug 2016 10:38:41 +0000 (19:38 +0900)]
ARM: exynos: pmu: support the reboot download mode
Support the reboot download mode functionality.
It can get from device-treee which INFORM register will be used.
If want to use this functionality, it also needs to implement something
on bootloader side.
Change-Id: Iae42f32d69b84ccdcb39fcfc8bc71f9cc8c42302
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Andrzej Hajda [Tue, 2 Aug 2016 17:10:37 +0000 (19:10 +0200)]
drm/exynos/decon5433: wait for two vblanks before framebuffer removal
After window disable DECON can access its DMA buffer in current and next
scanout. To avoid possible page fault driver should ensure that two scanouts
passed before freeing framebuffer.
Change-Id: I5508f6686ff51d555eb1497b7a6d21b990fd6003
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Marek Szyprowski [Wed, 20 Jul 2016 10:50:47 +0000 (12:50 +0200)]
phy: exynos-mipi-video: simplify check for coupled phy status
There is no need to access regmap of coupled phy to check its state - such
information is already in the phy device itself, so use it directly. This
let us to avoid possible access to registers of the device in the disabled
power domain if the coupled phy is already disabled.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If375eab85e6ec680e856a9eeafdf24823e8adb6e
Marek Szyprowski [Tue, 26 Jul 2016 11:08:08 +0000 (13:08 +0200)]
phy: phy-exynos-mipi-video: fix incorrect check for coupled phy state
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I6c7fc15e1284fc70b3e581e8203f8dd43de63bb3
Marek Szyprowski [Fri, 22 Jul 2016 09:23:15 +0000 (11:23 +0200)]
spi: s3c64xx-spi-isp: properly set initial runtime pm status
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I619fc999265e3770a5295a3a9a1ef3fd46a9c94c
Marek Szyprowski [Mon, 1 Aug 2016 11:55:21 +0000 (13:55 +0200)]
media: s5p-mfc: use clock gating only on mfc v5 hardware
Software clock gating causes unpredicted behavior of newer MFC hardware,
so use it only when working with v5 module.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I5a636b9c46b5e387da4d1c4f6dbb4adb583085e3
Marek Szyprowski [Thu, 28 Jul 2016 10:01:54 +0000 (12:01 +0200)]
media: s5p-mfc: use printk_ratelimited for reporting ioctl errors
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ieff41f18447d59924b2cad3b27e50dbb8e36539d