[PATCH v3 00/12] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-06 Thread Jisheng Zhang
2: warning: 'msm_host' is used uninitialized in this function [-Wuninitialized] - Add Arnd's Ack for all patches except patch3 which is new in v2 Jisheng Zhang (12): mmc: sdhci-bcm2835: use sdhci_pltfm_init for private allocation mmc: sdhci-esdhc-imx: use sdhci_pltfm_init for private alloca

[PATCH v3 03/12] mmc: sdhci-msm: factorise sdhci_msm_pdata outisde of sdhci_msm_host

2016-01-06 Thread Jisheng Zhang
There's no need to allocate one sdhci_msm_pdata for each sdhci_msm_host. This patch removes the sdhci_msm_pdata member from sdhci_msm_host and uses one static global sdhci_msm_pdata for all sdhci msm hosts. It also marks sdhci_msm_ops as const. Signed-off-by: Jisheng Zhang <jszh...@marvell.

[PATCH v3 04/12] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-msm to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

Re: [PATCH v2 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Dear Ulf, On Wed, 6 Jan 2016 17:22:48 +0800 Jisheng Zhang wrote: > Dear Ludovic, > > On Wed, 6 Jan 2016 10:02:15 +0100 Ludovic Desroches wrote: > > > Hi Jisheng, > > > > Thanks for your patch but it needs to be updated since it breaks this > > driver. >

[PATCH v3 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH v3 05/12] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

Re: [PATCH v2 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
at91 runtime pm support is newly added and intends for 4.5. So the question is which code base should I use? Hi Ulf, could you please give some suggestions? Thanks in advance, Jisheng > > On Wed, Jan 06, 2016 at 11:55:59AM +0800, Jisheng Zhang wrote: > > Commit 0e748234293f (&quo

[PATCH v3 10/12] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v3 12/12] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-06 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- driv

[PATCH v3 08/12] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v2 09/12] mmc: sdhci-st: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-st to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v2 07/12] mmc: sdhci-of-esdhc: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-esdhc driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH v2 08/12] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v2 10/12] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v2 12/12] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-05 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- driv

[PATCH v2 11/12] mmc: sdhci-pxav2: remove unnecessary assignment of pltfm_host->priv

2016-01-05 Thread Jisheng Zhang
The sdhci_pltfm_init() function has initialized the priv member as NULL, so there's no need to do it again. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- drivers/mmc/host/sdhci-pxav2.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH v2 00/12] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-05 Thread Jisheng Zhang
ta outisde of sdhci_msm_host. This is to fix drivers/mmc/host/sdhci-msm.c:440:32: warning: 'msm_host' is used uninitialized in this function [-Wuninitialized] - Add Arnd's Ack for all patches except patch3 which is new in v2 Jisheng Zhang (12): mmc: sdhci-bcm2835: use sdhci_pltfm_init f

[PATCH v2 01/12] mmc: sdhci-bcm2835: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-bcm2835 to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH v2 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH v2 05/12] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

Re: [PATCH 03/11] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
> help improving the system] > > url: > https://github.com/0day-ci/linux/commits/Jisheng-Zhang/mmc-sdhci-bcm2835-use-sdhci_pltfm_init-for-private-allocation/20160105-190232 > config: arm64-allmodconfig (attached as .config) > reproduce: > wget > https://gi

[PATCH v2 03/12] mmc: sdhci-msm: factorise sdhci_msm_pdata outisde of sdhci_msm_host

2016-01-05 Thread Jisheng Zhang
There's no need to allocate one sdhci_msm_pdata for each sdhci_msm_host. This patch removes the sdhci_msm_pdata member from sdhci_msm_host and uses one static global sdhci_msm_pdata for all sdhci msm hosts. It also marks sdhci_msm_ops as const. Signed-off-by: Jisheng Zhang <jszh...@marvell.

[PATCH 10/11] mmc: sdhci-pxav2: remove unnecessary assignment of pltfm_host->priv

2016-01-05 Thread Jisheng Zhang
The sdhci_pltfm_init() function has initialized the priv member as NULL, so there's no need to do it again. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- drivers/mmc/host/sdhci-pxav2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mm

