From: Ira Snyder Date: Fri, 23 Dec 2011 08:30:40 +0000 (+0000) Subject: fsl_esdhc: fix PIO mode transfers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8eee2bd7f484c4933c4e3112c3c3db886ac945ca;p=project%2Fbcm63xx%2Fu-boot.git fsl_esdhc: fix PIO mode transfers The pointer to the registers used to control the Freescale ESDHC MMC controller is not initialized correctly when using PIO mode. This is fixed by initializing the pointer in the same way as all other sites within the driver. Examining the commit history shows that this was broken at introduction due to a code change in upstream U-Boot to support the mx51 processor family. Reported-by: Jim Lentz Cc: Andy Fleming Cc: Kumar Gala Signed-off-by: Ira W. Snyder --- diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 1ed53559b3..a2f35e3e99 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -114,7 +114,8 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) static void esdhc_pio_read_write(struct mmc *mmc, struct mmc_data *data) { - struct fsl_esdhc *regs = mmc->priv; + struct fsl_esdhc_cfg *cfg = mmc->priv; + struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base; uint blocks; char *buffer; uint databuf;