
On Mon, Apr 2, 2012 at 11:41 AM, Marek Vasut marek.vasut@gmail.com 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.