Re: [U-Boot] [PATCH 2/7 V3] mmc: Get secure erase information from card

2013-12-29 Thread Zhang Haijun
On 12/27/2013 07:13 PM, Jaehoon Chung wrote: Hi, Haijun. On 12/10/2013 02:39 PM, Haijun Zhang wrote: Read command class from csd register and secure erase support bit from ext csd register. Also calculate the erase timeout and secure erase timeout. If read ext csd error, error status should be

Re: [U-Boot] [PATCH 1/7 V4] mmc: Add some usefull macro definition

2013-12-29 Thread Zhang Haijun
On 12/27/2013 07:29 PM, Jaehoon Chung wrote: Hi, Haijun. On 12/10/2013 05:20 PM, Haijun Zhang wrote: From: Haijun Zhang Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- changes for V4: - n

Re: [U-Boot] [PATCH 1/7 V4] mmc: Add some usefull macro definition

2014-01-05 Thread Zhang Haijun
Hi, Panto This patch set are superseded. There are revision five. Best Regards, -- Haijun On 12/10/2013 04:20 PM, Haijun Zhang wrote: From: Haijun Zhang Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhan

Re: [U-Boot] [PATCH 1/7 V5] mmc: Add some usefull macro definition

2014-01-05 Thread Zhang Haijun
Hi, Panto Could you help review this patch set? Best Regards, -- Haijun On 12/30/2013 04:20 PM, Haijun Zhang wrote: Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- changes for V5: - Add som

Re: [U-Boot] [PATCH] fsl_esdhc: Add Auto command 12 interrupt bit detecting

2014-01-05 Thread Zhang Haijun
Hi, Antonious Expect your advice. Best Regards, -- Haijun On 11/01/2013 03:44 PM, Zhang Haijun wrote: Hi, Antonious How about this patch? Could you give some advice? 于 2013/10/21 17:23, Zhang Haijun 写道: Hi, Babic Thanks. This patch is test on PPC. Regards, Haijun 于 2013/10/21 17:19

Re: [U-Boot] [PATCH 2/7 V5] mmc: Get secure erase information from card

2014-01-09 Thread Zhang Haijun
Ok, Thanks. Regards, Haijun. 于 2014/1/9 19:09, Pantelis Antoniou 写道: Hi Haijun, Since this is part of the core mmc functionality, I'll need to run some test on some board that are affected. Pending verification and testing from now on. Regards -- Pantelis On Dec 30, 2013, at 10:20 AM, Hai

Re: [U-Boot] [PATCH 1/3 V2] esdhc: Workaround for card can't be detected on T4240QDS

2014-01-09 Thread Zhang Haijun
Thanks Pantelis. I'll rework this patch as you suggested. Thanks. Regards, Haijun 于 2014/1/9 18:42, Pantelis Antoniou 写道: Hi Haijun, On Dec 11, 2013, at 7:35 AM, Haijun Zhang wrote: Card detection pin is ineffective on T4240QDS Rev1.0. There are two cards can be connected to board. 1. eM

Re: [U-Boot] [PATCH 7/7 V5] powerpc/esdhc: Update esdhc command execution process

2014-01-09 Thread Zhang Haijun
Hi, Pantelis This patch is based on patch http://patchwork.ozlabs.org/patch/283002/ I'm afraid it was delegated to York by mistake. Best regards, Haijun 于 2014/1/9 19:08, Pantelis Antoniou 写道: Hi Haijun, Patch does not apply. On Dec 30, 2013, at 10:20 AM, Haijun Zhang wrote: The max timeo

Re: [U-Boot] [PATCH 2/3 V2] esdhc: Detecting 8 bit width before mmc initialization

2014-01-09 Thread Zhang Haijun
Understand. Thanks. Best regards, Haijun 于 2014/1/9 18:43, Pantelis Antoniou 写道: Hi Haijun, On Dec 11, 2013, at 7:35 AM, Haijun Zhang wrote: The upper 4 data signals of esdhc are shared with spi flash. So detect if the upper 4 pins are assigned to esdhc before enable sdhc 8 bit width. Sign

