Skip to content

Commit c376ea9

Browse files
huzijistorulf
authored andcommitted
mmc: sdhci: Export sdhci_start_signal_voltage_switch() in sdhci.c
Export sdhci_start_signal_voltage_switch() from sdhci.c. Thus vendor sdhci driver can implement its own signal voltage switch routine. Signed-off-by: Hu Ziji <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]> Acked-by: Adrian Hunter <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 6a6d4ce commit c376ea9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/mmc/host/sdhci.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,8 +1853,8 @@ static void sdhci_enable_sdio_irq(struct mmc_host *mmc, int enable)
18531853
pm_runtime_put_noidle(host->mmc->parent);
18541854
}
18551855

1856-
static int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
1857-
struct mmc_ios *ios)
1856+
int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
1857+
struct mmc_ios *ios)
18581858
{
18591859
struct sdhci_host *host = mmc_priv(mmc);
18601860
u16 ctrl;
@@ -1946,6 +1946,7 @@ static int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
19461946
return 0;
19471947
}
19481948
}
1949+
EXPORT_SYMBOL_GPL(sdhci_start_signal_voltage_switch);
19491950

19501951
static int sdhci_card_busy(struct mmc_host *mmc)
19511952
{

drivers/mmc/host/sdhci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ void sdhci_reset(struct sdhci_host *host, u8 mask);
704704
void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing);
705705
int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode);
706706
void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios);
707+
int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
708+
struct mmc_ios *ios);
707709

708710
#ifdef CONFIG_PM
709711
int sdhci_suspend_host(struct sdhci_host *host);

0 commit comments

Comments
 (0)