fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need to be set to ABORT, otherwise, next read command will hang.
This is a software Software Restrictions in i.MX53 reference manual:
29.7.8 Multi-block Read
For pre-defined multi-block read operation, that is,the number of blocks to read has been defined by previous CMD23 for MMC, or pre-defined number of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without abort command at card side, an abort command, either automatic or manual CMD12/CMD52, is still required by ESDHC after the pre-defined number of blocks are done, to drive the internal state machine to idle mode. In this case, the card may not respond to this extra abort command and ESDHC will get Response Timeout. It is recommended to manually send an abort command with RSPTYP[1:0] both bits cleared.
--- drivers/mmc/fsl_esdhc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/mmc/fsl_esdhc.c +4 -0
@@ -99,6 +99,10 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)else if (cmd->resp_type &MMC_RSP_PRESENT ) xfertyp |=XFERTYP_RSPTYP_48 ; +#ifdef CONFIG_MX53 +if (cmd->cmdidx ==MMC_CMD_STOP_TRANSMISSION ) + xfertyp |=XFERTYP_CMDTYP_ABORT ; +#endif return XFERTYP_CMD (cmd->cmdidx) | xfertyp; }
Signature · 1 line
1.7.1
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
Hi, Kumar Gala
2011/3/22 Jason Liu <[email protected]>:
Quoted 26 lines
For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need to be set to ABORT, otherwise, next read command will hang.
This is a software Software Restrictions in i.MX53 reference manual:
29.7.8 Multi-block Read
For pre-defined multi-block read operation, that is,the number of blocks to read has been defined by previous CMD23 for MMC, or pre-defined number of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without abort command at card side, an abort command, either automatic or manual CMD12/CMD52, is still required by ESDHC after the pre-defined number of blocks are done, to drive the internal state machine to idle mode. In this case, the card may not respond to this extra abort command and ESDHC will get Response Timeout. ?It is recommended to manually send an abort command with RSPTYP[1:0] both bits cleared.Signed-off-by Jason Liu <[email protected]>---
?drivers/mmc/fsl_esdhc.c | ? ?4 ++++
?1 files changed, 4 insertions(+), 0 deletions(-)drivers/mmc/fsl_esdhc.c +0
-0
drivers/mmc/fsl_esdhc.c uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) · line 107
Quoted 9 lines
drivers/mmc/fsl_esdhc.c +4
-0@@ -99,6 +99,10 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) ? ? ? ?else if (cmd->resp_type & MMC_RSP_PRESENT) ? ? ? ? ? ? ? ?xfertyp |= XFERTYP_RSPTYP_48; +#ifdef CONFIG_MX53 + ? ? ? if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) + ? ? ? ? ? ? ? xfertyp |= XFERTYP_CMDTYP_ABORT; +#endif ? ? ? ?return XFERTYP_CMD(cmd->cmdidx) | xfertyp; ?}
Ping, Any comments?
Quoted 9 lines
drivers/mmc/fsl_esdhc.c +0
-1--1.7.1
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
Quoted 32 lines · Jason Liu
Hi, Kumar Gala
2011/3/22 Jason Liu <[email protected]>:
Quoted 29 lines
For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need to be set to ABORT, otherwise, next read command will hang.
This is a software Software Restrictions in i.MX53 reference manual:
29.7.8 Multi-block Read
For pre-defined multi-block read operation, that is,the number of blocks to read has been defined by previous CMD23 for MMC, or pre-defined number of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without abort command at card side, an abort command, either automatic or manual CMD12/CMD52, is still required by ESDHC after the pre-defined number of blocks are done, to drive the internal state machine to idle mode. In this case, the card may not respond to this extra abort command and ESDHC will get Response Timeout. It is recommended to manually send an abort command with RSPTYP[1:0] both bits cleared.Signed-off-by Jason Liu <[email protected]>--- drivers/mmc/fsl_esdhc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)drivers/mmc/fsl_esdhc.c +0
-0@@ -99,6 +99,10 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)else if (cmd->resp_type &MMC_RSP_PRESENT ) xfertyp |=XFERTYP_RSPTYP_48 ;
Quoted 8 lines
drivers/mmc/fsl_esdhc.c uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) · line 107
Quoted 6 lines
drivers/mmc/fsl_esdhc.c +4
-0+#ifdef CONFIG_MX53 +if (cmd->cmdidx ==MMC_CMD_STOP_TRANSMISSION ) + xfertyp |=XFERTYP_CMDTYP_ABORT ; +#endif return XFERTYP_CMD (cmd->cmdidx) | xfertyp; }Ping, Any comments?
No issues as this is protected with a CONFIG_MX53 so will not impact an PPC SoCs
- k
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
2011/4/11 Kumar Gala <[email protected]>:
Quoted 44 lines · Jason Liu
Quoted 33 lines
Hi, Kumar Gala
2011/3/22 Jason Liu <[email protected]>:
Quoted 29 lines
For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need to be set to ABORT, otherwise, next read command will hang.
This is a software Software Restrictions in i.MX53 reference manual:
29.7.8 Multi-block Read
For pre-defined multi-block read operation, that is,the number of blocks to read has been defined by previous CMD23 for MMC, or pre-defined number of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without abort command at card side, an abort command, either automatic or manual CMD12/CMD52, is still required by ESDHC after the pre-defined number of blocks are done, to drive the internal state machine to idle mode. In this case, the card may not respond to this extra abort command and ESDHC will get Response Timeout. ?It is recommended to manually send an abort command with RSPTYP[1:0] both bits cleared.Signed-off-by Jason Liu <[email protected]>---
?drivers/mmc/fsl_esdhc.c | ? ?4 ++++
?1 files changed, 4 insertions(+), 0 deletions(-)drivers/mmc/fsl_esdhc.c +0
-0@@ -99,6 +99,10 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) ? ? ? ?else if (cmd->resp_type & MMC_RSP_PRESENT) ? ? ? ? ? ? ? ?xfertyp |= XFERTYP_RSPTYP_48;Quoted 8 lines
drivers/mmc/fsl_esdhc.c uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) · line 107
Quoted 6 lines
drivers/mmc/fsl_esdhc.c +4
-0+#ifdef CONFIG_MX53 + ? ? ? if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) + ? ? ? ? ? ? ? xfertyp |= XFERTYP_CMDTYP_ABORT; +#endif ? ? ? ?return XFERTYP_CMD(cmd->cmdidx) | xfertyp; ?}Ping, Any comments?
Quoted 1 line
No issues as this is protected with a
CONFIG_MX53so will not impact an PPC SoCs
Thanks. Kumar,
Who will pick up this patch?
Jason
Quoted 2 lines
- k
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
Dear Jason Liu,
Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/mmc/fsl_esdhc.c +0
-0
...
Quoted 2 lines
Who will pick up this patch?
It's MMC code, so that would be MMC custodian.
Maybe you should put the responsible custodian on Cc.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All men should freely use those seven words which have the power to make any marriage run smoothly: You know dear, you may be right.
PATCH 1/1 fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
Hi, Wolfgang,
2011/4/11 Wolfgang Denk <[email protected]>:
Quoted 11 lines
Dear Jason Liu,
Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/mmc/fsl_esdhc.c +0
-0...
Quoted 2 lines
Who will pick up this patch?
It's MMC code, so that would be MMC custodian.