[PATCH 2/5] mmc: pwrseq_simple: Extend to support more pins

2015-01-28 Thread Javier Martinez Canillas
Many WLAN attached to a SDIO/MMC interface, needs more than one pin for their reset sequence. For example, is very common for chips to have two pins: one for reset and one for power enable. This patch adds support for more reset pins to the pwrseq_simple driver and instead hardcoding a fixed

[PATCH 3/5] mmc: pwrseq: Document optional clock for the simple power sequence

2015-01-28 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need an external clock to be operational. Since this is very common, extend the simple MMC power sequence DT binding to support an optional clock. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk ---

[PATCH 4/5] mmc: pwrseq_simple: Add optional reference clock support

2015-01-28 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need a reference clock. Since this is very common, extend the prseq_simple driver to support an optional clock that is enabled prior the card power up procedure. Note, the external clock is optional. Thus an error is not returned if the clock is not

Re: [PATCH 2/8] PM / Domains: Remove reference counting for the generic_pm_domain_data

2015-01-28 Thread Pavel Machek
On Tue 2015-01-27 21:13:39, Ulf Hansson wrote: The reference counting was needed when genpd supported PM domain device callbacks. Since this option has been removed, let's also remove the reference counting of the struct generic_pm_domain_data. Signed-off-by: Ulf Hansson

[PATCH v2 1/6] mmc: pwrseq: Document that simple sequence support more than one GPIO

2015-01-28 Thread Javier Martinez Canillas
Many SDIO/MMC attached WLAN chips need more than one ping for their reset sequence. Extend the pwrseq_simple binding to support more than one pin. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v1: - Make the explanation clearer by adding an explicit

[PATCH v2 4/6] mmc: pwrseq_simple: Add optional reference clock support

2015-01-28 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need a reference clock. Since this is very common, extend the prseq_simple driver to support an optional clock that is enabled prior the card power up procedure. Note: the external clock is optional. Thus an error is not returned if the clock is not

[PATCH 5/5] ARM: dts: exynos5250-snow: Enable wifi power-on

2015-01-28 Thread Javier Martinez Canillas
The Snow board has a MMC/SDIO wifi chip that is always powered but it needs a power sequence involving a reset (active low) and an enable (active high) pins. Both pins are marked as active low since the MMC simple power sequence driver asserts the pins prior to the card power up procedure and

Re: [PATCH 1/8] PM / Domains: Rename __pm_genpd_alloc|free_dev_data()

2015-01-28 Thread Pavel Machek
On Tue 2015-01-27 21:13:38, Ulf Hansson wrote: In a step to get consistent names of functions in genpd, rename the internal __pm_genpd_alloc|free_dev_data() into gendp_alloc|free_dev_data(). As discussed on the linux-pm list, let's move towards the following name rules: Internal

[PATCH v2 6/6] ARM: dts: exynos5250-snow: Add cap-sdio-irq to wifi mmc node

2015-01-28 Thread Javier Martinez Canillas
Enabling SDIO IRQ signalling for the wifi MMC/SDIO slot doubles the transmission transfer rate. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v1: None, new patch. --- arch/arm/boot/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 1/5] mmc: pwrseq: Document that simple sequence support more than one GPIO

2015-01-28 Thread Javier Martinez Canillas
Many SDIO/MMC attached WLAN chips need more than one ping for their reset sequence. Extend the pwrseq_simple binding to support more than one pin. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 6 +++--- 1

[PATCH v2 0/6] Add multiple GPIO and external clock to MMC pwrseq_simple

2015-01-28 Thread Javier Martinez Canillas
Hello Ulf, Many WLAN chips attached to an SDIO interface needs more than one GPIO for their reset sequence and also an external clock to be operational. Since this is very common, this series extend the simple MMC power sequence to support more than one reset GPIO and also an optional external

[PATCH v2 3/6] mmc: pwrseq: Document optional clock for the simple power sequence

2015-01-28 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need an external clock to be operational. Since this is very common, extend the simple MMC power sequence DT binding to support an optional clock. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v1: None. ---

[PATCH v2 2/6] mmc: pwrseq_simple: Extend to support more pins

2015-01-28 Thread Javier Martinez Canillas
Many WLAN attached to a SDIO/MMC interface, needs more than one pin for their reset sequence. For example, is very common for chips to have two pins: one for reset and one for power enable. This patch adds support for more reset pins to the pwrseq_simple driver and instead hardcoding a fixed

Re: [PATCH 8/8] PM / Domains: Handle errors from genpd's -attach_dev() callback

