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)
commit4f665cb614b8a258b507cc47753dd3f7dd45aac6
tree6a9b8de5326c60c05d96d98b4f55e2cf3d090fed
parent58ac8177cebb890ba980cdace36457e0fe1e62af
mmc: fix mmc_app_send_scr() for dma transfer

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>
drivers/mmc/core/sd_ops.c