Skip to content
  • Jorge Ramirez-Ortiz's avatar
    mmc: sdhci: don't clear SDHCI_INT_STATUS register during CMD_INHIBIT · 713e6815
    Jorge Ramirez-Ortiz authored and Jaehoon Chung's avatar Jaehoon Chung committed
    
    
    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: default avatarJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
    713e6815