SET_BUS_WIDTH is not a data transfer command. Extensive search in the
host datasheet and SD card spec did not reveal the origin of this hack
or 'feature'. Further testing showed that removing this does not lead to
regressions.
} else {
res.wait_complete = 1;
}
- if (s_is_app_cmd && cmd->opcode == SD_APP_SET_BUS_WIDTH) {
- res.send_auto_stop = 1;
- res.data_expected = 1;
- }
if (cmd->opcode == MMC_GO_IDLE_STATE) {
res.send_init = 1;
}
ESP_LOGE(TAG, "slot->set_bus_width failed");
return err;
}
- uint32_t status;
- err = sdmmc_send_cmd_stop_transmission(card, &status);
- if (err != ESP_OK) {
- ESP_LOGE(TAG, "stop_transmission failed (0x%x)", err);
- return err;
- }
}
/* Wait for the card to be ready for data transfers */