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)
commit162f43e31c5a376ec16336e5d0ac973373d54c89
tree366ce758f78683291ca7db913276611ffaca00fb
parent332bdb506f800d177f6657247347a253dd5b5be8
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