[PATCH v6 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts |8 +++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts |8 +++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 23 + arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v6 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
This is based on the driver Allwinner ships in their Android kernel sources. Initial porting to upstream kernels done by David Lanzendörfer, additional fixes and cleanups by Hans de Goede. It uses dma in bus-master mode using a built-in designware idmac controller, which is identical to the one f

[PATCH v6 3/8] ARM: sunxi: clk: export clk_sunxi_mmc_phase_control

2014-02-15 Thread David Lanzendörfer
From: Hans de Goede Signed-off-by: Hans de Goede --- include/linux/clk/sunxi.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 include/linux/clk/sunxi.h diff --git a/include/linux/clk/sunxi.h b/include/linux/clk/sunxi.h new file mode 100644 index 000..1e

[PATCH v6 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer --- .../devicetree/bindings/mmc/sunxi-mmc.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sunxi-mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt b/Docum

[PATCH v6 7/8] ARM: dts: sun5i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 30 +++ arch/arm/boot/dts/sun5i-a10s.dtsi| 44 ++ arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 15 arch/arm/b

[PATCH v6 6/8] ARM: dts: sun4i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-a1000.dts |8 arch/arm/boot/dts/sun4i-a10-cubieboard.dts |8 arch/arm/boot/dts/sun4i-a10.dtsi | 54 3 files changed, 70 insertions(+) di

[PATCH v6 0/8] ARM: sunxi: Add driver for SD/MMC hosts found on allwinner sunxi SOCs

2014-02-15 Thread David Lanzendörfer
Hello The following patchset adds support for the SD/MMC host found in the Allwinner SoCs. It contains all the necessary modifications for clock environment and also the device tree script modification which add it to all the boards using it. The clock environment function needed for phase offset

[PATCH v6 2/8] clk: sunxi: Implement MMC phase control

2014-02-15 Thread David Lanzendörfer
From: Emilio López Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index abb6c5a..33b9977 100644 --- a/drivers/clk/sunxi/clk-sun

[PATCH v6 1/8] clk: sunxi: factors: automatic reparenting support

2014-02-15 Thread David Lanzendörfer
From: Emilio López This commit implements .determine_rate, so that our factor clocks can be reparented when needed. Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-factors.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/clk/sunxi/clk-

[PATCH v6 0/8]

2014-02-15 Thread David Lanzendörfer
Hello The following patchset adds support for the SD/MMC host found in the Allwinner SoCs. It contains all the necessary modifications for clock environment and also the device tree script modification which add it to all the boards using it. The clock environment function needed for phase offset

[PATCH v6 2/8] clk: sunxi: Implement MMC phase control

2014-02-15 Thread David Lanzendörfer
From: Emilio López Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index abb6c5a..33b9977 100644 --- a/drivers/clk/sunxi/clk-sun

[PATCH v6 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts |8 +++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts |8 +++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 23 + arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v6 6/8] ARM: dts: sun4i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-a1000.dts |8 arch/arm/boot/dts/sun4i-a10-cubieboard.dts |8 arch/arm/boot/dts/sun4i-a10.dtsi | 54 3 files changed, 70 insertions(+) di

[PATCH v6 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
This is based on the driver Allwinner ships in their Android kernel sources. Initial porting to upstream kernels done by David Lanzendörfer, additional fixes and cleanups by Hans de Goede. It uses dma in bus-master mode using a built-in designware idmac controller, which is identical to the one f

[PATCH v6 3/8] ARM: sunxi: clk: export clk_sunxi_mmc_phase_control

2014-02-15 Thread David Lanzendörfer
From: Hans de Goede Signed-off-by: Hans de Goede --- include/linux/clk/sunxi.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 include/linux/clk/sunxi.h diff --git a/include/linux/clk/sunxi.h b/include/linux/clk/sunxi.h new file mode 100644 index 000..1e

[PATCH v6 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer --- .../devicetree/bindings/mmc/sunxi-mmc.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sunxi-mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt b/Docum

[PATCH v6 7/8] ARM: dts: sun5i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 30 +++ arch/arm/boot/dts/sun5i-a10s.dtsi| 44 ++ arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 15 arch/arm/b

[PATCH v6 1/8] clk: sunxi: factors: automatic reparenting support

2014-02-15 Thread David Lanzendörfer
From: Emilio López This commit implements .determine_rate, so that our factor clocks can be reparented when needed. Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-factors.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/clk/sunxi/clk-

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Russell King - ARM Linux
On Sat, Feb 15, 2014 at 10:35:34PM +0100, Tomasz Figa wrote: > If you change your hardware in an incompatible way and such change can't > be detected automatically (i.e. the chip is non-discoverable) then I > don't know how you could let the OS know about this change in any other > way than p

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Tomasz Figa
On 15.02.2014 21:52, Russell King - ARM Linux wrote: On Sat, Feb 15, 2014 at 05:21:11PM +0100, Arnd Bergmann wrote: On Saturday 15 February 2014 14:22:30 Tomasz Figa wrote: On 15.02.2014 14:09, Arnd Bergmann wrote: For spi-mode SDIO devices I'm assuming it's similar, except that you'd describ

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Russell King - ARM Linux
On Sat, Feb 15, 2014 at 05:21:11PM +0100, Arnd Bergmann wrote: > On Saturday 15 February 2014 14:22:30 Tomasz Figa wrote: > > On 15.02.2014 14:09, Arnd Bergmann wrote: > > > > > For spi-mode SDIO devices I'm assuming it's similar, except that > > > you'd describe the actual SDIO device in the board

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Arnd Bergmann
On Saturday 15 February 2014 14:22:30 Tomasz Figa wrote: > On 15.02.2014 14:09, Arnd Bergmann wrote: > > > For spi-mode SDIO devices I'm assuming it's similar, except that > > you'd describe the actual SDIO device in the board info rather than > > create a fake SDIO controller. Still not discoverab

Re: [PATCH V2 11/17] i2c: nomadik: Convert to devm functions

2014-02-15 Thread Wolfram Sang
On Thu, Feb 13, 2014 at 03:09:02PM +0100, Ulf Hansson wrote: > Use devm_* functions to simplify code and error handling. > > Cc: Alessandro Rubini > Cc: Linus Walleij > Cc: Wolfram Sang > Signed-off-by: Ulf Hansson > --- > > Changes in v2: > Rebased on top of latest i2c-nomadik branch.

[PATCH RESEND 5/5] mmc: add support for HS400 mode of eMMC5.0

2014-02-15 Thread Seungwon Jeon
This patch adds HS400 mode support for eMMC5.0 device. HS400 mode is high speed DDR interface timing from HS200. Clock frequency is up to 200MHz and only 8-bit bus width is supported. In addition, tuning process of HS200 is required to synchronize the command response on the CMD line because CMD in

[PATCH RESEND 4/5] mmc: rework selection of bus speed mode

2014-02-15 Thread Seungwon Jeon
Current implementation for bus speed mode selection is too complicated. This patch is to simplify the codes and remove some duplicate parts. The following changes are including: * Adds functions for each mode selection(HS, HS-DDR, HS200 and etc) * Rearranged the mode selection sequence with suppor

[PATCH RESEND 3/5] mmc: step power class after final selection of bus mode

2014-02-15 Thread Seungwon Jeon
Power class is changed once only after selection of bus modes including speed and bus-width finishes finally. Signed-off-by: Seungwon Jeon --- drivers/mmc/core/mmc.c | 77 +++ 1 files changed, 51 insertions(+), 26 deletions(-) diff --git a/drivers/m

[PATCH RESEND 0/5] update selection of bus speed mode for eMMC

2014-02-15 Thread Seungwon Jeon
This series contains the change for selection of bus speed mode. Previous implementation is complicated and some sequence is duplicated. And specially, HS400 mode eMMC5.0 is introduced this time. - Continued/Updated since "[PATCH 0/3] mmc: update bus speed mode" series. (Applied some comments fr

[PATCH RESEND 1/5] mmc: drop the speed mode of card's state

2014-02-15 Thread Seungwon Jeon
Timing mode identifier has same role and can take the place of speed mode. This change removes all related speed mode. Signed-off-by: Seungwon Jeon --- drivers/mmc/core/bus.c |9 + drivers/mmc/core/core.c |3 +-- drivers/mmc/core/mmc.c | 11 +++ drivers/mmc/core/sd

[PATCH RESEND 2/5] mmc: identify available device type to select

2014-02-15 Thread Seungwon Jeon
Device types which are supported by both host and device can be identified when EXT_CSD is read. There is no need to check host's capability anymore. Signed-off-by: Seungwon Jeon --- drivers/mmc/core/mmc.c | 77 ++--- include/linux/mmc/card.h |6 ++

[PATCH v2 5/7] mmc: rtsx: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Added MMC_DDR52 as eMMC's DDR mode is distinguished from SD-UHS. CC: Wei WANG CC: Samuel Ortiz Signed-off-by: Seungwon Jeon Reviewed-by: Ulf Hansson --- drivers/mmc/host/rtsx_pci_sdmmc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.

[PATCH v2 6/7] mmc: dw_mmc: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Replaced UHS_DDR50 with MMC_DDR52. And MMC_CAP_UHS_DDR50 is removed because of non-implementation of UHS signaling. Signed-off-by: Seungwon Jeon Reviewed-by: Ulf Hansson --- drivers/mmc/host/dw_mmc-exynos.c |3 +-- drivers/mmc/host/dw_mmc.c|2 +- 2 files changed, 2 insertions(+)

[PATCH v2 7/7] mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Added MMC_DDR52 as eMMC's DDR mode is distinguished from SD-UHS. Signed-off-by: Seungwon Jeon Reviewed-by: Ulf Hansson --- drivers/mmc/host/sdhci.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9ddef47..92e5

[PATCH v2 4/7] mmc: sh_mmcif: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Replaced UHS_DDR50 with MMC_DDR52. CC: Guennadi Liakhovetski Signed-off-by: Seungwon Jeon --- drivers/mmc/host/sh_mmcif.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 54730f4..656fbba 100644 ---

[PATCH v2 1/7] mmc: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
This change distinguishes DDR timing mode of current mixed usage to clarify device type. Signed-off-by: Seungwon Jeon Acked-by: Ulf Hansson --- drivers/mmc/core/debugfs.c |3 +++ drivers/mmc/core/mmc.c |2 +- include/linux/mmc/host.h |3 ++- 3 files changed, 6 insertions(+), 2

[PATCH v2 3/7] mmc: omap: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Replaced UHS_DDR50 with MMC_DDR52. Signed-off-by: Seungwon Jeon Acked-by: Balaji T K --- drivers/mmc/host/omap_hsmmc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index dbd32ad..cca397e 100644 --- a/dr

[PATCH v2 0/7] mmc: distinguish DDR timing mode for eMMC/UHS

2014-02-15 Thread Seungwon Jeon
These changes intend to distinguish two DDR timing modes related to eMMC & UHS. Even though two modes are different actually, UHS_DDR50 is used as eMMC DDR mode. MMC_TIMING_MMC_DDR52 mode is added. Changes in V2: (2/7) Added MMC-DDR52 mode instead of replacing UHS-DDR50 in mmci Seungwon

[PATCH v2 2/7] mmc: mmci: clarify DDR timing mode between SD-UHS and eMMC

2014-02-15 Thread Seungwon Jeon
Added MMC_DDR52 as eMMC's DDR mode distinguished from SD-UHS. CC: Russell King Signed-off-by: Seungwon Jeon --- drivers/mmc/host/mmci.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index b931226..421d1fe 100644 -

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Tomasz Figa
On 15.02.2014 14:09, Arnd Bergmann wrote: On Saturday 15 February 2014 12:27:33 Russell King - ARM Linux wrote: On Sat, Feb 15, 2014 at 01:18:02PM +0100, Arnd Bergmann wrote: If a wlan adapter has both SPI and SDIO front-ends, the external dependencies (reset, clock, voltage, ...) will be the s

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Arnd Bergmann
On Saturday 15 February 2014 12:27:33 Russell King - ARM Linux wrote: > On Sat, Feb 15, 2014 at 01:18:02PM +0100, Arnd Bergmann wrote: > > If a wlan adapter has both SPI and SDIO front-ends, the external > > dependencies (reset, clock, voltage, ...) will be the same, and > > from the kernel perspec

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Russell King - ARM Linux
On Sat, Feb 15, 2014 at 01:18:02PM +0100, Arnd Bergmann wrote: > If a wlan adapter has both SPI and SDIO front-ends, the external > dependencies (reset, clock, voltage, ...) will be the same, and > from the kernel perspective the main difference is that SPI cannot > be probed at all, while SDIO can

Re: [PATCH 1/3] mmc: add support for power-on sequencing through DT

2014-02-15 Thread Arnd Bergmann
On Thursday 13 February 2014 17:13:14 Arnd Bergmann wrote: > > Aside from the power-on problem, my suggestion would at the same > time solve the second problem of having a place to stick arbitrary > DT properties for the sdio function. Again looking at the cw1200 > example, they may require passin

[PATCH RESEND] mmc: core: trivial: Typo fix

2014-02-15 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan --- drivers/mmc/core/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 49bc403..114f6bd 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -337,7 +337,7 @@ int mmc_o

Re: [patch 2/2] genirq: Provide irq_wake_thread()

2014-02-15 Thread Peter Zijlstra
On Sat, Feb 15, 2014 at 12:55:19AM -, Thomas Gleixner wrote: > In course of the sdhci/sdio discussion with Russell about killing the > sdio kthread hackery we discovered the need to be able to wake an > interrupt thread from software. > > The rationale for this is, that sdio hardware can lack

Re: [patch 1/2] genirq: Provide synchronize_hardirq()

2014-02-15 Thread Peter Zijlstra
On Sat, Feb 15, 2014 at 12:55:18AM -, Thomas Gleixner wrote: > synchronize_irq() waits for hard irq and threaded handlers to complete > before returning. For some special cases we only need to make sure > that the hard interrupt part of the irq line is not in progress when > we disabled the - p