Re: [PATCH] Revert "sdhci-of-esdhc: Support 8BIT bus width."

2015-05-21 Thread Kevin Hao
On Thu, May 21, 2015 at 09:24:43AM +, Joakim Tjernlund wrote: > The HW 8BIT can be confused with SDHCI_CTRL_HISPD(0x04) as it is the same bit. > > However, now I see that esdhc_writeb() has > /* Prevent SDHCI core from writing reserved bits (e.g. HISPD). */ > if (reg == SDHCI_HOST_C

Re: [PATCH] Revert "sdhci-of-esdhc: Support 8BIT bus width."

2015-05-20 Thread Kevin Hao
On Wed, May 20, 2015 at 02:54:27PM +, Joakim Tjernlund wrote: > On Tue, 2015-05-19 at 17:20 +0800, Kevin Hao wrote: > > On Sun, May 17, 2015 at 08:36:07AM +, Joakim Tjernlund wrote: > > > On Sun, 2015-05-17 at 13:06 +0800, Kevin Hao wrote: > > > > &

Re: [PATCH] Revert "sdhci-of-esdhc: Support 8BIT bus width."

2015-05-19 Thread Kevin Hao
On Sun, May 17, 2015 at 08:36:07AM +, Joakim Tjernlund wrote: > On Sun, 2015-05-17 at 13:06 +0800, Kevin Hao wrote: > > > > > > How about this one: > > > > > > From af6b18c056b6064424bd2ab1f9989bbadae5e701 Mon Sep 17 00:00:00 2001 > > > From: J

[PATCH v2 3/7] mmc: tegra: use devm help functions to get the clk and gpio

2015-02-26 Thread Kevin Hao
Simplify the error and remove path. Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/sdhci-tegra.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index f3778d58d1cd..0643f66b4e14

[PATCH v2 4/7] mmc: sdhci-sirf: kill the "clk" member in driver private struct

2015-02-26 Thread Kevin Hao
Actually we can use the "clk" in the struct sdhci_pltfm_host. With this change we can also kill the private function for get max clock in this driver. Signed-off-by: Kevin Hao --- v2: Also kill the private sdhci_sirf_get_max_clk(). drivers/mmc/host/sdhci-s

[PATCH v2 7/7] mmc: sdhci: set the .remove to sdhci_pltfm_unregister()

2015-02-26 Thread Kevin Hao
In these drivers, the driver specific .remove function just a simple wrapper of function sdhci_pltfm_unregister(). So remove these wrappers and just set .remove to sdhci_pltfm_unregister(). Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/sdhci-bcm-kona.c | 7 +-- drivers/mmc

[PATCH v2 6/7] mmc: sdhci: disable the clock in sdhci_pltfm_unregister()

2015-02-26 Thread Kevin Hao
So we can avoid to sprinkle the clk_disable_unprepare() in many drivers. Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/sdhci-bcm-kona.c | 12 +--- drivers/mmc/host/sdhci-dove.c | 8 +--- drivers/mmc/host/sdhci-of-arasan.c | 1 - drivers/mmc/host/sdhci-pltfm.c

[PATCH v2 5/7] mmc: sdhci-bcm-kona: kill the "external_clk" member in driver private struct

2015-02-26 Thread Kevin Hao
Actually we can use the "clk" in the struct sdhci_pltfm_host. Also change the "external clock" to "core clock" and kill two redundant private functions in this driver as suggested by Ray Jui. Signed-off-by: Kevin Hao --- v2: - s/external clock/core clock/

[PATCH v2 2/7] mmc: sdhci-dove: kill the driver specific private struct

2015-02-26 Thread Kevin Hao
There is only one "clk" member in this driver specific private struct. Actually we can use the "clk" member in the struct sdhci_pltfm_host, and then kill this struct completely. Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/sdhci-dove.c | 26 +-

[PATCH v2 0/7] mmc: sdhci: set .remove to sdhci_pltfm_unregister()

2015-02-26 Thread Kevin Hao
sdhci_pltfm_unregister() with just a bit twist. Only run test for sdhci-of-esdhc driver. All others just passed the build test. Kevin Hao (7): mmc: sdhci-dove: remove the unneeded error check mmc: sdhci-dove: kill the driver specific private struct mmc: tegra: use devm help functions to get the clk and gpio

[PATCH v2 1/7] mmc: sdhci-dove: remove the unneeded error check

2015-02-26 Thread Kevin Hao
The function clk_disable_unprepare() already take care of either error or null cases. Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/sdhci-dove.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci

[PATCH v2 09/11] mmc: kconfig: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
Signed-off-by: Kevin Hao --- v2: No change. drivers/mmc/host/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 61ac63a3776a..7858d7a52818 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig

[PATCH v2 00/11] powerpc: kill PPC_OF

2015-02-26 Thread Kevin Hao
f0b66a2cf68e ("PCI: Add pci_device_to_OF_node() stub for !CONFIG_OF") - Add the ack in v1 cycle. - Resolve the comments in v1 cycle. We plan to merge this patch series via the powerpc tree in 4.1 cycle. So please ack the corresponding patches if you are OK with these changes.

Re: [PATCH 5/7] mmc: sdhci-bcm-kona: kill the "external_clk" member in driver private struct

2015-02-05 Thread Kevin Hao
On Thu, Feb 05, 2015 at 09:51:17PM -0800, Ray Jui wrote: > > @@ -265,19 +264,19 @@ static int sdhci_bcm_kona_probe(struct > > platform_device *pdev) > > } > > > > /* Get and enable the external clock */ > > Would you mind changing the above comment to "/* Get and enable the core > clock

