Re: [PATCH] drm/exynos: fix plane-framebuffer linkage

2014-09-16 Thread Inki Dae
On 2014년 09월 17일 15:35, Andrzej Hajda wrote: > Hi, > > On 09/16/2014 08:35 AM, Daniel Vetter wrote: >> On Mon, Sep 15, 2014 at 12:52:17PM -0600, Daniel Drake wrote: >>> Pageflipping currently causes some inconsistencies that lead to >>> crashes. Just run an app that causes a CRTC pageflip in a raw

[PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-16 Thread Pankaj Dubey
Currently a syscon entity can be only registered directly through a platform device that binds to a dedicated syscon driver. However in certain use cases it is desirable to make a device used with another driver a syscon interface provider. For example, certain SoCs (e.g. Exynos) contain system co

Re: [PATCH] drm/exynos: fix plane-framebuffer linkage

2014-09-16 Thread Andrzej Hajda
Hi, On 09/16/2014 08:35 AM, Daniel Vetter wrote: > On Mon, Sep 15, 2014 at 12:52:17PM -0600, Daniel Drake wrote: >> Pageflipping currently causes some inconsistencies that lead to >> crashes. Just run an app that causes a CRTC pageflip in a raw X session >> and check that it exits cleanly and can

[RESEND PATCH] arm: exynos: Allow rtc alarm and tick wakeup irq for exynos3250.

2014-09-16 Thread Jonghwa Lee
Add rtc alarm and tick irq to wakeup sources in exynos3250. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo choi --- arch/arm/mach-exynos/pm.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index fa7218a..d78dcf

[GIT PULL 2/2] Samsung DT changes for 3.18

2014-09-16 Thread Kukjin Kim
The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: Linux 3.17-rc1 (2014-08-16 10:40:26 -0600) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git tags/samsung-dt for you to fetch changes up to 9b02732643d

[GIT PULL 1/2] Samsung cleanup for 3.18

2014-09-16 Thread Kukjin Kim
The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: Linux 3.17-rc1 (2014-08-16 10:40:26 -0600) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git tags/samsung-cleanup for you to fetch changes up to f6361c

Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-09-16 Thread Doug Anderson
Hi, On Tue, Sep 16, 2014 at 8:20 AM, Javier Martinez Canillas wrote: > Hello Daniel, > > On Tue, Sep 16, 2014 at 5:03 PM, Daniel Drake wrote: >> On Tue, Sep 16, 2014 at 7:48 AM, Javier Martinez Canillas >> wrote: Clock list for s3c-rtc device: - rtc : CLK_RTC of CLK_GATE_IP_PERIR is g

[PATCH 04/22] video: fbdev: Replace strnicmp with strncasecmp

2014-09-16 Thread Rasmus Villemoes
The kernel used to contain two functions for length-delimited, case-insensitive string comparison, strnicmp with correct semantics and a slightly buggy strncasecmp. The latter is the POSIX name, so strnicmp was renamed to strncasecmp, and strnicmp made into a wrapper for the new strncasecmp to avoi

Re: [PATCH V7 00/12] drm/exynos: few patches to enhance bridge chip support

2014-09-16 Thread Laurent Pinchart
Hi Javier, On Tuesday 16 September 2014 14:44:02 Javier Martinez Canillas wrote: > [adding Laurent Pinchart to cc who had concerns with a previous > version of this patch-set] Thank you, I've indeed missed v7. > On Wed, Aug 27, 2014 at 4:29 PM, Ajay Kumar wrote: > > This series is based on maste

Re: [PATCH RESEND] ARM: DTS: correct the capability string for mmc0

2014-09-16 Thread Doug Anderson
Vivek, On Tue, Sep 16, 2014 at 1:50 AM, Vivek Gautam wrote: > From: Naveen Krishna Chatradhi > > MMC capability for HS200 is parsed in mmc/core/host.c as > dts string "mmc-hs200-1_8v". > > This patch corrects the dts string for Exynos5420 based peach-pit > and Exynos5800 based peach-pi boards. >

Re: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices

2014-09-16 Thread Arnd Bergmann
On Tuesday 16 September 2014, Pankaj Dubey wrote: > Hi Arnd, Lee Jones, > > On Thu, 04 Sep 2014 10:15:27 +0530 > > Pankaj Dubey wrote: > > Any update on this patch. As already it has been tested on two DT based > platforms. > > If you think that we can go ahead and break clps711x till it gets m

Re: Exynos build failure in -next allmodconfig

2014-09-16 Thread Mark Brown
On Tue, Sep 16, 2014 at 02:01:02PM +0200, Tomasz Figa wrote: > I think the problematic case here is v6+v7 multiplatform, where even > though CONFIG_ARCH_EXYNOS is defined, compiler flags for lowest common > denominator (v6) must be used. Using appropriate macros should fix the > problem indeed. R

Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-09-16 Thread Javier Martinez Canillas
Hello Daniel, On Tue, Sep 16, 2014 at 5:03 PM, Daniel Drake wrote: > On Tue, Sep 16, 2014 at 7:48 AM, Javier Martinez Canillas > wrote: >>> Clock list for s3c-rtc device: >>> - rtc : CLK_RTC of CLK_GATE_IP_PERIR is gate clock for RTC. >>> - rtc_src : XrtcXTI is 32.768.kHz source clock for RTC. >

Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-09-16 Thread Javier Martinez Canillas
[adding Doug Anderson as cc] On Tue, Sep 16, 2014 at 3:48 PM, Javier Martinez Canillas wrote: > On Thu, Aug 28, 2014 at 11:02 AM, Chanwoo Choi wrote: >> This patch add support for RTC of Exynos3250 SoC. The Exynos3250 needs source >> clock(32.768KHz) for RTC block. If source clock of RTC is regi

Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-09-16 Thread Daniel Drake
On Tue, Sep 16, 2014 at 7:48 AM, Javier Martinez Canillas wrote: >> Clock list for s3c-rtc device: >> - rtc : CLK_RTC of CLK_GATE_IP_PERIR is gate clock for RTC. >> - rtc_src : XrtcXTI is 32.768.kHz source clock for RTC. > > Is this RTC source clock needed for all Exynos SoCs? It is at least need

Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-09-16 Thread Javier Martinez Canillas
Hello Chanwoo, On Thu, Aug 28, 2014 at 11:02 AM, Chanwoo Choi wrote: > This patch add support for RTC of Exynos3250 SoC. The Exynos3250 needs source > clock(32.768KHz) for RTC block. If source clock of RTC is registerd on clock > list of common clk framework, Exynos RTC drvier have to control thi

Re: [PATCH V7 00/12] drm/exynos: few patches to enhance bridge chip support

2014-09-16 Thread Javier Martinez Canillas
[adding Laurent Pinchart to cc who had concerns with a previous version of this patch-set] Hello Ajay, On Wed, Aug 27, 2014 at 4:29 PM, Ajay Kumar wrote: > This series is based on master branch of Linus tree at: > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > I have tested

Re: Exynos build failure in -next allmodconfig

2014-09-16 Thread Tomasz Figa
On 16.09.2014 13:44, Krzysztof Kozłowski wrote: > On 15.09.2014 19:57, Russell King - ARM Linux wrote: >> On Mon, Sep 15, 2014 at 09:34:58AM -0700, Mark Brown wrote: >>> On Mon, Sep 15, 2014 at 11:57:09AM +0100, Build bot for Mark Brown >>> wrote: >>> >>> Today's -next got a build failure in ARM al

Re: Exynos build failure in -next allmodconfig

2014-09-16 Thread Russell King - ARM Linux
On Tue, Sep 16, 2014 at 01:44:44PM +0200, Krzysztof Kozłowski wrote: > On 15.09.2014 19:57, Russell King - ARM Linux wrote: >> On Mon, Sep 15, 2014 at 09:34:58AM -0700, Mark Brown wrote: >>> On Mon, Sep 15, 2014 at 11:57:09AM +0100, Build bot for Mark Brown wrote: >>> >>> Today's -next got a build

[PATCH v2 18/18] iommu: exynos: add callback for initializing devices from device tree

2014-09-16 Thread Marek Szyprowski
This patch adds implementation of of_xlate callback, which prepares masters device for attaching to IOMMU. This callback is called during creating devices from device tree. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 28 1 file changed, 28 inse

[PATCH v2 16/18] iommu: exynos: remove excessive includes and sort others alphabetically

2014-09-16 Thread Marek Szyprowski
Removed following unused includes: , , and . Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index a75b06365f97..5eb999d7653a 100644 --

[PATCH v2 17/18] iommu: exynos: init from dt-specific callback instead of initcall

2014-09-16 Thread Marek Szyprowski
This patch introduces IOMMU_OF_DECLARE-based initialization to the driver, which replaces subsys_initcall-based procedure. exynos_iommu_of_setup ensures that each sysmmu controller is probed before its master device. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 32

[PATCH v2 14/18] iommu: exynos: rename variables to reflect their purpose

2014-09-16 Thread Marek Szyprowski
This patch renames some variables to make the code easier to understand. 'domain' is replaced by 'iommu_domain' (more generic entity) and really meaning less 'priv' by 'domain' to reflect its purpose. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 191 ++--

[PATCH v2 11/18] iommu: exynos: remove useless device_add/remove callbacks

2014-09-16 Thread Marek Szyprowski
The driver doesn't need to do anything important in device add/remove callbacks, because initialization will be done from device-tree specific callbacks added later. IOMMU groups created by current code were never used. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 28 --

[PATCH v2 15/18] iommu: exynos: document internal structures

2014-09-16 Thread Marek Szyprowski
Add a few words of comment to all internal structures used by the driver. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 49 +--- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iom

[PATCH v2 13/18] iommu: exynos: add support for runtime_pm

2014-09-16 Thread Marek Szyprowski
This patch fixes support for runtime power management for SYSMMU controllers, so they are enabled when master device is attached. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/ex

[PATCH v2 12/18] iommu: exynos: add support for binding more than one sysmmu to master device

2014-09-16 Thread Marek Szyprowski
This patch adds support for assigning more than one SYSMMU controller to the master device. This has been achieved simply by chaning the struct device pointer in struct exynos_iommu_owner into the list of struct sysmmu_drvdata of all controllers assigned to the given master device. Signed-off-by:

[PATCH v2 00/18] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem

2014-09-16 Thread Marek Szyprowski
Hello Everyone, This is yet another attempt to finally make Exynos SYSMMU driver fully integrated with DMA-mapping subsystem. Previous approach is available here: https://lkml.org/lkml/2014/8/5/183 I meantime, there have been a discussion about the way the iommu driver should be integrated with

[PATCH v2 01/18] arm: dma-mapping: arm_iommu_attach_device: automatically set max_seg_size

2014-09-16 Thread Marek Szyprowski
If device has no max_seg_size set, we assume that there is no limit and force it to DMA_BIT_MASK(32) to always use contiguous mappings in DMA address space. Signed-off-by: Marek Szyprowski --- arch/arm/mm/dma-mapping.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/ar

[PATCH v2 04/18] clk: exynos: add missing smmu_g2d clock and update comments

2014-09-16 Thread Marek Szyprowski
This patch adds missing smmu_g2d clock implementation and updates comment about Exynos4 clocks from 278-282 range. Those clocks are available on all Exynos4 SoC series, so the misleading comment has been removed. Signed-off-by: Marek Szyprowski Acked-by: Tomasz Figa --- drivers/clk/samsung/clk-

[PATCH v2 08/18] iommu: exynos: remove useless spinlock

2014-09-16 Thread Marek Szyprowski
This patch removes useless spinlocks and other unused members from struct exynos_iommu_owner. There is no point is protecting this structure by spinlock because content of this structure doesn't change and other structures have their own spinlocks. Signed-off-by: Marek Szyprowski --- drivers/iom

[PATCH v2 10/18] iommu: exynos: remove unused functions, part 2

2014-09-16 Thread Marek Szyprowski
After refactoring functions to use pointer to struct sysmmu_drvdata directly, some functions became useless and thus never used, so remove them completely. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 43 --- 1 file changed, 43 deleti

[PATCH v2 09/18] iommu: exynos: refactor function parameters to simplify code

2014-09-16 Thread Marek Szyprowski
This patch simplifies the code by: - refactoring function parameters from struct device pointer to direct pointer to struct sysmmu drvdata - moving list_head enteries from struct exynos_iommu_owner directly to struct sysmmu_drvdata Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iom

[PATCH v2 06/18] iommu: exynos: don't read version register on every tlb operation

2014-09-16 Thread Marek Szyprowski
This patch removes reading of REG_MMU_VERSION register on every tlb operation and caches SYSMMU version in driver's internal data. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/exyn

[PATCH v2 05/18] ARM: DTS: Exynos4: add System MMU nodes

2014-09-16 Thread Marek Szyprowski
This patch adds System MMU nodes that are specific to Exynos4210/4x12 series. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4.dtsi| 117 ++ arch/arm/boot/dts/exynos4210.dtsi | 23 arch/arm/boot/dts/exynos4x12.dtsi | 82

[PATCH v2 03/18] drm: exynos: detach from default dma-mapping domain on init

2014-09-16 Thread Marek Szyprowski
This patch adds code, which detach sub-device nodes from default iommu domain if such has been configured. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.c b/drivers/gpu

[PATCH v2 07/18] iommu: exynos: remove unused functions

2014-09-16 Thread Marek Szyprowski
This patch removes two unneeded functions, which are not a part of generic IOMMU API and were never used by any other driver. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 31 --- 1 file changed, 31 deletions(-) diff --git a/drivers/iommu/exynos-

[PATCH v2 02/18] arm: exynos: bind power domains earlier, on device creation

2014-09-16 Thread Marek Szyprowski
This patches change initialization time of power domain driver from client device driver bind to device creation. This lets other core drivers to register power domain notifiers before client driver is bound. Signed-off-by: Marek Szyprowski --- arch/arm/mach-exynos/pm_domains.c | 12 ++--

RE: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices

2014-09-16 Thread Pankaj Dubey
Hi Arnd, Lee Jones, [snip] > > On Thu, 04 Sep 2014 10:15:27 +0530 > Pankaj Dubey wrote: > > > Hi Boris, > > > > On Wednesday, September 03, 2014 Boris BREZILLON wrote, > > > To: Arnd Bergmann > > > Cc: Pankaj Dubey; kgene@samsung.com; li...@arm.linux.org.uk; > > > Alexander Shiyan; naus..

Re: Exynos build failure in -next allmodconfig

2014-09-16 Thread Krzysztof Kozłowski
On 15.09.2014 19:57, Russell King - ARM Linux wrote: On Mon, Sep 15, 2014 at 09:34:58AM -0700, Mark Brown wrote: On Mon, Sep 15, 2014 at 11:57:09AM +0100, Build bot for Mark Brown wrote: Today's -next got a build failure in ARM allmodconfig due to platsmp.c: | arch/arm/mach-exynos/platsmp.c:19

[PATCH] tty/serial: samsung: Add earlycon support

2014-09-16 Thread Alim Akhtar
Add earlycon support for the samsung serial port. This allows enabling the samsung serial port for console when early_params are parse and processed. Signed-off-by: Alim Akhtar --- Documentation/kernel-parameters.txt |6 ++ drivers/tty/serial/Kconfig |1 + drivers/tty/serial

[PATCH 1/2] i2c: exynos: add support for HSI2C module on Exynos7

2014-09-16 Thread Naveen Krishna Chatradhi
The HSI2C module on Exynos7 differs in the transfer status bits. Transfer status bits were moved to INT_ENABLE and INT_STATUS registers This patch adds support for the HSI2C module on Exynos7. 1. Implementes a "hw" field in the variant struct to distinguish the hardware. 2. Updates the dt-new c

[PATCH 0/2] i2c: Add i2c support for Exynos7 SoC

2014-09-16 Thread Naveen Krishna Chatradhi
This patchset adds code to the i2c-exynos5.c driver to support the HSI2C H/W available on Exynos7 SoC. Also, modifies the Kconfig dependencies to be able to select for ARCH_EXYNOS7 platform. The following patches are tested based on Kgene's for-next tree. https://git.kernel.org/cgit/linux/kernel/

[PATCH 2/2] i2c: exynos5: Add Kconfig dependencies

2014-09-16 Thread Naveen Krishna Chatradhi
The i2c-exynos5.c driver can be reused for the HSI2C controller on Exynos7 SoCs from Samsung. This patch adds the Kconfig dependency to choose i2c-exynos5.c for CONFIG_ARCH_EXYNOS7. Signed-off-by: Naveen Krishna Chatradhi Cc: Wolfram Sang --- drivers/i2c/busses/Kconfig |2 +- 1 file change

[PATCH v2 2/3] Documentation: dt-bindings: update exynos-adc.txt with syscon handle

2014-09-16 Thread Naveen Krishna Chatradhi
This patch updates the DT bindings for ADC in exynos-adc.txt with the syscon phandle to the ADC nodes. Signed-off-by: Naveen Krishna Chatradhi To: devicet...@vger.kernel.org --- .../devicetree/bindings/arm/samsung/exynos-adc.txt |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-)

