mmc: core: Move mmc bkops functions from core.c to mmc_ops.c
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 9 Jun 2017 12:15:01 +0000 (14:15 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:43 +0000 (10:30 +0200)
commit1cf8f7e5af3910781a21b84f13a34851aa228fe3
treef062fa75f4aad61bf12b642e0780e45e3bc3e81b
parent066d9cc546c20e5f4f3c3c4ca08c107506728dcb
mmc: core: Move mmc bkops functions from core.c to mmc_ops.c

The mmc_start_bkops(), mmc_stop_bkops() and mmc_read_bkops_status()
functions are all specific to eMMCs. To make this clear, let's move them
from from core.c to mmc_ops.c and take the opportunity to make
mmc_read_bkops_status() static.

While moving them, get rid of MMC_BKOPS_MAX_TIMEOUT (4 min) and use the
common default timeout MMC_OPS_TIMEOUT_MS (10 min) instead, as there is no
need to have specific default timeout for bkops.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/core.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h