mmc: core: improve reasonableness of bus width setting for HS400es
authorHongjie Fang <hongjiefang@asrmicro.com>
Tue, 31 Jul 2018 02:55:09 +0000 (10:55 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Aug 2018 12:15:28 +0000 (14:15 +0200)
commit7f38abf220e2c800a2c451372e9f07ed5fd0ea49
treefdfe43cced74182aef89d10e27079cd869ace5f5
parente401bfdadd2dc0f59bf76220236285130f072190
mmc: core: improve reasonableness of bus width setting for HS400es

mmc_select_hs400es() calls mmc_select_bus_width() which will continue
to set 4bit transfer mode if fail to set 8bit mode. The bus width
should not be set to 4bit in HS400es.

When fail to set 8bit mode, need return error directly for HS400es.

Signed-off-by: Hongjie Fang <hongjiefang@asrmicro.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c