]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: fix a deadlock
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 14 Jul 2011 16:39:10 +0000 (18:39 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:07 +0000 (10:35 -0400)
commit718e485ce3b9b959c6c3474b705766e0825f7d91
tree366ce758f78683291ca7db913276611ffaca00fb
parent45611fa733410e43e66d7a95f8b32b55d5f76160
mmc: tmio: fix a deadlock

Currently the tmio-mmc driver contains a recursive runtime PM method
invocation, which leads to a deadlock on a mutex. Avoid it by taking
care not to request DMA too early.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_dma.c
drivers/mmc/host/tmio_mmc_pio.c