source: branches/backfire/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch @ 25198

Last change on this file since 25198 was 25198, checked in by nbd, 6 years ago

mac80211: backport 2011-01-24 from trunk

File size: 1.2 KB
  • drivers/net/wireless/ath/ath5k/initvals.c

    a b static const struct ath5k_ini ar5210_ini 
    5858        { AR5K_IMR,             0 }, 
    5959        { AR5K_IER,             AR5K_IER_DISABLE }, 
    6060        { AR5K_BSR,             0, AR5K_INI_READ }, 
     61#ifndef CONFIG_ATHEROS_AR71XX 
    6162        { AR5K_TXCFG,           AR5K_DMASIZE_128B }, 
    6263        { AR5K_RXCFG,           AR5K_DMASIZE_128B }, 
     64#else 
     65        /* WAR for AR71xx PCI bug */ 
     66        { AR5K_TXCFG,           AR5K_DMASIZE_128B }, 
     67        { AR5K_RXCFG,           AR5K_DMASIZE_4B }, 
     68#endif 
    6369        { AR5K_CFG,             AR5K_INIT_CFG }, 
    6470        { AR5K_TOPS,            8 }, 
    6571        { AR5K_RXNOFRM,         8 }, 
  • drivers/net/wireless/ath/ath5k/dma.c

    a b void ath5k_hw_dma_init(struct ath5k_hw * 
    787787         * guess we can tweak it and see how it goes ;-) 
    788788         */ 
    789789        if (ah->ah_version != AR5K_AR5210) { 
     790#ifndef CONFIG_ATHEROS_AR71XX 
    790791                AR5K_REG_WRITE_BITS(ah, AR5K_TXCFG, 
    791792                        AR5K_TXCFG_SDMAMR, AR5K_DMASIZE_128B); 
    792793                AR5K_REG_WRITE_BITS(ah, AR5K_RXCFG, 
    793794                        AR5K_RXCFG_SDMAMW, AR5K_DMASIZE_128B); 
     795#else 
     796                /* WAR for AR71xx PCI bug */ 
     797                AR5K_REG_WRITE_BITS(ah, AR5K_TXCFG, 
     798                        AR5K_TXCFG_SDMAMR, AR5K_DMASIZE_128B); 
     799                AR5K_REG_WRITE_BITS(ah, AR5K_RXCFG, 
     800                        AR5K_RXCFG_SDMAMW, AR5K_DMASIZE_4B); 
     801#endif 
    794802        } 
    795803 
    796804        /* Pre-enable interrupts on 5211/5212*/ 
Note: See TracBrowser for help on using the repository browser.