[PATCH 05/11] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH 07/11] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH 08/11] mmc: sdhci-st: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-st to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH 02/11] mmc: sdhci-esdhc-imx: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci esdhc-imx driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH 06/11] mmc: sdhci-of-esdhc: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-esdhc driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH 04/11] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang <jszh..

[PATCH 00/11] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-05 Thread Jisheng Zhang
These patches are to complete the TODO in Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register"), I.E: - todo: migrate clients to using allocation this way - todo: remove priv variable once migration is complete Jisheng Zhang (11): mmc: sdhci-bcm2835: use sdhci_

[PATCH 11/11] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-05 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- drivers/mmc/host/sdhci-pltfm.h | 1 - 1 file chan

[PATCH 09/11] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

[PATCH 01/11] mmc: sdhci-bcm2835: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-bcm2835 to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com&

[PATCH 03/11] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-msm to this allocation. Signed-off-by: Jisheng Zhang <jszh...@marvell.com>

Re: [PATCH] mmc: sdhci: restore behavior when setting VDD via external regulator

2015-12-11 Thread Jisheng Zhang
On Fri, 11 Dec 2015 21:19:59 +0800 Jisheng Zhang wrote: > After commit 52221610dd84 ("mmc: sdhci: Improve external VDD regulator > support"), for the VDD is supplied via external regulators, we ignore > the code to convert a VDD voltage request into one of the standard >

[PATCH] mmc: sdhci: restore behavior when setting VDD via external regulator

2015-12-11 Thread Jisheng Zhang
This patch restores the behavior when setting VDD through external regulator by moving the call of mmc_regulator_set_ocr() to the end of sdhci_set_power() function. After this patch, the sdcard on Marvell Berlin SoCs work again. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> Fixes: 52

[PATCH v2] mmc: sdhci: restore behavior when setting VDD via external regulator

2015-12-11 Thread Jisheng Zhang
al vmmc. This patch restores the behavior when setting VDD through external regulator by moving the call of mmc_regulator_set_ocr() to the end of sdhci_set_power() function. After this patch, the sdcard on Marvell Berlin SoC boards work again. Signed-off-by: Jisheng Zhang <jszh...@marvell.c

RE: [PATCH v2] mmc: sdhci: restore behavior when setting VDD via external regulator

2015-12-11 Thread Jisheng Zhang
a bit strange ;) Thanks for reviewing this patch, Jisheng From: Ulf Hansson Sent: Friday, December 11, 2015 22:48 To: Jisheng Zhang; Ludovic Desroches Cc: linux-mmc; linux-ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH v2

Re: [PATCH 1/5] mmc: sdhci-pxav3: fix optional clock name

2015-10-16 Thread Jisheng Zhang
Dear Sebastian, On Thu, 15 Oct 2015 23:41:22 +0200 Sebastian Hesselbarth <sebastian.hesselba...@gmail.com> wrote: > On 12.10.2015 07:46, Jisheng Zhang wrote: > > Commit 8afdc9cca27f ("mmc: sdhci-pxav3: Get optional core clock") adds > > additional optional clo

[PATCH 5/5] clk: berlin: bg2: remove CLK_IGNORE_UNUSED flag for sdio clk

2015-10-11 Thread Jisheng Zhang
The axi clock properties already exists, so there's no need to set this flag for sdio0 and sdio1 clk any more. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- drivers/clk/berlin/bg2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/berlin/b

[PATCH 2/5] ARM: dts: berlin: correct BG2Q's sdhci2 axi clock

2015-10-11 Thread Jisheng Zhang
The optional axi clock is CLKID_SDIO. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- arch/arm/boot/dts/berlin2q.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi index 4ad585c..2f12048

[PATCH 4/5] clk: berlin: bg2q: remove CLK_IGNORE_UNUSED flag for sdio clk

2015-10-11 Thread Jisheng Zhang
Since we have added the necessary axi clk properties in dts, we can remove the "sdio" clk's CLK_IGNORE_UNUSED flag now. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- drivers/clk/berlin/bg2q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk

Re: [PATCH v2 2/5] mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detect

