]> 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)
commitb98a425bee744b2921099803fbf31ddf56bc8e42
treebb3ed1b647e86c598e964170f71ed030a6fab4a4
parent2113fe826a6b1efc0e4eda969893df83eb9ad8a5
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