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)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:48 +0000 (15:36 -0500)
commit755d6997f5778d4a22ac04d828f1d2979f6ea75f
treed32c5e53cb5b582ad7c7fc511007d773358d2a45
parent90e68de651561702e4ed5b4d6c5f96bbd7553a78
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>
(cherry picked from commit cb26ce069ffa87a1d237d0288176aac8ff79bffa)

Conflicts:
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.c