]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ee0cb51b3c8217d7374d397ec69d26d10a4774a
tree5a96b93bbc44d915014f40799f3e38602abc657e
parentc2c6735a6e7ef308c121582118cad0f24f945e21
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