Merge "mmc: sdhci: Enable CDR for cmdq mode"
This commit is contained in:
commit
b7cd152c17
3 changed files with 5 additions and 2 deletions
|
@ -4179,8 +4179,10 @@ static void sdhci_set_default_hw_caps(struct sdhci_msm_host *msm_host,
|
|||
/* keep track of the value in SDHCI_CAPABILITIES */
|
||||
msm_host->caps_0 = caps;
|
||||
|
||||
if ((major == 1) && (minor >= 0x6b))
|
||||
if ((major == 1) && (minor >= 0x6b)) {
|
||||
msm_host->ice_hci_support = true;
|
||||
host->cdr_support = true;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MMC_CQ_HCI
|
||||
|
|
|
@ -3633,7 +3633,7 @@ static void sdhci_cmdq_set_transfer_params(struct mmc_host *mmc)
|
|||
ctrl |= SDHCI_CTRL_ADMA32;
|
||||
sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
|
||||
}
|
||||
if (host->ops->toggle_cdr)
|
||||
if (host->ops->toggle_cdr && !host->cdr_support)
|
||||
host->ops->toggle_cdr(host, false);
|
||||
}
|
||||
|
||||
|
|
|
@ -564,6 +564,7 @@ struct sdhci_host {
|
|||
bool runtime_suspended; /* Host is runtime suspended */
|
||||
bool bus_on; /* Bus power prevents runtime suspend */
|
||||
bool preset_enabled; /* Preset is enabled */
|
||||
bool cdr_support;
|
||||
|
||||
struct mmc_request *mrq; /* Current request */
|
||||
struct mmc_command *cmd; /* Current command */
|
||||
|
|
Loading…
Add table
Reference in a new issue