mmc: sh_mmcif: re-read the clock frequency every time it is turned on
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 19 Apr 2012 16:02:50 +0000 (18:02 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:14 +0000 (00:02 -0400)
commita6609267107ecc5598b79aa353036c1f57e7257e
tree15b29b3bde658c73f0a1c3d1fab944042ad83a38
parentb289174ff70a591545a054d52ae081a75a73f085
mmc: sh_mmcif: re-read the clock frequency every time it is turned on

With aggressive clock gating the clock can be disabled during interface
inactivity. During this time its frequency can be changed by another its
user. Therefore when the interface is activated again and the clock is
re-enabled, its frequency has to be re-read.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c