Merge "driver: mmc: sdhci: Add condition for DAT inhibit bit."

This commit is contained in:
Linux Build Service Account 2019-02-20 13:05:28 -08:00 committed by Gerrit - the friendly Code Review server
commit 843831b8eb

View file

@ -252,7 +252,10 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
static unsigned int cmd_timeout = CONFIG_SDHCI_CMD_DEFAULT_TIMEOUT;
sdhci_writel(host, SDHCI_INT_ALL_MASK, SDHCI_INT_STATUS);
mask = SDHCI_CMD_INHIBIT | SDHCI_DATA_INHIBIT;
mask = SDHCI_CMD_INHIBIT;
if ((data != NULL) || (cmd->resp_type & MMC_RSP_BUSY))
mask |= SDHCI_DATA_INHIBIT;
/* We shouldn't wait for data inihibit for stop commands, even
though they might use busy signaling */