mmc: core: Cleanup BKOPS support
commit0c204979c691f05666ecfb74501e7adfdde8fbf9
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Dec 2018 16:52:40 +0000 (10 17:52 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 08:01:15 +0000 (17 09:01 +0100)
tree3eac91da57011564921b9af18c4a709e64dfba32
parent1217e61544922ab649fe4df94e2f272c01c159ea
mmc: core: Cleanup BKOPS support

It's been ~6 years ago since we introduced the BKOPS support for eMMC
cards. The current code is a bit messy and primarily that's because it
prepares to support running BKOPS in an asynchronous mode. However, that
mode has never been fully implemented/enabled. Instead BKOPS is always
executed in synchronously, when the card has reported an urgent BKOPS
level.

For these reasons, let's make the code more readable by dropping the unused
parts. Let's also rename mmc_start_bkops() to mmc_run_bkops(), as to make
it more descriptive.

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