mmc: sdhci-esdhc-imx: avoid DMA to kernel stack
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 25 Apr 2014 11:59:00 +0000 (12:59 +0100)
committerChris Ball <chris@printf.net>
Thu, 22 May 2014 11:26:32 +0000 (07:26 -0400)
commit9d2fc80fb15b99736ecd1895934ce4512e76fa3f
treea4d3d16bb8b27dca5d06cd1f7cf136a00caf8132
parent1771059cf5f9c09e37ef6315df8acf120f2642fc
mmc: sdhci-esdhc-imx: avoid DMA to kernel stack

sdhci-esdhc-imx tries to DMA to the kernel stack when tuning the
interface, which causes dma-debug to complain.  Fix this by kmallocing
a buffer to hold the received tuning pattern.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Markus Pargmann <mpa@pengutronix.de>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-esdhc-imx.c