[PATCH] sdhci: Make sdhci_disable_irq_wakeups() static

2014-08-30 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com sdhci_disable_irq_wakeups() is exported, but it is not called outside sdhci.c. Make it static and do not export it, so that the following sparse warning is fixed: drivers/mmc/host/sdhci.c:2548:6: warning: symbol 'sdhci_disable_irq_wakeups' was

[PATCH v2 11/12] mmc: sunxi: Convert MMC driver to the standard clock phase API

2014-08-30 Thread Maxime Ripard
Now that we have proper support to use the generic phase API in our clock driver, switch the MMC driver to use it. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Ulf Hansson ulf.hans...@linaro.org --- .../devicetree/bindings/mmc/sunxi-mmc.txt | 8 +--

[PATCH v2 00/12] clk: sunxi: Improve MMC clocks support

2014-08-30 Thread Maxime Ripard
Hi everyone, Here is an attempt at improving the MMC clock support in the Allwinner SoCs. Until now, the MMC clocks were having a custom phase function that was directly setting an obscure value in the right register, because we were not really having any idea of what these values were. Now

[PATCH v2 03/12] clk: Add a function to retrieve phase

2014-08-30 Thread Maxime Ripard
The current phase API doesn't look into the actual hardware to get the phase value, but will rather get it from a variable only set by the set_phase function. This will cause issue when the client driver will never call the set_phase function, where we can end up having a reported phase that will

[PATCH v2 06/12] ARM: sunxi: dt: Switch to the new mbus compatible

2014-08-30 Thread Maxime Ripard
Now that we have a compatible of its own for the mbus clock, switch to it. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun5i-a10s.dtsi | 2 +- arch/arm/boot/dts/sun5i-a13.dtsi | 2 +- arch/arm/boot/dts/sun7i-a20.dtsi | 2 +- 3 files changed, 3

[PATCH v2 02/12] clk: Include of.h in clock-provider.h

2014-08-30 Thread Maxime Ripard
CLK_OF_DECLARE relies on OF_DECLARE_1 that is defined in of.h. Fixes build errors when one use CLK_OF_DECLARE but doesn't include of.h Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- include/linux/clk-provider.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 12/12] clk: sunxi: Remove custom phase function

2014-08-30 Thread Maxime Ripard
Now that we don't have any user left for our custom phase function, we can safely remove this hack from the code. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clk/sunxi/clk-sunxi.c | 37 - include/linux/clk/sunxi.h | 22

[PATCH v2 07/12] clk: sunxi: Move mod0 clock to a file of its own

2014-08-30 Thread Maxime Ripard
Since we know have the ability to declare factors clock outside of clk-sunxi, create a new mod0 driver to deal with the mod0 clocks. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk-mod0.c | 82

[PATCH v2 04/12] clk: sunxi: factors: Invert the probing logic

2014-08-30 Thread Maxime Ripard
Until now, the factors clock probing was done directly by sunxi_init_clocks, with the factors registration being called directly with the clocks data passed as an argument. This approch has shown its limits when we added more clocks, since we couldn't really split code with such a logic in

[PATCH v2 05/12] clk: sunxi: Introduce mbus compatible

2014-08-30 Thread Maxime Ripard
Even though the mbus clock is a regular module clock, given its nature, it needs to be enabled all the time. Introduce a new compatible, to differentiate it from the other module clocks. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com ---

[PATCH v2 09/12] ARM: sunxi: dt: Add sample and output mmc clocks

2014-08-30 Thread Maxime Ripard
Add the sample and output clocks for the MMC phase support. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 104 +++--- arch/arm/boot/dts/sun5i-a10s.dtsi | 79 ++---

[PATCH v2 08/12] clk: sunxi: Move mbus to mod0 file

2014-08-30 Thread Maxime Ripard
Move the MBUS clock to the module clocks file. It's pretty trivial, but still requires to enable the clocks to make sure it won't get disabled. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clk/sunxi/clk-mod0.c | 12 + drivers/clk/sunxi/clk-sunxi.c | 57