tc35815: Use 0 RxFragSize.MinFrag value for non-packing mode
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 6 Aug 2009 04:41:49 +0000 (04:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Aug 2009 20:14:25 +0000 (13:14 -0700)
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>
drivers/net/tc35815.c

index 411cc0e5f7a41a55dde22b44f5dde1019d6f4d51..d1298e5b72c565d0e9c37fa4bef9052030475e5a 100644 (file)
@@ -2394,8 +2394,6 @@ static void tc35815_chip_init(struct net_device *dev)
                tc_writel(DMA_BURST_SIZE, &tr->DMA_Ctl);
 #ifdef TC35815_USE_PACKEDBUFFER
        tc_writel(RxFrag_EnPack | ETH_ZLEN, &tr->RxFragSize);   /* Packing */
-#else
-       tc_writel(ETH_ZLEN, &tr->RxFragSize);
 #endif
        tc_writel(0, &tr->TxPollCtr);   /* Batch mode */
        tc_writel(TX_THRESHOLD, &tr->TxThrsh);