mmc: sdio: Check the return value of sdio_enable_4bit_bus
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 27 Feb 2018 01:26:34 +0000 (09:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Mar 2018 08:32:30 +0000 (09:32 +0100)
commit1e178270dfcf2b576b0060b382836219dcda83b5
tree319b1f555e42f39567428d72b7130633b94cb273
parentd6743a8a1ae38269a41094ad14d7ef86199f661d
mmc: sdio: Check the return value of sdio_enable_4bit_bus

Since we could move card->host->caps & MMC_CAP_4_BIT_DATA
ahead of mmc_sdio_init_uhs_card, in mmc_host_uhs(). So there
we could save this bit to check that. Also, if the process of
sdio_enable_4bit_bus goes wrong, we should bails out early.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio.c