|
@@ -838,18 +838,16 @@ static u32 iwl_pcie_int_cause_non_ict(struct iwl_trans *trans)
|
|
|
* the handler can be scheduled because of a previous
|
|
|
* interrupt.
|
|
|
*/
|
|
|
- if (test_bit(STATUS_INT_ENABLED, &trans->status) &&
|
|
|
- !trans_pcie->inta)
|
|
|
+ if (test_bit(STATUS_INT_ENABLED, &trans->status) && !inta)
|
|
|
iwl_enable_interrupts(trans);
|
|
|
- return trans_pcie->inta;
|
|
|
+ return inta;
|
|
|
}
|
|
|
|
|
|
if ((inta == 0xFFFFFFFF) || ((inta & 0xFFFFFFF0) == 0xa5a5a5a0)) {
|
|
|
/* Hardware disappeared. It might have already raised
|
|
|
* an interrupt */
|
|
|
IWL_WARN(trans, "HARDWARE GONE?? INTA == 0x%08x\n", inta);
|
|
|
- trans_pcie->inta = 0xFFFFFFFF;
|
|
|
- return trans_pcie->inta;
|
|
|
+ return 0xFFFFFFFF;
|
|
|
}
|
|
|
|
|
|
if (iwl_have_debug_level(IWL_DL_ISR))
|
|
@@ -858,9 +856,8 @@ static u32 iwl_pcie_int_cause_non_ict(struct iwl_trans *trans)
|
|
|
inta, trans_pcie->inta_mask,
|
|
|
iwl_read32(trans, CSR_FH_INT_STATUS));
|
|
|
|
|
|
- trans_pcie->inta |= inta;
|
|
|
/* the thread will service interrupts and re-enable them */
|
|
|
- return trans_pcie->inta;
|
|
|
+ return inta;
|
|
|
}
|
|
|
|
|
|
/* a device (PCI-E) page is 4096 bytes long */
|
|
@@ -934,21 +931,19 @@ static u32 iwl_pcie_int_cause_ict(struct iwl_trans *trans)
|
|
|
iwl_read32(trans, CSR_INT_MASK));
|
|
|
|
|
|
inta &= trans_pcie->inta_mask;
|
|
|
- trans_pcie->inta |= inta;
|
|
|
|
|
|
/* iwl_pcie_tasklet() will service interrupts and re-enable them */
|
|
|
if (likely(inta))
|
|
|
- return trans_pcie->inta;
|
|
|
+ return inta;
|
|
|
|
|
|
none:
|
|
|
/* re-enable interrupts here since we don't have anything to service.
|
|
|
* only Re-enable if disabled by irq.
|
|
|
*/
|
|
|
- if (test_bit(STATUS_INT_ENABLED, &trans->status) &&
|
|
|
- !trans_pcie->inta)
|
|
|
+ if (test_bit(STATUS_INT_ENABLED, &trans->status) && !inta)
|
|
|
iwl_enable_interrupts(trans);
|
|
|
|
|
|
- return trans_pcie->inta;
|
|
|
+ return inta;
|
|
|
}
|
|
|
|
|
|
irqreturn_t iwl_pcie_irq_handler(int irq, void *dev_id)
|
|
@@ -1001,9 +996,6 @@ irqreturn_t iwl_pcie_irq_handler(int irq, void *dev_id)
|
|
|
IWL_DEBUG_ISR(trans, "inta 0x%08x, enabled 0x%08x\n",
|
|
|
inta, iwl_read32(trans, CSR_INT_MASK));
|
|
|
|
|
|
- /* saved interrupt in inta variable now we can reset trans_pcie->inta */
|
|
|
- trans_pcie->inta = 0;
|
|
|
-
|
|
|
spin_unlock_irqrestore(&trans_pcie->irq_lock, flags);
|
|
|
|
|
|
/* Now service all interrupt bits discovered above. */
|