• U
    mmc: mmci: Handle CMD irq before DATA irq · e7f3d222
    Ulf Hansson 提交于
    In case of a read operation both MCI_CMDRESPEND and MCI_DATAEND can be
    set in the status register when entering the interrupt handler. This is
    due to that the card start sending data before the host has
    acknowledged the command response.
    
    To resolve the issue for this scenario, we must start by handling the
    CMD irq instead of the DATA irq. The reason is beacuse the completion
    of the DATA irq will not respect the current command and then causing
    it to be garbled.
    
    Cc: Russell King <linux@arm.linux.org.uk>
    Cc: Johan Rudholm <jrudholm@gmail.com>
    Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: NChris Ball <chris@printf.net>
    e7f3d222
mmci.c 45.6 KB