2015-10-11 Thread Jisheng Zhang
Hi Marcin, On Sat, 10 Oct 2015 14:13:51 +0200 Marcin Wojtas wrote: > Hi Jisheng, > > > >> > >> >> > >> >> When using DAT3-based detection Armada 38x SDIO IP expects its internal > >> >> clock to be always on, which had to be ensured twofold: > >> > > >> > What happen if

[PATCH 1/5] mmc: sdhci-pxav3: fix optional clock name

2015-10-11 Thread Jisheng Zhang
ock is really the IP's "axi" clock which is optional. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- .../devicetree/bindings/mmc/sdhci-pxa.txt | 8 ++--- arch/arm/boot/dts/berlin2.dtsi | 6 ++-- arch/arm/boot/dts/berlin2cd.dtsi

[PATCH 0/5] fix sdhci-pxav3 clock name and berlin clk clean up

2015-10-11 Thread Jisheng Zhang
dd the axi clock properties to bg2q dtsi, then remove the CLK_IGNORE_UNUSED flag for sdio clk(s). Jisheng Zhang (5): mmc: sdhci-pxav3: fix optional clock name ARM: dts: berlin: correct BG2Q's sdhci2 axi clock ARM: dts: berlin: add axi clock for BG2Q sdhci0 and sdhci1 clk: berlin: bg2q: remove C

[PATCH 3/5] ARM: dts: berlin: add axi clock for BG2Q sdhci0 and sdhci1

2015-10-11 Thread Jisheng Zhang
Add the axi clock for BG2Q's sdhci0 and sdhci1. This would let the axi clock be disabled during runtime pm, so saves power a bit. Signed-off-by: Jisheng Zhang <jszh...@marvell.com> --- arch/arm/boot/dts/berlin2q.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 2/5] mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detect

2015-10-10 Thread Jisheng Zhang
Hi Marcin, On Fri, 9 Oct 2015 16:45:25 +0200 Marcin Wojtas wrote: > Jisheng, > > > >> > >> When using DAT3-based detection Armada 38x SDIO IP expects its internal > >> clock to be always on, which had to be ensured twofold: > > > > What happen if runtime suspend disables

Re: [PATCH v2 2/5] mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detect

2015-10-09 Thread Jisheng Zhang
On Fri, 9 Oct 2015 03:03:52 +0200 Marcin Wojtas wrote: > Marvell Armada 38x SDHCI controller enable using DAT3 pin as a hardware > card detection. According to the SD sdandard this signal can be used for > this purpose combined with a pull-up resistor, implying inverted

Re: [PATCH 4/8] mmc: sdhci-pxav3: enable proper resuming on Armada 38x SoC

2015-10-08 Thread Jisheng Zhang
Hi Marcin, On Tue, 6 Oct 2015 03:22:38 +0200 Marcin Wojtas wrote: > When resuming from suspend on Armada 38x SoC MBus windows have to be > re-configured and for that purpose mv_conf_mbus_windows function needed > rework. MBus windows register base address obtaining was moved

Re: sdhci: runtime suspend/resume on card insert/removal

2015-09-14 Thread Jisheng Zhang
On Mon, 14 Sep 2015 13:43:32 +0530 Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > > > On Monday 14 September 2015 11:58 AM, Jisheng Zhang wrote: > > On Mon, 14 Sep 2015 11:55:56 +0530 > > Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > >

Re: sdhci: runtime suspend/resume on card insert/removal

2015-09-10 Thread Jisheng Zhang
Hi Vaibhav, On Thu, 10 Sep 2015 12:40:48 +0530 Vaibhav Hiremath wrote: > Hi, > > During my testing of SDHCI-PXAV3 driver on Marvell's pxa1928 > based platform, I observed that runtime PM suspend/resume is having > issues with card insertion and removal. > > Let me

Re: sdhci: runtime suspend/resume on card insert/removal

2015-09-10 Thread Jisheng Zhang
Hi Russell, On Thu, 10 Sep 2015 09:02:33 +0100 Russell King - ARM Linux <li...@arm.linux.org.uk> wrote: > On Thu, Sep 10, 2015 at 03:31:29PM +0800, Jisheng Zhang wrote: > > Hi Vaibhav, > > > > On Thu, 10 Sep 2015 12:40:48 +0530 > > Vaibhav Hiremath &l

