diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-12-10 17:52:40 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-12-17 09:01:15 +0100 |
commit | 0c204979c691f05666ecfb74501e7adfdde8fbf9 (patch) | |
tree | 3eac91da57011564921b9af18c4a709e64dfba32 /drivers/mmc/core/mmc.c | |
parent | 1217e61544922ab649fe4df94e2f272c01c159ea (diff) | |
download | linux-0c204979c691f05666ecfb74501e7adfdde8fbf9.tar.gz linux-0c204979c691f05666ecfb74501e7adfdde8fbf9.tar.bz2 linux-0c204979c691f05666ecfb74501e7adfdde8fbf9.zip |
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>
Diffstat (limited to 'drivers/mmc/core/mmc.c')
-rw-r--r-- | drivers/mmc/core/mmc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 2510cebd670f..da892a599524 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -2014,12 +2014,6 @@ static int _mmc_suspend(struct mmc_host *host, bool is_suspend) if (mmc_card_suspended(host->card)) goto out; - if (mmc_card_doing_bkops(host->card)) { - err = mmc_stop_bkops(host->card); - if (err) - goto out; - } - err = mmc_flush_cache(host->card); if (err) goto out; |