mmc: sdhci-xenon: Fix clock resource by adding an optional bus clock
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 2 Oct 2017 14:58:52 +0000 (16:58 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2017 08:50:36 +0000 (10:50 +0200)
commitbb16ea1742c8f35a9349b7508dc45d3a922db5f5
tree87416834df3b15a64f7d7a9d7d53878cac7602cb
parent0a44697627d17a66d7dc98f17aeca07ca79c5c20
mmc: sdhci-xenon: Fix clock resource by adding an optional bus clock

On Armada 7K/8K we need to explicitly enable the bus clock. The bus clock
is optional because not all the SoCs need them but at least for Armada
7K/8K it is actually mandatory.

The binding documentation is updating accordingly.

Without this patch the kernel hand during boot if the mvpp2.2 network
driver was not present in the kernel. Indeed the clock needed by the
xenon controller was set by the network driver.

Fixes: 3a3748dba881 ("mmc: sdhci-xenon: Add Marvell Xenon SDHC core
functionality)"
CC: Stable <stable@vger.kernel.org>
Tested-by: Zhoujie Wu <zjwu@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.txt
drivers/mmc/host/sdhci-xenon.c
drivers/mmc/host/sdhci-xenon.h