]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit281244ab8c9867e10cad0323eff3935671242bff
treebb3ed1b647e86c598e964170f71ed030a6fab4a4
parent4dfbda2eb331dc167c62fa516baf756fa2a91ed3
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