• Arnd Hannemann's avatar
    mmc: tmio_mmc: fix CMD irq handling · 2bd6a935
    Arnd Hannemann authored
    With current code card insert/eject interrupts will acknowledge outstanding
    commands. Normally this seems to be no problem, however if the hardware gets
    stuck and no interrupts for CMD_TIMEOUT or CMD_RESPEND are generated, then
    inserting and ejecting cards will falsely acknowledge outstanding commands
    from the core.
    
    This patch changes the behavior so that CMDs are only acked, if
    CMD_TIMEOUT or CMD_RESPEND is received.
    Signed-off-by: default avatarArnd Hannemann <arnd@arndnet.de>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    2bd6a935
tmio_mmc.c 36 KB