Ignore:
Timestamp:
2011-11-14T12:49:53+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: flush DDR writeback buffers for WMAC and PCIe on AR934X

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c

    r29107 r29108  
    240240        status = ar71xx_reset_rr(AR934X_RESET_REG_PCIE_WMAC_INT_STATUS); 
    241241 
    242         if (status & AR934X_PCIE_WMAC_INT_PCIE_ALL) 
     242        if (status & AR934X_PCIE_WMAC_INT_PCIE_ALL) { 
     243                ar71xx_ddr_flush(AR934X_DDR_REG_FLUSH_PCIE); 
    243244                generic_handle_irq(AR934X_IP2_IRQ_PCIE); 
    244  
    245         else if (status & AR934X_PCIE_WMAC_INT_WMAC_ALL) 
     245        } else if (status & AR934X_PCIE_WMAC_INT_WMAC_ALL) { 
     246                ar71xx_ddr_flush(AR934X_DDR_REG_FLUSH_WMAC); 
    246247                generic_handle_irq(AR934X_IP2_IRQ_WMAC); 
    247  
    248         else 
     248        } else { 
    249249                spurious_interrupt(); 
     250        } 
    250251 
    251252        enable_irq(irq); 
     
    298299static void ar934x_ip2_handler(void) 
    299300{ 
    300         ar71xx_ddr_flush(AR934X_DDR_REG_FLUSH_PCIE); 
    301301        do_IRQ(AR71XX_CPU_IRQ_IP2); 
    302302} 
Note: See TracChangeset for help on using the changeset viewer.