aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/core/mmc.c6
-rw-r--r--drivers/mmc/core/sd.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 7466ce098e60..d854bff037a2 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1297,6 +1297,12 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
1297 } 1297 }
1298 1298
1299 /* 1299 /*
1300 * Call the optional HC's init_card function to handle quirks.
1301 */
1302 if (host->ops->init_card)
1303 host->ops->init_card(host, card);
1304
1305 /*
1300 * For native busses: set card RCA and quit open drain mode. 1306 * For native busses: set card RCA and quit open drain mode.
1301 */ 1307 */
1302 if (!mmc_host_is_spi(host)) { 1308 if (!mmc_host_is_spi(host)) {
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index d90a6de7901d..29fccdcacd68 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -933,6 +933,12 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr,
933 } 933 }
934 934
935 /* 935 /*
936 * Call the optional HC's init_card function to handle quirks.
937 */
938 if (host->ops->init_card)
939 host->ops->init_card(host, card);
940
941 /*
936 * For native busses: get card RCA and quit open drain mode. 942 * For native busses: get card RCA and quit open drain mode.
937 */ 943 */
938 if (!mmc_host_is_spi(host)) { 944 if (!mmc_host_is_spi(host)) {
@@ -1271,4 +1277,3 @@ err:
1271 1277
1272 return err; 1278 return err;
1273} 1279}
1274