mmci: bug in DATABLOCKEND handling?

Rabin Vincent rabin at
Sun Jan 2 00:54:24 EST 2011

In MMCI, on variants which use the DATABLOCKEND interrupt, if we cross
more than one block boundary in the loop inside mmc_pio_read() or
mmci_pio_write(), when the DATABLOCKEND irq is handled after interrupts
are enabled in mmci_pio_irq(), won't the block count be incorrect
because we would consider that only one block has been transferred, when
in fact it has been two?  Or can this never happen for some reason?

More information about the linux-arm-kernel mailing list