[PATCH] mmc/core: free mmc_card when cmd 3,9,7 got failed in mmc_sd_init_card

2013-07-16 Thread wei_wang
From: Wei WANG In function mmc_sd_init_card, if command 3/9/7 got failed, mmc_card allocated just before won't be freed. This would cause memory leak. Signed-off-by: Wei WANG --- drivers/mmc/core/sd.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/core

[PATCH 1/4 V4] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-16 Thread Haijun Zhang
Add this file to help detect cpu type in runtime. These macros will be more favorable for driver to apply errata and workaround to specified cpu type. Signed-off-by: Haijun Zhang Signed-off-by: Zhao Chenhui --- changes for v4: - Add new set of soc arch/powerpc/include/asm/mpc85xx.h | 9

[PATCH] mmc:host: Remove a duplicate line in Makefile

2013-07-16 Thread wei_wang
From: Wei WANG Signed-off-by: Wei WANG --- drivers/mmc/host/Makefile |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index d422e21..c41d0c3 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile @@ -52,8 +52,6 @@ obj-

RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-16 Thread Zhang Haijun-B42677
Of course. I'll send patch v4 to add the rest of them. Thanks. Regards Haijun. > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, July 17, 2013 7:54 AM > To: Wood Scott-B07421 > Cc: Zhang Haijun-B42677; linux-mmc@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; cbouatm

Re: [PATCH v4 5/7] mmc: SDHI: add DT compatibility strings for further SoCs

2013-07-16 Thread Simon Horman
On Wed, Jul 10, 2013 at 10:18:35AM +0900, Simon Horman wrote: > On Tue, Jul 09, 2013 at 06:06:00PM +0900, Magnus Damm wrote: > > On Tue, Jul 9, 2013 at 4:43 PM, Guennadi Liakhovetski > > wrote: > > > Add further OF compatibility strings to the SDHI driver to be able to > > > precisely control driv

Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-16 Thread Scott Wood
On 07/16/2013 12:02:09 PM, Scott Wood wrote: On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote: Hi, scott Need I change something? I have some patches depend on this. Expect your advice. Thanks. Regards Haijun. It looks OK; go ahead and send the patches that depend on it. Actually, cou

Re: [PATCH v3 2/7] mmc: atmel-mci: prepare clk before calling enable

2013-07-16 Thread Russell King - ARM Linux
On Tue, Jul 16, 2013 at 05:06:48PM +0200, Boris BREZILLON wrote: > @@ -389,9 +391,13 @@ static int atmci_regs_show(struct seq_file *s, void *v) >* consistent. >*/ > spin_lock_bh(&host->lock); > - clk_enable(host->mck); > + ret = clk_prepare_enable(host->mck); > + i

Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-16 Thread Scott Wood
On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote: Hi, scott Need I change something? I have some patches depend on this. Expect your advice. Thanks. Regards Haijun. It looks OK; go ahead and send the patches that depend on it. -Scott -- To unsubscribe from this list: send the line "unsu

[PATCH v3 2/7] mmc: atmel-mci: prepare clk before calling enable

2013-07-16 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Ludovic Desroches --- drivers/mmc/host/atmel-mci.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --g

Re: [PATCH v3 2/7] mmc: atmel-mci: prepare clk before calling enable

2013-07-16 Thread boris brezillon
Hello Thomas, On 16/07/2013 17:13, Thomas Petazzoni wrote: Dear Boris BREZILLON, On Tue, 16 Jul 2013 17:06:48 +0200, Boris BREZILLON wrote: buf = kmalloc(ATMCI_REGS_SIZE, GFP_KERNEL); if (!buf) @@ -389,9 +391,13 @@ static int atmci_regs_show(struct seq_file *s, void *v)

Re: [PATCH v3 2/7] mmc: atmel-mci: prepare clk before calling enable

2013-07-16 Thread Thomas Petazzoni
Dear Boris BREZILLON, On Tue, 16 Jul 2013 17:06:48 +0200, Boris BREZILLON wrote: > buf = kmalloc(ATMCI_REGS_SIZE, GFP_KERNEL); > if (!buf) > @@ -389,9 +391,13 @@ static int atmci_regs_show(struct seq_file *s, void *v) >* consistent. >*/ > spin_lock_bh(&host->lock

RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-16 Thread Zhang Haijun-B42677
Hi, scott Need I change something? I have some patches depend on this. Expect your advice. Thanks. Regards Haijun. > -Original Message- > From: Zhang Haijun-B42677 > Sent: Thursday, July 11, 2013 8:24 AM > To: linux-mmc@vger.kernel.org; linuxppc-...@lists.ozlabs.org > Cc: cbouatmai...@

Re: [PATCH] mmc: sdhci-esdhc-imx: Write only 4 bit in case of TIMEOUT_CONTROL

2013-07-16 Thread Shawn Guo
Hi Dirk, On Tue, Jul 16, 2013 at 08:36:11AM +0200, Dirk Behme wrote: > In case of SDHCI_TIMEOUT_CONTROL write only 4 bits and not the > whole byte to avoid touching other unrelated bits in the i.MX6 > SYS_CTRL register. E.g. IPP_RST_N shouldn't be touched accidently. > > Signed-off-by: Dirk Behme