@@ -4022,7 +4022,7 @@ struct sdhci_host *sdhci_alloc_host(struct device *dev,
EXPORT_SYMBOL_GPL(sdhci_alloc_host);
-static int sdhci_set_dma_mask(struct sdhci_host *host)
+int sdhci_set_dma_mask(struct sdhci_host *host)
{
struct mmc_host *mmc = host->mmc;
struct device *dev = mmc_dev(mmc);
@@ -4051,6 +4051,7 @@ static int sdhci_set_dma_mask(struct sdhci_host *host)
return ret;
}
+EXPORT_SYMBOL_GPL(sdhci_set_dma_mask);
void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver,
const u32 *caps, const u32 *caps1)
@@ -815,4 +815,6 @@ 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);
+int sdhci_set_dma_mask(struct sdhci_host *host);
+
#endif /* __SDHCI_HW_H */
Particularly it is needed for xenon-sdhci which uses set_dma_mask callback to fixup the DMA settings for AC5 SoC. Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu> --- v3: #1 Fix missing EXPORT_SYMBOL_GPL for sdhci_set_dma_mask drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)