fusee: Run periodic autocal only on the uSD controller

This commit is contained in:
langerhans 2018-06-10 20:50:51 +02:00
parent 5c80016c81
commit 91fc77241c
2 changed files with 8 additions and 2 deletions

View file

@ -2175,7 +2175,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
}
}
sdmmc_run_autocal(mmc, true);
// Periodically recalibrate the SD controller
if (mmc->controller == SWITCH_MICROSD) {
sdmmc_run_autocal(mmc, true);
}
// If we have data to send, prepare it.
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);

View file

@ -2176,7 +2176,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
}
}
sdmmc_run_autocal(mmc, true);
// Periodically recalibrate the SD controller
if (mmc->controller == SWITCH_MICROSD) {
sdmmc_run_autocal(mmc, true);
}
// If we have data to send, prepare it.
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);