mmc: core: Clarify code which deals with polling in __mmc_switch()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Oct 2016 09:35:12 +0000 (11:35 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:00:33 +0000 (09:00 +0100)
commitcb26ce069ffa87a1d237d0288176aac8ff79bffa
treebb3ed1b647e86c598e964170f71ed030a6fab4a4
parent20348d1981da783d125c8265ce2ba7e3f2a24103
mmc: core: Clarify code which deals with polling in __mmc_switch()

The __mmc_switch() deserves a clean-up. In this step, let's move some code
outside of the do-while loop, which deal deals with the card busy polling.

This change simplifies the code in that sense that it becomes easier to follow
what is being executed during card busy polling, but it also gives a better
understanding for when polling isn't done.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/core/mmc_ops.c