Skip to content

Commit 21adc2e

Browse files
Wolfram SangUlf Hansson
authored andcommitted
mmc: Improve function name when aborting a tuning cmd
'mmc_abort_tuning()' made me think tuning gets completely aborted. However, it sends only a STOP cmd to cancel the current tuning cmd. Tuning process may still continue after that. So, rename the function to 'mmc_send_abort_tuning()' to better reflect all this. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20210608180620.40059-1-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent a7ab186 commit 21adc2e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/mmc/core/mmc_ops.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error)
700700
}
701701
EXPORT_SYMBOL_GPL(mmc_send_tuning);
702702

703-
int mmc_abort_tuning(struct mmc_host *host, u32 opcode)
703+
int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode)
704704
{
705705
struct mmc_command cmd = {};
706706

@@ -723,7 +723,7 @@ int mmc_abort_tuning(struct mmc_host *host, u32 opcode)
723723

724724
return mmc_wait_for_cmd(host, &cmd, 0);
725725
}
726-
EXPORT_SYMBOL_GPL(mmc_abort_tuning);
726+
EXPORT_SYMBOL_GPL(mmc_send_abort_tuning);
727727

728728
static int
729729
mmc_send_bus_test(struct mmc_card *card, struct mmc_host *host, u8 opcode,

‎drivers/mmc/host/renesas_sdhi_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int renesas_sdhi_execute_tuning(struct mmc_host *mmc, u32 opcode)
704704
set_bit(i, priv->smpcmp);
705705

706706
if (cmd_error)
707-
mmc_abort_tuning(mmc, opcode);
707+
mmc_send_abort_tuning(mmc, opcode);
708708
}
709709

710710
ret = renesas_sdhi_select_tuning(host);

‎drivers/mmc/host/sdhci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,7 @@ void sdhci_abort_tuning(struct sdhci_host *host, u32 opcode)
26802680

26812681
sdhci_end_tuning(host);
26822682

2683-
mmc_abort_tuning(host->mmc, opcode);
2683+
mmc_send_abort_tuning(host->mmc, opcode);
26842684
}
26852685
EXPORT_SYMBOL_GPL(sdhci_abort_tuning);
26862686

‎include/linux/mmc/host.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,6 @@ static inline enum dma_data_direction mmc_get_dma_dir(struct mmc_data *data)
632632
}
633633

634634
int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
635-
int mmc_abort_tuning(struct mmc_host *host, u32 opcode);
635+
int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);
636636

637637
#endif /* LINUX_MMC_HOST_H */

0 commit comments

Comments
 (0)