Re: [U-Boot] [PATCH 1/3 V3] esdhc: Workaround for card can't be detected on T4240QDS

2014-01-22 Thread Zhang Haijun
Many thanks. Pantelis and York How about below patch? http://patchwork.ozlabs.org/patch/283002/ It's about esdhc, but is in york's backyard. Regards Haijun On 01/22/2014 08:01 PM, Pantelis Antoniou wrote: Hi York, On Jan 22, 2014, at 12:01 AM, York Sun wrote: Pantelis, On 01/09/2014 0

Re: [U-Boot] [PATCH 1/7 V5] mmc: Add some usefull macro definition

2014-02-23 Thread Zhang Haijun
Hi, Pantelis How about the status of this patch set now? Did I need to do something? Regards & Thanks -- Haijun On 12/30/2013 04:20 PM, Haijun Zhang wrote: > Add command class define. > Add mmc erase and secure erase define. > Add secure erase and trim support bit define. > > Signed-off-by: Ha

Re: [U-Boot] uhs-1 support in imx_esdhc.c file

2014-03-30 Thread Zhang Haijun
Hi, TigerLiu Sorry to miss you mail. Now UHS-I support has not been merged into fsl_esdhc.c. We plan to. There is no plan to support UHS-II now. Thanks. Regards & Thanks -- Haijun On 03/27/2014 07:19 PM, tiger...@via-alliance.com wrote: Hi, Haijun: Freescale engineer had ever added UHS-I sup

Re: [U-Boot] [PATCH] fsl_esdhc: Add Auto command 12 interrupt bit detecting

2013-10-21 Thread Zhang Haijun
Hi, all Who can give some comments? 于 2013/10/12 17:50, Haijun Zhang 写道: > When Auto-CMD12 is used, the corresponding interrupt and error bit > should be enabled and set to reflect auto cmd 12 error. > Also add other command error detecting, like command index error, > CRC error etc. Without thi

Re: [U-Boot] [PATCH] fsl_esdhc: Add Auto command 12 interrupt bit detecting

2013-10-21 Thread Zhang Haijun
Hi, Babic Thanks. This patch is test on PPC. Regards, Haijun 于 2013/10/21 17:19, Stefano Babic 写道: Hi, On 21/10/2013 10:23, Zhang Haijun wrote: Hi, all Who can give some comments? I put Antonius in CC, he's the MMC custodian. The driver is for both PPC and i.MX. On which platfo

Re: [U-Boot] [PATCH 1/2] esdhc: memset mmc struct before putting into use

2013-10-27 Thread Zhang Haijun
Thanks. Barnett :-) 于 2013/10/26 0:28, Ryan Barnett 写道: Haijun Zhang wrote on 10/24/2013 08:54:42 PM: struct mmc should be clear to all '0' after malloc to avoid unexpect variable value. Like mmc->has_init = xxx. In this case mmcinfo will believe the card had been initialized before and skip

Re: [U-Boot] [PATCH] powerpc/esdhc: Map register for eSDHC host controller 3.0

2013-10-29 Thread Zhang Haijun
I'll split it to two patches. Thanks. 于 2013/10/30 1:54, Scott Wood 写道: On Tue, 2013-10-29 at 11:48 +0800, Haijun Zhang wrote: eSDHC host controller has new register to support SD Spec 3.0. And the according host controller version was Freescale eSDHC Version 3.0. Add some new register and it

Re: [U-Boot] [PATCH 2/2] powerpc/esdhc: hack t4240 host capabilities register for VS33 bit