2015-01-28 Thread Geert Uytterhoeven
On Tue, Jan 27, 2015 at 9:13 PM, Ulf Hansson ulf.hans...@linaro.org wrote: When __pm_genpd_add_device() is invoked through the generic OF-based PM domain look-up path, the device is being probed. Returning an error will mean the device won't be attached to its PM domain. Errors of

Re: [PATCH 5/5] ARM: dts: exynos5250-snow: Enable wifi power-on

2015-01-28 Thread Arend van Spriel
On 01/28/15 11:10, Javier Martinez Canillas wrote: The Snow board has a MMC/SDIO wifi chip that is always powered but it needs a power sequence involving a reset (active low) and an enable (active high) pins. Both pins are marked as active low since the MMC simple power sequence driver asserts

[PATCH 1/1] ARM: multi_v7_defconfig: Enable Exynos5420 Multi-Cluster PM support

2015-01-28 Thread Javier Martinez Canillas
The Exynos5420 cluster power management support allowing Exynos 5420/5422/5800 machines to power up and down the secondary CPUs. Without this option enabled, the secondary CPUs are not brought up on boot and the following error is shown: CPU0: thread -1, cpu 0, socket 0, mpidr 8000 Setting

Re: [PATCH 1/2] mmc: dw_mmc-exynos: add support for controlling emmc reset pin

2015-01-28 Thread Ulf Hansson
On 28 January 2015 at 16:23, Tobias Jakobi liquid.a...@gmx.net wrote: Ulf Hansson wrote: On 28 January 2015 at 13:41, Tobias Jakobi liquid.a...@gmx.net wrote: Hello! Jaehoon Chung wrote: mmc core supported to hw_reset function. So i think we can use it. It's called at only initial time to

Re: [PATCH 1/2] mmc: dw_mmc-exynos: add support for controlling emmc reset pin

2015-01-28 Thread Tobias Jakobi
Ulf Hansson wrote: On 28 January 2015 at 13:41, Tobias Jakobi liquid.a...@gmx.net wrote: Hello! Jaehoon Chung wrote: mmc core supported to hw_reset function. So i think we can use it. It's called at only initial time to clear the previous status. But i think it can be called at reboot

[GIT PULL 2/4] Samsung mach updates for v3.20

2015-01-28 Thread Kukjin Kim
Hi, This is for updating of mach-exynos and plat-samsung. Please pull and if any problems, please let me know. Thanks, Kukjin The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at:

[GIT PULL 1/4] Samsung Cleanup for v3.20

2015-01-28 Thread Kukjin Kim
Hi Arnd, Olof, Kevin Please pull Samsung cleanup for v3.20. This cleanup is very nice, Samsung SoCs no more use specific DMA and remove i2c sys from mach-exynos. Thanks to Arnd and all involved guys. - Kukjin The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672:

Re: [PATCH 3/3] cpufreq: exynos: allow modular build

2015-01-28 Thread Arnd Bergmann
On Wednesday 28 January 2015 13:22:11 Eduardo Valentin wrote: config ARM_EXYNOS5440_CPUFREQ - bool SAMSUNG EXYNOS5440 + tristate SAMSUNG EXYNOS5440 depends on SOC_EXYNOS5440 depends on HAVE_CLK OF + depends on THERMAL select PM_OPP default y help

[GIT PULL] clk/samsung updates for v3.20

2015-01-28 Thread Sylwester Nawrocki
Hi Mike, The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://linuxtv.org/snawrocki/samsung.git tags/v3.20-exynos-clk for you to fetch changes up to

Re: [PATCH 1/5] mmc: pwrseq: Document that simple sequence support more than one GPIO

2015-01-28 Thread Javier Martinez Canillas
Srinivas, On 01/28/2015 05:34 PM, Srinivas Kandagatla wrote: -- reset-gpios : contains a GPIO specifier. The reset GPIO is asserted at -initialization and prior we start the power up procedure of the card. It -will be de-asserted right after the power has been provided to the card. +-

Re: [PATCH 5/5] ARM: dts: exynos5250-snow: Enable wifi power-on

