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:
Kyle Evans 2019-11-21 14:01:44 +00:00
parent a27ac4644a
commit 28b1b80e0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354956

View File

@ -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 */