2013-10-29 Thread Zhang Haijun
于 2013/10/30 2:34, Scott Wood 写道: On Fri, 2013-10-25 at 09:54 +0800, Haijun Zhang wrote: T4240 eSDHC host capabilities reigster should have VS33 bit define. hack the code to add the 3.3 voltage support Signed-off-by: Roy Zang Signed-off-by: Haijun Zhang --- arch/powerpc/include/asm/config_

Re: [U-Boot] [PATCH 2/2 V3] powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register

2013-10-31 Thread Zhang Haijun
Thanks a lot. ? 2013/10/31 15:53, Pantelis Antoniou ??: Hi Haijun, On Oct 31, 2013, at 3:38 AM, Haijun Zhang wrote: T4240QDS eSDHC host capabilities reigster should have VS33 bit define. Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity missing Signed-off-by: Roy Zang Sig

Re: [U-Boot] [PATCH] fsl_esdhc: Add Auto command 12 interrupt bit detecting

2013-11-01 Thread Zhang Haijun
Hi, Antonious How about this patch? Could you give some advice? 于 2013/10/21 17:23, Zhang Haijun 写道: Hi, Babic Thanks. This patch is test on PPC. Regards, Haijun 于 2013/10/21 17:19, Stefano Babic 写道: Hi, On 21/10/2013 10:23, Zhang Haijun wrote: Hi, all Who can give some comments

Re: [U-Boot] [PATCH] fsl_esdhc: Add Auto command 12 interrupt bit detecting

2013-11-01 Thread Zhang Haijun
:-) Thanks. 于 2013/11/1 15:45, Pantelis Antoniou 写道: Hi Zhang, I'll take a look at it over the weekend. Regards -- Pantelis On Nov 1, 2013, at 9:44 AM, Zhang Haijun wrote: Hi, Antonious How about this patch? Could you give some advice? 于 2013/10/21 17:23, Zhang Haijun 写道: Hi,

Re: [U-Boot] [PATCH 1/7] mmc: Add some usefull macro definition

2013-11-07 Thread Zhang Haijun
Hi, Jaehoon ? 2013/11/8 9:15, Jaehoon Chung ??: Dear Haijun, On 11/05/2013 03:23 PM, Haijun Zhang wrote: Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- include/mmc.h | 49 ++

Re: [U-Boot] [PATCH] powerpc/esdhc: Update esdhc command execution process

2013-11-07 Thread Zhang Haijun
Abandon this, see [PATCH 7/7 V2] powerpc/esdhc: Update esdhc command execution process 于 2013/11/8 10:06, Haijun Zhang 写道: > The max timeout value esdhc host can accept was about 2.69 sec > At 50 Mhz SD_CLK period, the max busy timeout > value = 2^27 * SD_CLK period ~= 2.69 sec. > > In case eras

Re: [U-Boot] [PATCH 1/2 V2] powerpc/esdhc: Map register for eSDHC Host Controller V3.0

2013-11-17 Thread Zhang Haijun
Hi, all Who could help review this patch set? Thanks in advance. 于 2013/10/31 15:51, Pantelis Antoniou 写道: Hi Haijun, On Oct 30, 2013, at 5:37 AM, Haijun Zhang wrote: eSDHC host controller has new register to support SD Spec 3.0. And the according host controller version was Freescale eSDHC

Re: [U-Boot] [PATCH 1/2 V2] powerpc/esdhc: Map register for eSDHC Host Controller V3.0

2013-11-18 Thread Zhang Haijun
Oh, Sorry. I mean http://patchwork.ozlabs.org/bundle/b42677/Need%20review/ . 于 2013/11/18 16:09, Jaehoon Chung 写道: Hi Zhang, I known this patch have been merged at u-boot-mmc repository. Best Regards, Jaehoon Chung On 11/18/2013 02:16 PM, Zhang Haijun wrote: Hi, all Who could help review

Re: [U-Boot] [PATCH 1/2 V2] powerpc/esdhc: Map register for eSDHC Host Controller V3.0