[PATCH v2 1/3] iio: exyno-adc: use syscon for PMU register access

2014-09-16 Thread Naveen Krishna Chatradhi
This patch updates the IIO based ADC driver to use syscon and regmap APIs to access and use PMU registers instead of remapping the PMU registers in the driver. Signed-off-by: Naveen Krishna Chatradhi To: linux-...@vger.kernel.org --- Changes since v1: Rebased on top of togreg branch of IIO git

[PATCH v2 3/3] ARM: dts: exynos: Add sysreg phandle to ADC node

2014-09-16 Thread Naveen Krishna Chatradhi
Instead of using the ADC_PHY register base address, use sysreg phandle in ADC node to control ADC_PHY configuration register. This patch adds syscon node for Exynos3250, Exynos4x12, Exynos5250, and Exynos5420, Exynos5800. Signed-off-by: Naveen Krishna Chatradhi To: linux-samsung-soc@vger.kernel.

[PATCH v2 0/3] iio: exynos-adc: use syscon instead of ioremap

2014-09-16 Thread Naveen Krishna Chatradhi
Changes since v1: 1. Rebased on top of togreg branch of IIO git. This patch set does the following 1. Use the syscon and Regmap API instead of ioremappaing the ADC_PHY register from PMU. 2. Updates the Documentation in exynos-adc.txt with syscon phandle for the ADC nodes. 3. Updates the Dts

[PATCH RESEND] ARM: DTS: correct the capability string for mmc0

2014-09-16 Thread Vivek Gautam
From: Naveen Krishna Chatradhi MMC capability for HS200 is parsed in mmc/core/host.c as dts string "mmc-hs200-1_8v". This patch corrects the dts string for Exynos5420 based peach-pit and Exynos5800 based peach-pi boards. Signed-off-by: Naveen Krishna Chatradhi --- Hi Kukjin, As commented by