summaryrefslogtreecommitdiff
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-31 12:48:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-31 12:48:46 +0000
commit21b06bd2c076c62d678efbf2288a2d4f12fe8aa6 (patch)
tree79db39876189c84666a0f25206e48061e5d06297 /target/linux/ramips
parentd0fb66e3a4a6015c8182a8e82098640549f9dd95 (diff)
downloadmtk-20170518-21b06bd2c076c62d678efbf2288a2d4f12fe8aa6.zip
mtk-20170518-21b06bd2c076c62d678efbf2288a2d4f12fe8aa6.tar.gz
mtk-20170518-21b06bd2c076c62d678efbf2288a2d4f12fe8aa6.tar.bz2
ramips_eth: simplify tx descriptor initialization
SVN-Revision: 19443
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c5
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 1fd9180..3061bcc 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 */