[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250324092240.2230955-1-ziniu.wang_1@nxp.com>
Date: Mon, 24 Mar 2025 17:22:40 +0800
From: ziniu.wang_1@....com
To: adrian.hunter@...el.com,
ulf.hansson@...aro.org,
haibo.chen@....com
Cc: shawnguo@...nel.org,
s.hauer@...gutronix.de,
kernel@...gutronix.de,
festevam@...il.com,
imx@...ts.linux.dev,
linux-mmc@...r.kernel.org,
s32@....com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] mmc: sdhci: convert sdhci_calc_timeout() to non-static
From: Luke Wang <ziniu.wang_1@....com>
Export sdhci_calc_timeout() so that it is accessible from platform drivers.
Signed-off-by: Luke Wang <ziniu.wang_1@....com>
---
drivers/mmc/host/sdhci.c | 5 +++--
drivers/mmc/host/sdhci.h | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 5f91b44891f9..ec99616cc51e 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -966,8 +966,8 @@ static void sdhci_calc_sw_timeout(struct sdhci_host *host,
host->data_timeout += MMC_CMD_TRANSFER_TIME;
}
-static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
- bool *too_big)
+u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
+ bool *too_big)
{
u8 count;
struct mmc_data *data;
@@ -1023,6 +1023,7 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
return count;
}
+EXPORT_SYMBOL_GPL(sdhci_calc_timeout);
static void sdhci_set_transfer_irqs(struct sdhci_host *host)
{
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index cd0e35a80542..71a48899c29b 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -897,5 +897,7 @@ void sdhci_abort_tuning(struct sdhci_host *host, u32 opcode);
void sdhci_switch_external_dma(struct sdhci_host *host, bool en);
void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable);
void __sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd);
+u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
+ bool *too_big);
#endif /* __SDHCI_HW_H */
--
2.34.1
Powered by blists - more mailing lists