summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-12 23:29:35 +0200
committerChris Ball <cjb@laptop.org>2012-07-21 00:02:07 -0400
commit6de707f200f73af7a58b58b3a5b956cff7b6e228 (patch)
tree6b4c98cbf5720e2acd5e2cd0958043434aa000ea /ipc
parent7541ca98477862e2e9988c6c2ceadbdccefa9d77 (diff)
downloadlinux-3.10-6de707f200f73af7a58b58b3a5b956cff7b6e228.tar.gz
linux-3.10-6de707f200f73af7a58b58b3a5b956cff7b6e228.tar.bz2
linux-3.10-6de707f200f73af7a58b58b3a5b956cff7b6e228.zip
mmc: tmio: Don't access hardware registers after stopping clocks
The tmio_mmc_set_ios() function configures the MMC power, clock and bus width. When the mmc core requests the driver to power off the card, we inform runtime PM, that the controller can be suspended. This can lead to the MSTP clock being turned off. Writing to any 16-bit hardware registers with the MSTP clock off leads to timeouts and errors being printed to the kernel log. This can occur both when stopping the MMC clock and when configuring the bus width. To fix this, stop the MMC clock before calling put_runtime_pm(), and skip bus width configuration when power is off. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Simon Horman <horms@verge.net.au> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions