mmc: tmio: postpone controller reset during resume
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 22 Apr 2013 08:29:26 +0000 (10:29 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 6 Jun 2013 11:37:48 +0000 (07:37 -0400)
commitb22ffdcd25d67a07f2b5a75a7805826bfe8597f1
treeb313cd5576eb22399b3f672315ba208d7dceea19
parent0e748234293f5f2caa8dbd152caba5efb754c707
mmc: tmio: postpone controller reset during resume

When resuming, the tmio_mmc_host_resume() function is run when the
controller might still be powered down. Issuing a reset command to it at
that time has no effect. This patch postpones resetting the controller
until the first powering-up .set_ios() call.

Reported-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c