]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: atmel-mci: fix incorrect setting of host->data to NULL
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 6 Jul 2012 09:58:33 +0000 (11:58 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:50 +0000 (15:25 -0400)
commitaa35c0a44feb4be4155e717b94b51b92cac3e245
tree5836b9416b754efaa52b6e6f65fc72140563fb01
parentdd2300321c937696e2f7c1032f40d5ff0c6e4987
mmc: atmel-mci: fix incorrect setting of host->data to NULL

Setting host->data to NULL is incorrect sequence in STATE_SENDING_STOP
state of FSM: This early setting leads to the skip of dma_unmap_sg()
in atmci_dma_cleanup() which is a bug.

Idea taken from dw_mmc by Seungwon Jeon.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c