]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: stop trying to switch width when only one bit is supported
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 17 Dec 2014 18:32:06 +0000 (19:32 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Dec 2014 13:49:28 +0000 (14:49 +0100)
commit60530259939ec7663612c46c0111a758eb53ebb1
treeb6ba8f25be8afaf93ae1cecb3f57ff6f56840ba5
parentbfa6fa2a2dfa997f6c80e35808e50464ecfebcda
mmc: core: stop trying to switch width when only one bit is supported

mmc_select_bus_width() will try to switch to MMC_BUS_WIDTH_4 even if
MMC_CAP_4_BIT_DATA and MMC_CAP_8_BIT_DATA are not set in host->caps.
Return as soon as possible when those flags are not set

Fixes: c452d4d84d84 (mmc: rework selection of bus speed mode)
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: <stable@vger.kernel.org> # 3.17
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c