diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-31 12:48:46 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-31 12:48:46 +0000 |
commit | 85ef0c49c79a2568a81375ba27b1ecd114c7a7bf (patch) | |
tree | a1b4bbfaa088c7eb714351d4967f7ad4159619da /target/linux/ramips/files/drivers | |
parent | 52182673e49773a47431724ea89fce4529730080 (diff) |
ramips_eth: simplify tx descriptor initialization
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19443 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index 1fd9180a39..3061bccc07 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -88,9 +88,8 @@ ramips_alloc_dma(struct raeth_priv *re) memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma)); for (i = 0; i < NUM_TX_DESC; i++) { - re->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE; - re->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK); - re->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1); + re->tx[i].txd2 = TX_DMA_LSO | TX_DMA_DONE; + re->tx[i].txd4 = TX_DMA_QN(3) | TX_DMA_PN(1); } /* setup rx ring */ |