Loading drivers/mmc/core/core.c +12 −0 Original line number Diff line number Diff line Loading @@ -4360,6 +4360,18 @@ int mmc_detect_card_removed(struct mmc_host *host) } EXPORT_SYMBOL(mmc_detect_card_removed); /* * This should be called to make sure that detect work(mmc_rescan) * is completed.Drivers may use this function from async schedule/probe * contexts to make sure that the bootdevice detection is completed on * completion of async_schedule. */ void mmc_flush_detect_work(struct mmc_host *host) { flush_delayed_work(&host->detect); } EXPORT_SYMBOL(mmc_flush_detect_work); void mmc_rescan(struct work_struct *work) { unsigned long flags; Loading include/linux/mmc/core.h +1 −0 Original line number Diff line number Diff line Loading @@ -180,6 +180,7 @@ extern int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error); extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd); extern int mmc_set_auto_bkops(struct mmc_card *card, bool enable); extern int mmc_suspend_clk_scaling(struct mmc_host *host); extern void mmc_flush_detect_work(struct mmc_host *host); #define MMC_ERASE_ARG 0x00000000 #define MMC_SECURE_ERASE_ARG 0x80000000 Loading Loading
drivers/mmc/core/core.c +12 −0 Original line number Diff line number Diff line Loading @@ -4360,6 +4360,18 @@ int mmc_detect_card_removed(struct mmc_host *host) } EXPORT_SYMBOL(mmc_detect_card_removed); /* * This should be called to make sure that detect work(mmc_rescan) * is completed.Drivers may use this function from async schedule/probe * contexts to make sure that the bootdevice detection is completed on * completion of async_schedule. */ void mmc_flush_detect_work(struct mmc_host *host) { flush_delayed_work(&host->detect); } EXPORT_SYMBOL(mmc_flush_detect_work); void mmc_rescan(struct work_struct *work) { unsigned long flags; Loading
include/linux/mmc/core.h +1 −0 Original line number Diff line number Diff line Loading @@ -180,6 +180,7 @@ extern int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error); extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd); extern int mmc_set_auto_bkops(struct mmc_card *card, bool enable); extern int mmc_suspend_clk_scaling(struct mmc_host *host); extern void mmc_flush_detect_work(struct mmc_host *host); #define MMC_ERASE_ARG 0x00000000 #define MMC_SECURE_ERASE_ARG 0x80000000 Loading