Re: sdhci: runtime suspend/resume on card insert/removal

2015-09-10 Thread Jisheng Zhang
On Thu, 10 Sep 2015 13:21:12 +0530 Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > > > On Thursday 10 September 2015 01:01 PM, Jisheng Zhang wrote: > > Hi Vaibhav, > > > > On Thu, 10 Sep 2015 12:40:48 +0530 > > Vaibhav Hiremath <vaibh

Re: [PATCH-v2 4/7] mmc: sdhci-pxav3: Add pinctl setting according to bus clock

2015-09-08 Thread Jisheng Zhang
On Mon, 7 Sep 2015 16:48:38 +0530 Vaibhav Hiremath wrote: > Different bus clock may need different pin setting. > For example, fast bus clock like 208Mhz need pin drive fast > while slow bus clock prefer pin drive slow to guarantee > signal quality. > > So this

Re: [PATCH-v2 4/7] mmc: sdhci-pxav3: Add pinctl setting according to bus clock

2015-09-08 Thread Jisheng Zhang
On Mon, 7 Sep 2015 16:48:38 +0530 Vaibhav Hiremath wrote: > Different bus clock may need different pin setting. > For example, fast bus clock like 208Mhz need pin drive fast > while slow bus clock prefer pin drive slow to guarantee > signal quality. > > So this

Re: [PATCH-v2 5/7] mmc: sdhci-pxav3: Fix HS200 mode support

2015-09-08 Thread Jisheng Zhang
On Mon, 7 Sep 2015 16:48:39 +0530 Vaibhav Hiremath wrote: > From: Kevin Liu > > IN case of MMC HS200 mode, current code does not enable > SD_CE_ATA_2.MMC_HS200 & SD_CE_ATA_2.MMC_CARD bit configurations. > > So this patch updates the above bit

Re: [PATCH-v2 4/7] mmc: sdhci-pxav3: Add pinctl setting according to bus clock

2015-09-08 Thread Jisheng Zhang
On Tue, 8 Sep 2015 15:04:41 +0530 Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > > > On Tuesday 08 September 2015 12:22 PM, Jisheng Zhang wrote: > > On Mon, 7 Sep 2015 16:48:38 +0530 > > Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: >

Re: [PATCH-v2 4/7] mmc: sdhci-pxav3: Add pinctl setting according to bus clock

2015-09-08 Thread Jisheng Zhang
On Tue, 8 Sep 2015 15:32:34 +0530 Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > > > On Tuesday 08 September 2015 03:22 PM, Jisheng Zhang wrote: > > On Tue, 8 Sep 2015 15:04:41 +0530 > > Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > >

Re: [PATCH-v2 1/3] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-07 Thread Jisheng Zhang
On Mon, 7 Sep 2015 17:01:09 +0530 Vaibhav Hiremath wrote: > There were some coding style issues where spaces have been used instead > of tabs, for example, in macro definitions, alignment of function > declarations/definitions, etc... > > This patch fixes all such

Re: [RFC 2/3] mmc: sdhci: add host_ops->voltage_switch callback for all other voltages

2015-09-02 Thread Jisheng Zhang
On Wed, 2 Sep 2015 13:49:53 +0530 Vaibhav Hiremath <vaibhav.hirem...@linaro.org> wrote: > > > On Wednesday 02 September 2015 12:34 PM, Jisheng Zhang wrote: > > On Wed, 2 Sep 2015 01:02:17 +0530 > > Vaibhav Hiremath <vaibhav.hirem...@linaro.

Re: [PATCH 1/2] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-02 Thread Jisheng Zhang
On Wed, 2 Sep 2015 00:54:13 +0530 Vaibhav Hiremath wrote: > There were some coding style issues where spaces have been used instead > of tabs, for example, in macro definitions, alignment of function > declarations/definitions, etc... > > This patch fixes all such

Re: [RFC 2/3] mmc: sdhci: add host_ops->voltage_switch callback for all other voltages

2015-09-02 Thread Jisheng Zhang
On Wed, 2 Sep 2015 01:02:17 +0530 Vaibhav Hiremath wrote: > Currently, the sdhci_do_start_signal_voltage_switch() function invokes > controller specific voltage switch configuration only for 1.8v usecase; > but it is required for others as well. > > For example, in

