diff options
Diffstat (limited to 'drivers/net/pasemi_mac.c')
-rw-r--r-- | drivers/net/pasemi_mac.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index 5eb5e47120d0..c538c66d4b4f 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -239,7 +239,9 @@ static int pasemi_mac_setup_rx_resources(struct net_device *dev) | |||
239 | PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); | 239 | PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); |
240 | 240 | ||
241 | write_dma_reg(mac, PAS_DMA_RXINT_CFG(mac->dma_if), | 241 | write_dma_reg(mac, PAS_DMA_RXINT_CFG(mac->dma_if), |
242 | PAS_DMA_RXINT_CFG_DHL(2)); | 242 | PAS_DMA_RXINT_CFG_DHL(3) | |
243 | PAS_DMA_RXINT_CFG_L2 | | ||
244 | PAS_DMA_RXINT_CFG_LW); | ||
243 | 245 | ||
244 | ring->next_to_fill = 0; | 246 | ring->next_to_fill = 0; |
245 | ring->next_to_clean = 0; | 247 | ring->next_to_clean = 0; |
@@ -589,6 +591,11 @@ static int pasemi_mac_clean_rx(struct pasemi_mac *mac, int limit) | |||
589 | n += 2; | 591 | n += 2; |
590 | } | 592 | } |
591 | 593 | ||
594 | if (n > RX_RING_SIZE) { | ||
595 | /* Errata 5971 workaround: L2 target of headers */ | ||
596 | write_iob_reg(mac, PAS_IOB_COM_PKTHDRCNT, 0); | ||
597 | n &= (RX_RING_SIZE-1); | ||
598 | } | ||
592 | mac->rx->next_to_clean = n; | 599 | mac->rx->next_to_clean = n; |
593 | pasemi_mac_replenish_rx_ring(mac->netdev, limit-count); | 600 | pasemi_mac_replenish_rx_ring(mac->netdev, limit-count); |
594 | 601 | ||