RE: [PATCH 4/5] mmc: core: Add support for graceful host removal for eMMC
From: Avri Altman
Date: Fri Mar 28 2025 - 04:15:20 EST
> +/*
> + * Host is being removed. Free up the current card and do a graceful power-
> off.
> + */
> +static void mmc_remove(struct mmc_host *host) {
> + get_device(&host->card->dev);
> + mmc_remove_card(host->card);
> +
> + _mmc_suspend(host, MMC_POWEROFF_UNBIND);
Couldn't find how _mmc_suspend handles this new power off flag?
Thanks,
Avri
> +
> + put_device(&host->card->dev);
> + host->card = NULL;
> +}
> +
> /*
> * Suspend callback
> */
> --
> 2.43.0
>