diff options
| author | James Hogan <[email protected]> | 2011-06-24 13:54:06 +0100 |
|---|---|---|
| committer | Chris Ball <[email protected]> | 2011-07-20 17:20:57 -0400 |
| commit | b40af3aa7712e8f1b73e00e781cd93181483f649 (patch) | |
| tree | 2c1ecb1a570cd7a0207bcd0b2520c89a37d2cc33 /tools/perf/scripts/python/sctop.py | |
| parent | 973ed3af1a570612771ed10dec6506c757767668 (diff) | |
mmc: dw_mmc: clear TXDR/RXDR ints before enabling
DMA is only used for transactions exceeding a certain length, otherwise
PIO is used. The TXDR and RXDR interrupts are masked when in DMA mode
but still fire. When switching to PIO mode (e.g. to get SCR field when
an SD card is inserted) these interrupts are not cleared and so they
trigger the ISR as soon as they are unmasked. If the previous DMA did a
write, then the ISR will handle the TXDR interrupt even if the
transaction is a read, completing the transaction without modifying the
read buffer.
This is fixed primarily by clearing these two interrupts before
unmasking them when setting up PIO mode, and also by making the ISR more
robust by only handling TXDR/RXDR in the correct read/write direction.
Signed-off-by: James Hogan <[email protected]>
Acked-by: Will Newton <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions