--- zzzz-none-000/linux-5.15.111/drivers/mmc/core/bus.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/drivers/mmc/core/bus.c 2024-02-07 09:27:48.000000000 +0000 @@ -8,6 +8,13 @@ * MMC card bus driver model */ +/* + * Includes Intel Corporation's changes/modifications dated: 2011, 2017, 2018. + * Changed/modified portions - Copyright (c) 2011-2018, Intel Corporation. + */ + + + #include #include #include @@ -148,6 +155,7 @@ drv->remove(card); } +#ifndef CONFIG_ARCH_GEN3 static void mmc_bus_shutdown(struct device *dev) { struct mmc_driver *drv = to_mmc_driver(dev->driver); @@ -165,6 +173,7 @@ mmc_hostname(host), ret); } } +#endif #ifdef CONFIG_PM_SLEEP static int mmc_bus_suspend(struct device *dev) @@ -230,7 +239,10 @@ .uevent = mmc_bus_uevent, .probe = mmc_bus_probe, .remove = mmc_bus_remove, +#ifndef CONFIG_ARCH_GEN3 + /* exclude eMMC mmc_bus_shutdown for ARM */ .shutdown = mmc_bus_shutdown, +#endif .pm = &mmc_bus_pm_ops, };