]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: stop clock when 0Hz is requested
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 1 Apr 2016 15:44:35 +0000 (17:44 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:13 +0000 (10:33 +0200)
commit2262d75abd626af4150e91121b0baa7c9789be8c
tree20c2727b24f05c55ccd46a37b35e319956318811
parent1d8f0d1d7be21e2825d565ef11887e10662c42ab
mmc: tmio: stop clock when 0Hz is requested

Setting frequency to 0 is not enough, the clock explicitly has to be
disabled. Otherwise voltage switching (which needs SDCLK to be quiet)
fails for various cards.

Because we now do the 'new_clock == 0' check right at the beginning,
the indentation level of the rest of the code can be decreased a little.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c