| From a0295db39f0cffc3635c1a91499f7ecc6ebef4c2 Mon Sep 17 00:00:00 2001 |
| From: Faiz Abbas <faiz_abbas@ti.com> |
| Date: Thu, 16 Jan 2020 16:21:49 +0530 |
| Subject: [PATCH] mmc: sdhci: Convert sdhci_set_timeout_irq() to non-static |
| |
| commit 7907ebe741a7f14ed12889ebe770438a4ff47613 upstream. |
| |
| Export sdhci_set_timeout_irq() so that it is accessible from platform drivers. |
| |
| Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> |
| Acked-by: Adrian Hunter <adrian.hunter@intel.com> |
| Link: https://lore.kernel.org/r/20200116105154.7685-6-faiz_abbas@ti.com |
| Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c |
| index c2c4ff2d63f8..599abc124682 100644 |
| --- a/drivers/mmc/host/sdhci.c |
| +++ b/drivers/mmc/host/sdhci.c |
| @@ -977,7 +977,7 @@ static void sdhci_set_transfer_irqs(struct sdhci_host *host) |
| sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); |
| } |
| |
| -static void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable) |
| +void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable) |
| { |
| if (enable) |
| host->ier |= SDHCI_INT_DATA_TIMEOUT; |
| @@ -986,6 +986,7 @@ static void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable) |
| sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); |
| sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); |
| } |
| +EXPORT_SYMBOL_GPL(sdhci_set_data_timeout_irq); |
| |
| static void sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) |
| { |
| diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h |
| index 1a506672bea8..6e2c7c5ae818 100644 |
| --- a/drivers/mmc/host/sdhci.h |
| +++ b/drivers/mmc/host/sdhci.h |
| @@ -799,5 +799,6 @@ void sdhci_start_tuning(struct sdhci_host *host); |
| void sdhci_end_tuning(struct sdhci_host *host); |
| void sdhci_reset_tuning(struct sdhci_host *host); |
| void sdhci_send_tuning(struct sdhci_host *host, u32 opcode); |
| +void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable); |
| |
| #endif /* __SDHCI_HW_H */ |
| -- |
| 2.7.4 |
| |