[PATCH v3] mmc: sdhci: also get preset value and driver type for MMC_DDR52

2015-08-18 Thread Jisheng Zhang
: clarify DDR timing mode ...) Signed-off-by: Jisheng Zhang jszh...@marvell.com --- Since v2: - fix sdhci_get_preset_value for MMC_DDR52 - add typical emmc error log which this patch intends to fix Since v1: - correct commit-msg drivers/mmc/host/sdhci.c | 4 +++- 1 file changed, 3 insertions

Re: [PATCH v2] mmc: sdhci: also set driver type for MMC_DDR52

2015-08-17 Thread Jisheng Zhang
On Mon, 17 Aug 2015 19:47:21 +0800 Jisheng Zhang jszh...@marvell.com wrote: commit bb8175a8aa42 (mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC) added MMC_DDR52 as eMMC's DDR mode to be distinguished from SD-UHS, but it missed setting driver type for MMC_DDR52 timing mode

[PATCH v2] mmc: sdhci: also set driver type for MMC_DDR52

2015-08-17 Thread Jisheng Zhang
: clarify DDR timing mode ...) Signed-off-by: Jisheng Zhang jszh...@marvell.com --- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1dbe932..32f2a07 100644 --- a/drivers/mmc/host/sdhci.c +++ b

Re: [PATCH] mmc: sdhci: also set driver type for MMC_DDR52

2015-08-17 Thread Jisheng Zhang
On Mon, 17 Aug 2015 19:34:39 +0800 Jisheng Zhang jszh...@marvell.com wrote: commit 08f90f14aa93ad424c20bb176b52f329583e2183 (mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC) added MMC_DDR52 as eMMC's DDR mode to be distinguished from SD-UHS, but it missed setting driver type

[PATCH] mmc: sdhci: also set driver type for MMC_DDR52

2015-08-17 Thread Jisheng Zhang
: 79f7ae7c45a6(mmc: clarify DDR timing mode between SD-UHS and eMMC) Signed-off-by: Jisheng Zhang jszh...@marvell.com --- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1dbe932..32f2a07 100644

[PATCH] mmc: sdhci-pxav3: fix device wakeup initialization

2015-06-02 Thread Jisheng Zhang
device wakeup explicitly. This patch fixes the warning as following: [ 64.616651] [ cut here ] [ 64.616665] WARNING: CPU: 0 PID: 79 at linux/kernel/irq/manage.c:603 irq_set_irq_wake+0xf0/0x11c() [ 64.616667] Unbalanced IRQ 87 wake disable Signed-off-by: Jisheng Zhang

[RFC] mmc: sdhci: implement light and heavy runtime pm resume

2015-02-05 Thread Jisheng Zhang
Hi all, Most sdhci_runtime_resume_host() users just gate their clocks in their runtime suspend implementation, so the sdhci_runtime_resume_host() is too heavy, we only need to restore interrupts registers. The change is something as following: diff --git a/drivers/mmc/host/sdhci.c

[PATCH] mmc: sdhci: switch voltage before sdhci_set_ios in runtime resume

2015-01-29 Thread Jisheng Zhang
reset when switching voltage. We fix this by following the same sequence during initialization. Signed-off-by: Jisheng Zhang jszh...@marvell.com --- drivers/mmc/host/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH] mmc: sdhci-pxav3: fix setting of pdata-clk_delay_cycles

2015-01-28 Thread Jisheng Zhang
. This patch fix this problem by check the return value of of_property_read_u32() to know whether the optional clk-delay-cycles is set or not. Signed-off-by: Jisheng Zhang jszh...@marvell.com Cc: sta...@vger.kernel.org # v3.6+ --- drivers/mmc/host/sdhci-pxav3.c | 4 ++-- 1 file changed, 2 insertions

[PATCH] mmc: sdhci-pxav3: fix setting of pdata-clk_delay_cycles

2015-01-28 Thread Jisheng Zhang
. This patch fix this problem by check the return value of of_property_read_u32() to know whether the optional clk-delay-cycles is set or not. Signed-off-by: Jisheng Zhang jszh...@marvell.com Cc: sta...@vger.kernel.org # v3.6+ --- drivers/mmc/host/sdhci-pxav3.c | 4 ++-- 1 file changed, 2 insertions

