/* Start a new MMC command for a host, and wait for the command to complete. Return any error that occurred while the command was executing. Do not attempt to parse the response.  */
int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd, int retries)
/* Start a new MMC command for a host, and wait for the command to complete. Return any error that occurred while the command was executing. Do not attempt to parse the response.  */
int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd, int retries)
{
	struct mmc_request mrq;
	WARN_ON(!host->claimed);
	memset(&mrq, 0, sizeof(struct mmc_request));
	memset(cmd->resp, 0, sizeof(cmd->resp));
	cmd->retries = retries;
	mrq.cmd = cmd;
	cmd->data = NULL;
	mmc_wait_for_req(host, &mrq);
	return cmd->error;
}