From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 2 Apr 2012 18:34:02 +0200 Subject: [U-Boot] MMC0: DMA transfer failed In-Reply-To: References: <201204021641.07017.marek.vasut@gmail.com> Message-ID: <201204021834.02948.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, > On Mon, Apr 2, 2012 at 11:41 AM, Marek Vasut wrote: > > No, it means I might just have a good card and I didn't notice this. I > > really do need to get some crappy (new) cards to track down these > > issues. Fabio, can you please try debugging this? > > Ok, I am debugging this. > > What do you think about the change below? > > --- a/drivers/mmc/mxsmmc.c > +++ b/drivers/mmc/mxsmmc.c > @@ -191,7 +191,7 @@ mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, > struct else > cache_data_count = data_count; > > - if (data->flags & MMC_DATA_READ) { > + if (data->flags & MMC_DATA_WRITE) { > priv->desc->cmd.data = MXS_DMA_DESC_COMMAND_DMA_WRITE; > priv->desc->cmd.address = (dma_addr_t)data->dest; > } else { > > It doesn't fix this issue, but it seems correct. No it's not, when you do SD READ, you read the data into the dest buffer. Best regards, Marek Vasut