2015-01-28 Thread Javier Martinez Canillas
Hello Arend, Thanks for your feedback. On 01/28/2015 03:03 PM, Arend van Spriel wrote: On 01/28/15 11:10, Javier Martinez Canillas wrote: dp { @@ -531,17 +538,33 @@ status = okay; num-slots =1; broken-cd; +cap-sdio-irq; This seems like an unrelated change, right?

[PATCH 2/3] exynos: config: Enable thermal emulation for Exynos TMU (exynos_defconfig)

2015-01-28 Thread Lukasz Majewski
Enabling thermal emulation on Exynos SoCs. New sysfs attribute - emul_temp is created. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- arch/arm/configs/exynos_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/exynos_defconfig

[PATCH] thermal: exynos: Correct sanity check at exynos_report_trigger() function

2015-01-28 Thread Lukasz Majewski
Up till now, by mistake, wrong variable was tested against being NULL. Since exynos_report_trigger() is always called with valid p pointer, it is only necessary to check if a valid thermal zone device is passed. Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Lukasz Majewski

[PATCH 1/3] exynos: config: Remove CONFIG_EXYNOS_THERMAL_CORE define (exynos_defconfig)

2015-01-28 Thread Lukasz Majewski
After Exynos TMU rework to use device tree for configuration this flag can be removed. It is not used anymore. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- arch/arm/configs/exynos_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/exynos_defconfig

[PATCH 0/3] cpufreq: build fixes

2015-01-28 Thread Arnd Bergmann
These came out of running randconfig build tests on ARM. The three patches are completely independent, so please apply what looks good. The two s3c patches are for old bugs and should go through the cpufreq tree. The exynos bug only exists in the thermal-soc tree at the moment and should get

[PATCH 3/3] cpufreq: exynos: allow modular build

2015-01-28 Thread Arnd Bergmann
The exynos cpufreq driver code recently gained a dependency on the cooling code, which may be a loadable module. This breaks an ARM allmodconfig build: drivers/built-in.o: In function `exynos_cpufreq_probe': :(.text+0x1748e8): undefined reference to `of_cpufreq_cooling_register' To avoid this

[PATCH 1/3] cpufreq: s3c: remove incorrect __init annotations

2015-01-28 Thread Arnd Bergmann
The two functions s3c2416_cpufreq_driver_init and s3c_cpufreq_register are marked init but are called from a context that might be run after the __init sections are discarded, as the compiler points out: WARNING: vmlinux.o(.data+0x1ad9dc): Section mismatch in reference from the variable

[PATCH 2/3] cpufreq: s3c: remove last use of resume_clocks callback

2015-01-28 Thread Arnd Bergmann
Commit 32726d2d550 (ARM: SAMSUNG: Remove legacy clock code) already removed the callback pointer, but there was one remaining user: drivers/cpufreq/s3c24xx-cpufreq.c: In function 's3c_cpufreq_resume_clocks': drivers/cpufreq/s3c24xx-cpufreq.c:149:14: error: 'struct s3c_cpufreq_info' has no member

[PATCH v5 0/2] mmc: dw_mmc: exynos: Add HS400 support

2015-01-28 Thread Alim Akhtar
This adds HS400 mode support for exynos dw_mmc host controller. Currently tested on Exynos5800-peach-pi and Exyons7 platform for HS400 mode. Tested HS200 mode with this series applied, HS200 still works. Appreciate testing on other exynos5/7 platform which supports emmc5.0 Changes in V5:

Re: [PATCH v4 2/2] ARM: dts: Add HS400 support for exynos5420 and exynos5800

2015-01-28 Thread Alim Akhtar
Hi Jaehoon, Thanks for review. On Thu, Jan 22, 2015 at 11:28 AM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi. On 01/21/2015 11:12 PM, Alim Akhtar wrote: Hi Jaehoon On Wed, Jan 21, 2015 at 4:32 AM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi, If you want to enable the hs400 mode,

Re: [PATCH 1/2] mmc: dw_mmc-exynos: add support for controlling emmc reset pin

2015-01-28 Thread Tobias Jakobi
Hello! Jaehoon Chung wrote: mmc core supported to hw_reset function. So i think we can use it. It's called at only initial time to clear the previous status. But i think it can be called at reboot time. (it needs to implement codes.) how about? I don't think that's going the work. The

Re: [PATCH v4 1/2] dts: Documentation: Add documentation for Exynos7 SoC thermal bindings

2015-01-28 Thread Abhilash Kesavan
Hi Eduardo, On Tue, Jan 27, 2015 at 11:18 AM, Abhilash Kesavan a.kesa...@samsung.com wrote: Add documentation for exynos7 thermal bindings including compatible name and special clock properties. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com ---

Re: [PATCH v3 01/12] clk: samsung: exynos5433: Add clocks using common clock framework

2015-01-28 Thread Chanwoo Choi
Hi Sylwester, Do you have any comment about Tomasz and me reply? Thanks, Chanwoo Choi On 01/24/2015 07:05 AM, Chanwoo Choi wrote: Hi Sylwester, On Sat, Jan 24, 2015 at 2:40 AM, Sylwester Nawrocki s.nawro...@samsung.com wrote: On 23/01/15 08:44, Chanwoo Choi wrote: + cmu_top:

[PATCH V5 1/2] mmc: dw_mmc: exynos: Support eMMC's HS400 mode

2015-01-28 Thread Alim Akhtar
From: Seungwon Jeon tgih@samsung.com Implements HS400 mode support for exynos host driver. This also include some updates as new mode is added. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Alim Akhtar alim.akh...@samsung.com [Alim: addressed review comments] ---

Re: [PATCH 2/3] cpufreq: s3c: remove last use of resume_clocks callback

2015-01-28 Thread Viresh Kumar
On 28 January 2015 at 18:46, Arnd Bergmann a...@arndb.de wrote: Commit 32726d2d550 (ARM: SAMSUNG: Remove legacy clock code) already removed the callback pointer, but there was one remaining user: drivers/cpufreq/s3c24xx-cpufreq.c: In function 's3c_cpufreq_resume_clocks':

[PATCH V5 2/2] ARM: dts: Add HS400 support for exynos5420 and exynos5800

2015-01-28 Thread Alim Akhtar
From: Seungwon Jeon tgih@samsung.com HS400 timing values are added for SMDK5420, exynos5420-peach-pit and exynos5800-peach-pi boards. This also adds RCLK GPIO line, this gpio should be in pull-down state. This also enables HS400 on peach-pi and this updates the clock frequency to 800MHz to be

Re: [PATCH 3/3] cpufreq: exynos: allow modular build

2015-01-28 Thread Viresh Kumar
On 29 January 2015 at 01:31, Arnd Bergmann a...@arndb.de wrote: config ARM_EXYNOS_CPUFREQ - bool + tristate SAMSUNG EXYNOS CPUfreq Driver + depends on THERMAL + default y + help + This adds the CPUFreq driver for Samsung EXYNOS platforms + + If in doubt,

[PATCH 3/3] exynos: config: Enable support for cpufreq on Exynos SoCs (exynos_defconfig)

2015-01-28 Thread Lukasz Majewski
This commit enables the cpufreq subsystem. Moreover, support for using CPU as a cooling device is provided. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- arch/arm/configs/exynos_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/exynos_defconfig

Re: [PATCH 2/5] mmc: pwrseq_simple: Extend to support more pins

2015-01-28 Thread Srinivas Kandagatla
Hi Javier, You are in a lead of 3 hrs from me.. Surprisingly I send very much same patch just few Mins ago :-) May be we can merge goods in both :-) On 28/01/15 10:10, Javier Martinez Canillas wrote: Many WLAN attached to a SDIO/MMC interface, needs more than one pin for their reset sequence.