Re: [PATCH] mmc: sdhci-pxav3: fix race between runtime pm and irq

2015-01-23 Thread Jisheng Zhang
Dear Ulf, On Fri, 23 Jan 2015 00:23:29 -0800 Ulf Hansson ulf.hans...@linaro.org wrote: On 21 January 2015 at 13:45, Jisheng Zhang jszh...@marvell.com wrote: This patch is to fix a race condition that may cause an unhandled irq, which results in big sdhci interrupt numbers and endless mmc1

[PATCH v2] mmc: sdhci-pxav3: fix race between runtime pm and irq

2015-01-23 Thread Jisheng Zhang
runtime_suspended is true now return IRQ_NONE; Fix this race by using the core sdhci.c supplied sdhci_runtime_suspend_host() in runtime suspend hook which will disable card interrupts. We also use the sdhci_runtime_resume_host() in the runtime resume hook accordingly. Signed-off-by: Jisheng Zhang jszh

[PATCH] mmc: sdhci-pxav3: fix race between runtime pm and irq

2015-01-21 Thread Jisheng Zhang
runtime_suspended is true now return IRQ_NONE; Fix this race by using the core sdhci.c supplied sdhci_runtime_suspend_host() in runtime suspend hook which will disable card interrupts. We also use the sdhci_runtime_resume_host() in the runtime resume hook accordingly. Signed-off-by: Jisheng Zhang jszh

[PATCH next] mmc: sdhci-pxav3: Remove checks for optional core clock in error/remove path

2015-01-05 Thread Jisheng Zhang
we want a little smaller latency. This patch can be applied after the sdhci-pxav3 unbalanced pm/clock issues patches being merged. http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/313103.html Signed-off-by: Jisheng Zhang jszh...@marvell.com --- drivers/mmc/host/sdhci-pxav3.c | 6

[PATCH next 0/2] mmc: sdhci-pxav3: fix unbalanced pm and clock issues

2015-01-04 Thread Jisheng Zhang
These two patches fix unbalanced pm and clock issues. The clock unbalance issue would cause power consumption regression because the clock will never be gated at runtime PM suspend. Jisheng Zhang (2): mmc: sdhci-pxav3: fix unbalanced clock issues during probe mmc: sdhci-pxav3: fix pm

[PATCH next 1/2] mmc: sdhci-pxav3: fix unbalanced clock issues during probe

2015-01-04 Thread Jisheng Zhang
problems by just incrementing the usage counter before pm_runtime_enable(). It also adjust the order of disabling runtime pm and storing the usage count in the error path to handle clock gating properly. Signed-off-by: Jisheng Zhang jszh...@marvell.com Cc: sta...@vger.kernel.org # v3.11+ --- drivers

[PATCH next 2/2] mmc: sdhci-pxav3: fix pm unbalanced issue in - remove()

2015-01-04 Thread Jisheng Zhang
This patch calls pm_runtime_put_noidle() to restore the device's usage counter in the -remove() implementation. Signed-off-by: Jisheng Zhang jszh...@marvell.com --- drivers/mmc/host/sdhci-pxav3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pxav3

Re: [PATCH 1/4] mmc: sdhci: add a driver for Berlin SoCs

2014-04-18 Thread Jisheng Zhang
Hi, On Thu, 17 Apr 2014 06:33:59 -0700 Antoine Ténart antoine.ten...@free-electrons.com wrote: Sebastian, On Wed, Apr 16, 2014 at 04:26:06PM +0200, Sebastian Hesselbarth wrote: On 04/16/2014 02:40 PM, Antoine Ténart wrote: Add a Driver to support the SDHCI controller of the Marvell

Re: [PATCH 3/4] ARM: dts: berlin: add the SDHCI nodes for the BG2Q

2014-04-16 Thread Jisheng Zhang
Hi Antoine, On Wed, 16 Apr 2014 05:40:10 -0700 Antoine Ténart antoine.ten...@free-electrons.com wrote: Add the SDHCI nodes for the Marvell Berlin BG2Q, using the berlin-sdhci driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 40