[PATCH 2/7] mmc: sdhci-dove: kill the driver specific private struct

2015-02-05 Thread Kevin Hao
There is only one "clk" member in this driver specific private struct. Actually we can use the "clk" member in the struct sdhci_pltfm_host, and then kill this struct completely. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-dove.c | 26 +

[PATCH 1/7] mmc: sdhci-dove: remove the unneeded error check

2015-02-05 Thread Kevin Hao
The function clk_disable_unprepare() already take care of either error or null cases. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-dove.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c index

[PATCH 7/7] mmc: sdhci: set the .remove to sdhci_pltfm_unregister()

2015-02-05 Thread Kevin Hao
In these drivers, the driver specific .remove function just a simple wrapper of function sdhci_pltfm_unregister(). So remove these wrappers and just set .remove to sdhci_pltfm_unregister(). Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-bcm-kona.c | 7 +-- drivers/mmc/host/sdhci

[PATCH 4/7] mmc: sdhci-sirf: kill the "clk" member in driver private struct

2015-02-05 Thread Kevin Hao
Actually we can use the "clk" in the struct sdhci_pltfm_host. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-sirf.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index f6

[PATCH 5/7] mmc: sdhci-bcm-kona: kill the "external_clk" member in driver private struct

2015-02-05 Thread Kevin Hao
Actually we can use the "clk" in the struct sdhci_pltfm_host. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-bcm-kona.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-ko

[PATCH 0/7] mmc: sdhci: set .remove to sdhci_pltfm_unregister()

2015-02-05 Thread Kevin Hao
Hi, In the current kernel, the specific .remove function in several sdhci platform drivers seem pretty similar. Actually we can just set all of them to sdhci_pltfm_unregister() with just a bit twist. Only run test for sdhci-of-esdhc driver. All others just passed the build test. Kevin Hao (7

[PATCH 3/7] mmc: tegra: use devm help functions to get the clk and gpio

2015-02-05 Thread Kevin Hao
Simplify the error and remove path. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-tegra.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index f3778d58d1cd..0643f66b4e14 100644 --- a

[PATCH 6/7] mmc: sdhci: disable the clock in sdhci_pltfm_unregister()

2015-02-05 Thread Kevin Hao
So we can avoid to sprinkle the clk_disable_unprepare() in many drivers. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-bcm-kona.c | 12 +--- drivers/mmc/host/sdhci-dove.c | 8 +--- drivers/mmc/host/sdhci-of-arasan.c | 1 - drivers/mmc/host/sdhci-pltfm.c | 2

[PATCH] mmc: core: make the poll interval for the broken CD adjustable

2015-02-04 Thread Kevin Hao
. At the same time make the default value a bit bigger, and the system which really need the per second poll can tweak this parameter to be compatible with the old kernel. Signed-off-by: Kevin Hao --- drivers/mmc/core/core.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH] mmc: sdhci-pltfm: remove the unneeded check of disabled device

2015-02-03 Thread Kevin Hao
bled device. In this case, it just doesn't parse the dtb for the infos such as quirks or clock, but it will continue to try to init the disabled device after that check. So just remove it. Signed-off-by: Kevin Hao --- drivers/mmc/host/sdhci-pltfm.c | 54 -

[PATCH 11/15] mmc: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
Signed-off-by: Kevin Hao --- drivers/mmc/host/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index f145f1558353..a18dde1078ea 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig @@ -132,7 +132,7