bcm2835_sdhci: only inspect interrupts we handle
We'll write the value we read back to ack pending interrupts, but we should at least make it clear to ourselves that we only want to ack pending transfer interrupts.
This commit is contained in:
parent
a27ac4644a
commit
28b1b80e0e
@ -653,7 +653,8 @@ bcm_sdhci_dma_intr(int ch, void *arg)
|
||||
* can continue via DMA, do so. Otherwise, re-enable interrupts and
|
||||
* return.
|
||||
*/
|
||||
reg = bcm_sdhci_read_4(slot->bus, slot, SDHCI_INT_STATUS);
|
||||
reg = bcm_sdhci_read_4(slot->bus, slot, SDHCI_INT_STATUS) &
|
||||
DATA_XFER_MASK;
|
||||
if ((reg & DATA_PENDING_MASK) != 0 &&
|
||||
BCM_SDHCI_SEGSZ_LEFT(slot) >= BCM_SDHCI_BUFFER_SIZE) {
|
||||
/* ACK any pending interrupts */
|
||||
|
Loading…
x
Reference in New Issue
Block a user