mmc: meson-gx: improve initial configuration
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 4 Mar 2017 12:35:13 +0000 (13:35 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:11 +0000 (21:41 +0200)
commitc01d1219ace5768c18eb33f28d06937819f65b13
tree5a96b93bbc44d915014f40799f3e38602abc657e
parent7b9ebad38fe64644714826966c9a164d90d1c408
mmc: meson-gx: improve initial configuration

Config values which are not changed during runtime we can set
in the probe function already.
The block size setting is overwritten later in
meson_mmc_start_cmd anyway if needed, so it doesn't harm if we
remove this setting in meson_mmc_set_ios.

In addition write config register only if configuration changed.

Don't change the location of clock initialization as in an
earlier version of the patch, this change causes a hang.
This issue was reported and fix suggested by:
Helmut Klein <hgkr.klein@gmail.com>

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c