]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: fix potential issue to avoid fec interrupt lost and crc error
authorDuan Fugang-B38611 <B38611@freescale.com>
Thu, 20 Feb 2014 10:14:39 +0000 (18:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2014 18:16:13 +0000 (13:16 -0500)
commit22b2c75dc9f021ed36d268739676827a98aa86f7
tree5ed3d875d32a6e6b3b63808e5144ab9d4fec7356
parentbe866a4e5a48e702533110f94499ee66b76c3cfb
net: fec: fix potential issue to avoid fec interrupt lost and crc error

The current flow: Set TX BD ready, and then set "INT" and "PINS" bit to
enable tx interrupt generation and crc checksum.

There has potential issue like as:
CPU fec uDMA
Set tx ready bit
uDMA start the BD transmission
Set "INT" bit
Set "PINS" bit
...

Above situation cause fec tx interrupt lost and fec MAC don't do
CRC checksum. The patch fix the potential issue.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Acked-by: Frank Li <Frank.li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c