Skip to content

Commit a48ec34

Browse files
atsushi-nemotodavem330
authored andcommitted
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>
1 parent 7bb82e8 commit a48ec34

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/tc35815.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,8 +2394,6 @@ static void tc35815_chip_init(struct net_device *dev)
23942394
tc_writel(DMA_BURST_SIZE, &tr->DMA_Ctl);
23952395
#ifdef TC35815_USE_PACKEDBUFFER
23962396
tc_writel(RxFrag_EnPack | ETH_ZLEN, &tr->RxFragSize); /* Packing */
2397-
#else
2398-
tc_writel(ETH_ZLEN, &tr->RxFragSize);
23992397
#endif
24002398
tc_writel(0, &tr->TxPollCtr); /* Batch mode */
24012399
tc_writel(TX_THRESHOLD, &tr->TxThrsh);

0 commit comments

Comments
 (0)