OSDN Git Service

net: sh_eth: Fix RX packets errors on R8A7740
authorNguyen Hong Ky <nh-ky@jinso.co.jp>
Mon, 7 Oct 2013 06:29:25 +0000 (15:29 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:03:53 +0000 (16:03 -0400)
commit2c6221e4a5aab417cb18bef6f1130d1374240258
tree0f9e8868afa85cb3cb76ca634cc4939bd5424ec8
parent8d8a51e26a6d415e1470759f2cf5f3ee3ee86196
net: sh_eth: Fix RX packets errors on R8A7740

This patch will fix RX packets errors when receiving big size
of data by set bit RNC = 1.

RNC - Receive Enable Control

0: Upon completion of reception of one frame, the E-DMAC writes
the receive status to the descriptor and clears the RR bit in
EDRRR to 0.

1: Upon completion of reception of one frame, the E-DMAC writes
(writes back) the receive status to the descriptor. In addition,
the E-DMAC reads the next descriptor and prepares for reception
of the next frame.

In addition, for get more stable when receiving packets, I set
maximum size for the transmit/receive FIFO and inserts padding
in receive data.

Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c