summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2026-09-24 16:50:22 +0800
committerUlf Hansson <ulfh@kernel.org>2026-09-29 12:44:37 +0200
commitccf7f7a9a4fef14958fdcf19c37955144f2f25d9 (patch)
tree34f2c0bb28f8cad1c7dc65adb51b21b95de3b20e /include/linux
parent7e355997ddeac0dc76cb3d0e2cd497758c96500e (diff)
mmc: core: add mmc_send_tuning_timeout()
Add mmc_send_tuning_timeout() which takes the data timeout in milliseconds, and turn mmc_send_tuning() into a thin wrapper keeping the current 150 ms, so there is no behaviour change for the existing callers. This lets drivers pass a tighter timeout for software tuning, e.g. hosts which scan the tuning window phase by phase. Suggested-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 198554e48346..032c018650e0 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -753,6 +753,8 @@ static inline int mmc_card_uhs2_hd_mode(struct mmc_host *host)
int mmc_sd_switch(struct mmc_card *card, bool mode, int group,
u8 value, u8 *resp);
int mmc_send_status(struct mmc_card *card, u32 *status);
+int mmc_send_tuning_timeout(struct mmc_host *host, u32 opcode, int *cmd_error,
+ u32 timeout_ms);
int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);
int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);