提交 6b40d182 编写于 作者: S Shawn Guo 提交者: Chris Ball

mmc: sdhci-esdhc-imx: remove D3CD check from SDHCI_HOST_CONTROL write

SDHCI_CTRL_D3CD is not a standard SDHCI_HOST_CONTROL, so there is no
need to check it in SDHCI_HOST_CONTROL write at all.  Remove it.
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
Tested-by: NDirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 ef4d0888
...@@ -297,10 +297,8 @@ static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg) ...@@ -297,10 +297,8 @@ static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg)
*/ */
return; return;
case SDHCI_HOST_CONTROL: case SDHCI_HOST_CONTROL:
/* FSL messed up here, so we can just keep those three */ /* FSL messed up here, so we need to manually compose it. */
new_val = val & (SDHCI_CTRL_LED | \ new_val = val & (SDHCI_CTRL_LED | SDHCI_CTRL_4BITBUS);
SDHCI_CTRL_4BITBUS | \
SDHCI_CTRL_D3CD);
/* ensure the endianness */ /* ensure the endianness */
new_val |= ESDHC_HOST_CONTROL_LE; new_val |= ESDHC_HOST_CONTROL_LE;
/* bits 8&9 are reserved on mx25 */ /* bits 8&9 are reserved on mx25 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册