mmc: fix mmc_app_send_scr() for dma transfer
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 25 Mar 2011 06:06:19 +0000 (15:06 +0900)
committerChris Ball <cjb@laptop.org>
Fri, 25 Mar 2011 14:30:50 +0000 (10:30 -0400)
This patch is based on the commit "af51715079e7fb6b290e1881d63d815dc4de5011":

   * Bugfix to that mmc_send_cxd_data() code:  dma-to-stack is
     unsafe/nonportable, so kmalloc a bounce buffer instead.

The driver may invalidate the mmc_card->csd when host driver uses dma.
So this subroutine also needs a kmalloc buffer.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found