]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: tmio: give callback a generic name
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 29 Jan 2020 20:37:06 +0000 (21:37 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:38 +0000 (14:35 +0100)
check_scc_error() is too Renesas specific. Let's just call it
check_retune() to make it also easier understandable what it does.
Only a rename, no functional change.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20200129203709.30493-4-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_core.c

index d63aeb35bd0b38a458e9fdfdb2393ec925636e94..24ee8ac1fe218f613643c70d83c3cd12c9a3d04f 100644 (file)
@@ -899,7 +899,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
 
                host->execute_tuning = renesas_sdhi_execute_tuning;
                host->select_tuning = renesas_sdhi_select_tuning;
-               host->check_scc_error = renesas_sdhi_check_scc_error;
+               host->check_retune = renesas_sdhi_check_scc_error;
                host->prepare_hs400_tuning =
                        renesas_sdhi_prepare_hs400_tuning;
                host->hs400_downgrade = renesas_sdhi_disable_scc;
index bfebbe368f021cc0ab905fc483495ba669886858..bdb9973981ffcde318fb6912aebfb7f099b01a05 100644 (file)
@@ -176,7 +176,7 @@ struct tmio_mmc_host {
        int (*write16_hook)(struct tmio_mmc_host *host, int addr);
        void (*reset)(struct tmio_mmc_host *host);
        void (*hw_reset)(struct tmio_mmc_host *host);
-       bool (*check_scc_error)(struct tmio_mmc_host *host);
+       bool (*check_retune)(struct tmio_mmc_host *host);
 
        /*
         * Mandatory callback for tuning to occur which is optional for SDR50
index 9108247d8c1413f667944e571e12fa2f4ce469b3..9bb58c5b67689e787627a5a57fe4bdd95a7a5340 100644 (file)
@@ -818,8 +818,8 @@ static void tmio_mmc_finish_request(struct tmio_mmc_host *host)
        if (mrq->cmd->error || (mrq->data && mrq->data->error))
                tmio_mmc_abort_dma(host);
 
-       /* SCC error means retune, but executed command was still successful */
-       if (host->check_scc_error && host->check_scc_error(host))
+       /* Error means retune, but executed command was still successful */
+       if (host->check_retune && host->check_retune(host))
                mmc_retune_needed(host->mmc);
 
        /* If SET_BLOCK_COUNT, continue with main command */