mmc: tmio: Keep generating clock when clock are enabled
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 13 Jun 2018 06:02:55 +0000 (08:02 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 3 Dec 2018 11:51:16 +0000 (12:51 +0100)
commit59d529afdc869b158ccf2b8c6e3b9bdb41becb8b
treed93e9c1d9cbe04b1bd746e7822004be14e85efdb
parent6f8f20f85deeed9be351f8da36f2b38136207063
mmc: tmio: Keep generating clock when clock are enabled

The TMIO core has a feature where it can automatically disable clock output
when the bus is not in use. While this is useful, it also interferes with
switching the bus to 1.8V and other background tasks of the SD/MMC cards,
which require clock to be enabled.

This patch respects the mmc->clk_disable and only disables the clock when
the MMC core requests it. Otherwise the clock are continuously generated
on the bus.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/tmio-common.c