]> git.sur5r.net Git - u-boot/commit
mmc: sdhci: don't clear SDHCI_INT_STATUS register during CMD_INHIBIT
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Thu, 2 Nov 2017 14:10:21 +0000 (15:10 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2018 09:11:03 +0000 (18:11 +0900)
commit713e6815d953108a78bd33470ab90fc2ec5a7198
treea11fb102780e02e7a259d905b2323845dd01962c
parent339d578900edb03b633b3de4dad3da0aea2c1b15
mmc: sdhci: don't clear SDHCI_INT_STATUS register during CMD_INHIBIT

Fixes emmc initialization regression on the db410c platform.

Clearing this register while SDHCI_PRESENT_STATE reports
SDHCI_CMD_INHIBIT leads to undefined behaviour on the db410c.

When commit 7dde50 was merged (mmc: sdhci: Wait for SDHCI_INT_DATA_END
when transferring), SDHCI transfers transitioned to wait for bit
SDHCI_INT_DATA_END before flagging transfers done.

Without this patch, the db410 platform fails to initialize its eMMC
due to all of its transfers timing out (SDHCI_INT_DATA_END is never
raised after all the blocks have been transferred).

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
drivers/mmc/sdhci.c