[PATCH] ASoC: Samsung: add missing I2C/SPI dependencies

2015-01-28 Thread Arnd Bergmann
The SND_SOC_ARNDALE_RT5631_ALC5631 selects the rt5631 codec that requires I2C to work, so we get a build error if I2C is disabled: codecs/rt5631.c:1737:1: warning: data definition has no type or storage class 31_i2c_driver); codecs/rt5631.c:1737:1: error: type defaults to 'int' in declaration of

Re: [PATCH 3/3] cpufreq: exynos: allow modular build

2015-01-28 Thread Eduardo Valentin
On Wed, Jan 28, 2015 at 02:16:55PM +0100, Arnd Bergmann wrote: The exynos cpufreq driver code recently gained a dependency on the cooling code, which may be a loadable module. This breaks an ARM allmodconfig build: drivers/built-in.o: In function `exynos_cpufreq_probe': :(.text+0x1748e8):

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-28 Thread Ulf Hansson
On 28 January 2015 at 14:59, Marek Szyprowski m.szyprow...@samsung.com wrote: There are boards (like Hardkernel's Odroid boards) on which eMMC card's reset line is connected to GPIO line instead of the hardware reset logic. In case of such boards, if first stage of bootloader is loaded from

Re: [PATCH v4 1/2] dts: Documentation: Add documentation for Exynos7 SoC thermal bindings

2015-01-28 Thread Lukasz Majewski
Hi Abhilash, Add documentation for exynos7 thermal bindings including compatible name and special clock properties. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com --- .../devicetree/bindings/thermal/exynos-thermal.txt |4 1 file changed, 4 insertions(+) diff --git