--- zzzz-none-000/linux-2.6.39.4/drivers/mmc/core/bus.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/mmc/core/bus.c 2021-11-10 13:23:10.000000000 +0000 @@ -23,6 +23,10 @@ #include "sdio_cis.h" #include "bus.h" +#ifdef CONFIG_ARCH_GEN3 +extern int scan_thread_done; +#endif + #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) static ssize_t mmc_type_show(struct device *dev, @@ -308,6 +312,10 @@ mmc_add_card_debugfs(card); #endif +#if defined(CONFIG_ARCH_GEN3) + scan_thread_done = 1; +#endif + ret = device_add(&card->dev); if (ret) return ret;