@@ -1099,6 +1099,7 @@ void mmc_set_bus_width(struct mmc_host *host, unsigned int width)
mmc_set_ios(host);
mmc_host_clk_release(host);
}
+EXPORT_SYMBOL(mmc_set_bus_width);
/*
* Set initial state after a power cycle or a hw_reset.
@@ -257,7 +257,7 @@ static int sdio_disable_cd(struct mmc_card *card)
* Devices that remain active during a system suspend are
* put back into 1-bit mode.
*/
-static int sdio_disable_wide(struct mmc_card *card)
+int sdio_disable_wide(struct mmc_card *card)
{
int ret;
u8 ctrl;
@@ -286,9 +286,9 @@ static int sdio_disable_wide(struct mmc_card *card)
return 0;
}
+EXPORT_SYMBOL(sdio_disable_wide);
-
-static int sdio_enable_4bit_bus(struct mmc_card *card)
+int sdio_enable_4bit_bus(struct mmc_card *card)
{
int err;
@@ -309,7 +309,7 @@ static int sdio_enable_4bit_bus(struct mmc_card *card)
return err;
}
-
+EXPORT_SYMBOL(sdio_enable_4bit_bus);
/*
* Test if the card supports high-speed mode and, if so, switch to it.
@@ -517,4 +517,8 @@ static inline bool mmc_card_hs400(struct mmc_card *card)
return card->host->ios.timing == MMC_TIMING_MMC_HS400;
}
+int sdio_disable_wide(struct mmc_card *card);
+int sdio_enable_4bit_bus(struct mmc_card *card);
+void mmc_set_bus_width(struct mmc_host *host, unsigned int width);
+
#endif /* LINUX_MMC_HOST_H */
It is not safe for a host to turn off clocks while expecting an SD card interrupt unless it first places the bus in 1-bit mode. To allow hosts to do this, export functions necessary for changing bus width. Signed-off-by: NeilBrown <neil@brown.name> --- drivers/mmc/core/core.c | 1 + drivers/mmc/core/sdio.c | 8 ++++---- include/linux/mmc/host.h | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html