mmc: tmio: reset the controller after power-up
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 6 Jun 2013 14:35:48 +0000 (16:35 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 6 Jun 2013 15:48:14 +0000 (11:48 -0400)
commitb9ec2744128d0940342b236e9018614ba8848118
tree6c3af6dedf03955f6f584364e7ac57288d6105c4
parente83b7a8acc420923cbe8a30901d9eb60677f54fb
mmc: tmio: reset the controller after power-up

This fixes two reported problems:
1. after a system resume the controller isn't functioning until a command
   runs on a timeout and a controller reset is performed.
2. if a card is ejected during a running write operation, its re-insertion
   isn't detected.

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