diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-04-22 10:29:26 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-06 07:37:48 -0400 |
commit | b22ffdcd25d67a07f2b5a75a7805826bfe8597f1 (patch) | |
tree | b313cd5576eb22399b3f672315ba208d7dceea19 /drivers/mmc/host/tmio_mmc.h | |
parent | 0e748234293f5f2caa8dbd152caba5efb754c707 (diff) |
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>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index d857f5c6e7d9..759d8f4f130c 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -85,6 +85,7 @@ struct tmio_mmc_host { unsigned long last_req_ts; struct mutex ios_lock; /* protect set_ios() context */ bool native_hotplug; + bool resuming; }; int tmio_mmc_host_probe(struct tmio_mmc_host **host, |