@@ -1855,6 +1855,11 @@ int mmc_attach_sd(struct mmc_host *host)
goto remove_card;
mmc_claim_host(host);
+
+ if ((host->flags & MMC_UHS2_INITIALIZED) &&
+ host->ops->uhs2_post_attach_sd)
+ host->ops->uhs2_post_attach_sd(host);
+
return 0;
remove_card:
@@ -279,6 +279,7 @@ struct mmc_host_ops {
int (*uhs2_set_reg)(struct mmc_host *host, enum sd_uhs2_operation act);
int (*uhs2_disable_clk)(struct mmc_host *host);
int (*uhs2_enable_clk)(struct mmc_host *host);
+ void (*uhs2_post_attach_sd)(struct mmc_host *host);
/*
* The uhs2_control callback is used to execute SD UHS-II specific