2013-11-18 Thread Zhang Haijun
Many thanks. 于 2013/11/18 20:04, Pantelis Antoniou 写道: Hi Zhang, I'm on travel yet again. Will be back Monday and I'll put my reviewing hat on. Regards -- Pantelis On Nov 18, 2013, at 9:32 AM, Zhang Haijun wrote: Oh, Sorry. I mean http://patchwork.ozlabs.org/bundle/b42677/Nee

Re: [U-Boot] [PATCH V2] mmc:eSDHC: Workaround for data timeout issue on Txxx SoC

2014-04-08 Thread Zhang Haijun
Thanks a lot. BTW, how about other patches? I saw there are patches conflict with mine now. Regards & Thanks -- Haijun On 04/02/2014 06:27 PM, Pantelis Antoniou wrote: Hi Haijun, The patch looks good but it doesn't apply after the mmc changes I've made I've reworked and applied it; On Mar

Re: [U-Boot] [PATCH] p1020rdb-pd: platform support

2013-06-27 Thread Zhang Haijun-B42677
Hi, Scott Sorry to reply to so late. Pls see my reply below. Regards & Thanks Haijun. > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, May 22, 2013 6:24 AM > To: Zhang Haijun-B42677 > Cc: Fleming Andy-AFLEMING; u-boot@lists.denx.de; Huang Changm

Re: [U-Boot] [PATCH] mmc: fsl_esdhc: Fix hang after 'save' command

2013-06-27 Thread Zhang Haijun-B42677
gt; From: Fleming Andy-AFLEMING > Sent: Wednesday, May 29, 2013 3:52 AM > To: Estevam Fabio-R49496 > Cc: Zhang Haijun-B42677; ; ; > ; > Subject: Re: [PATCH] mmc: fsl_esdhc: Fix hang after 'save' command > > > On May 28, 2013, at 1:09 PM, Fabio Estevam wrote: > > &

Re: [U-Boot] [PATCH] p1020rdb-pd: platform support

2013-06-27 Thread Zhang Haijun-B42677
Regards Haijun. > -Original Message- > From: Wood Scott-B07421 > Sent: Friday, June 28, 2013 4:10 AM > To: Zhang Haijun-B42677 > Cc: Wood Scott-B07421; Fleming Andy-AFLEMING; u-boot@lists.denx.de; Huang > Changming-R66093; sun york-R58495 > Subject: Re: [U-Boot

Re: [U-Boot] [PATCH] p1020rdb-pd: platform support

2013-06-27 Thread Zhang Haijun-B42677
Regards Haijun. > -Original Message- > From: Zhang Haijun-B42677 > Sent: Friday, June 28, 2013 9:55 AM > To: Wood Scott-B07421 > Cc: Fleming Andy-AFLEMING; u-boot@lists.denx.de; Huang Changming-R66093; > sun york-R58495 > Subject: RE: [U-Boot] [PATCH] p1020rdb

Re: [U-Boot] [PATCH V2] p1020rdb-pd: platform support

2013-07-10 Thread Zhang Haijun-B42677
Hi, scott I had update this patch. Did I need any other changes? If need let me know. Thanks. Regards Haijun. > -Original Message- > From: Zhang Haijun-B42677 > Sent: Friday, June 28, 2013 10:47 AM > To: Fleming Andy-AFLEMING > Cc: u-boot@lists.denx.de; Zhang Haiju

Re: [U-Boot] [PATCH] Powerpc/esdhc: Correct judgement for DATA PIO mode

2013-05-07 Thread Zhang Haijun-B42677
Oh, sorry I mistaken to git am the patch used internally. Actually there are changes. I'll send patch v2. Regards Haijun. From: Andy Fleming [mailto:aflem...@gmail.com] Sent: Monday, May 06, 2013 11:46 PM To: Zhang Haijun-B42677 Cc: U-Boot list; Fleming Andy-AFLEMING; sun york-R58495 Su