diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2009-08-06 00:41:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-06 16:14:25 -0400 |
commit | a48ec346fcb095f6a0e74a57165f9a9a3b23b95a (patch) | |
tree | ecf8f2ec1f303272ad2142019b380edd7937ebcc | |
parent | 7bb82e834cc9cc95512287a9bf637719557674a0 (diff) |
tc35815: Use 0 RxFragSize.MinFrag value for non-packing mode
The datasheet say "When not enabling packing, the MinFrag value must
remain at 0". Do not set value to RxFragSize register if
TC35815_USE_PACKEDBUFFER disabled.
This is not a bugfix. No real problem reported on this.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tc35815.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 411cc0e5f7a4..d1298e5b72c5 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -2394,8 +2394,6 @@ static void tc35815_chip_init(struct net_device *dev) | |||
2394 | tc_writel(DMA_BURST_SIZE, &tr->DMA_Ctl); | 2394 | tc_writel(DMA_BURST_SIZE, &tr->DMA_Ctl); |
2395 | #ifdef TC35815_USE_PACKEDBUFFER | 2395 | #ifdef TC35815_USE_PACKEDBUFFER |
2396 | tc_writel(RxFrag_EnPack | ETH_ZLEN, &tr->RxFragSize); /* Packing */ | 2396 | tc_writel(RxFrag_EnPack | ETH_ZLEN, &tr->RxFragSize); /* Packing */ |
2397 | #else | ||
2398 | tc_writel(ETH_ZLEN, &tr->RxFragSize); | ||
2399 | #endif | 2397 | #endif |
2400 | tc_writel(0, &tr->TxPollCtr); /* Batch mode */ | 2398 | tc_writel(0, &tr->TxPollCtr); /* Batch mode */ |
2401 | tc_writel(TX_THRESHOLD, &tr->TxThrsh); | 2399 | tc_writel(TX_THRESHOLD, &tr->TxThrsh); |