From: Guennadi Liakhovetski Date: Thu, 6 Jun 2013 14:35:44 +0000 (+0200) Subject: mmc: tmio: fix unbalanced power-on calls with clock-gating enabled X-Git-Tag: v3.11-rc1~50^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83b7a8acc420923cbe8a30901d9eb60677f54fb;p=pandora-kernel.git mmc: tmio: fix unbalanced power-on calls with clock-gating enabled With MMC clock gating enabled the MMC core currently calls MMC host driver's .set_ios() method with .power_mode == MMC_POWER_ON and the clock value set either to 0 or to the target rate. The tmio MMC driver then wrongly translates the latter calls to card slot power-on requests, even when the slot already was on. This patch fixes the driver to avoid needlessly incrementing power-supplying regulator's use count. Signed-off-by: Guennadi Liakhovetski Tested-by: Laurent Pinchart Signed-off-by: Chris Ball --- Reading git-diff-tree failed