• Dong Aisheng's avatar
    mmc: sdhci: clear auto cmd setting bits for no data cmds · 2b558c13
    Dong Aisheng authored
    The auto cmd settings bits should be cleared before sending new commands
    or we may receive command timeout error for normal commands due to wrongly
    pre-sent auto cmd.
    
    e.g. we receive CMD13 timeout error due to ACMD23 is wrongly enabled
    by former data commands.
    
    mmc2: new high speed DDR MMC card at address 0001
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
     mmcblk1: p1 p2 p3 p4 < p5 p6 p7 >
    mmc2: Timeout waiting for hardware interrupt.
     mmcblk1boot1: unknown partition table
    mmc2: Timeout waiting for hardware interrupt.
     mmcblk1boot0: unknown partition table
    Signed-off-by: default avatarDong Aisheng <b29396@freescale.com>
    Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    2b558c13
sdhci.c 86.4 KB