Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,7 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage)
if (err)
host->ios.signal_voltage = old_signal_voltage;

pr_info("############ %s: Inside Set signal voltage Err:%d \n",__func__, err);
return err;

}
Expand Down
6 changes: 6 additions & 0 deletions drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ static int mmc_select_bus_width(struct mmc_card *card)
unsigned idx, bus_width = 0;
int err = 0;

pr_info("############ In # %s: \n",__func__);
if (!mmc_can_ext_csd(card) ||
!(host->caps & (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)))
return 0;
Expand Down Expand Up @@ -1046,6 +1047,7 @@ static int mmc_select_bus_width(struct mmc_card *card)
}
}

pr_info("############ %s: Bus width Err:%d \n",__func__);
return err;
}

Expand Down Expand Up @@ -1441,6 +1443,7 @@ static int mmc_select_hs200(struct mmc_card *card)
if (err && card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200_1_8V)
err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180);

pr_info("############ %s: After Set signal voltage Err:%d \n",__func__, err);
/* If fails try again during next card power cycle */
if (err)
return err;
Expand All @@ -1452,6 +1455,7 @@ static int mmc_select_hs200(struct mmc_card *card)
* switch to HS200 mode if bus width is set successfully.
*/
err = mmc_select_bus_width(card);
pr_info("############ %s: After Set the bus width(4 or 8) with host's Err:%d \n",__func__, err);
if (err > 0) {
val = EXT_CSD_TIMING_HS200 |
card->drive_strength << EXT_CSD_DRV_STR_SHIFT;
Expand All @@ -1470,6 +1474,7 @@ static int mmc_select_hs200(struct mmc_card *card)
* tuning will fail and the result ends up the same.
*/
err = __mmc_switch_status(card, false);
pr_info("############ %s: After Switch Status Err:%d \n",__func__, err);

/*
* mmc_select_timing() assumes timing has not changed if
Expand All @@ -1479,6 +1484,7 @@ static int mmc_select_hs200(struct mmc_card *card)
mmc_set_timing(host, old_timing);
}
err:
pr_info("############ %s: Befor err: Err:%d \n",__func__, err);
if (err) {
/* fall back to the old signal voltage, if fails report error */
if (mmc_set_signal_voltage(host, old_signal_voltage))
Expand Down