Revert "net: fec: fix the warning found by dma debug"
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 13 Mar 2015 17:07:54 +0000 (14:07 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 17:10:37 +0000 (13:10 -0400)
commita2fe37b69d4fe369c284d50927193fed81c238a0
tree1aa187f3cd775d3822a411baa15e1f21b032ea91
parent40fb70f3aa0a67d28a30c854d4e7aa10b0511db9
Revert "net: fec: fix the warning found by dma debug"

This reverts commit 2b995f63987013bacde99168218f9c7b252bdcf1.

Панов Андрей reported the following regression:

"Commit 2b995f63987013bacde99168218f9c7b252bdcf1 in 4.0.0-rc3 introduces a
nasty bug in transmit, corrupting packets.

To reproduce:

$ dd if=/dev/zero of=zeros bs=1M count=20
$ md5sum -b zeros
8f4e33f3dc3e414ff94e5fb6905cba8c *zeros

This checksum is correct.

Copy file "zeros" to another host with NFS, and it gets corrupted, checksum is
changed.
File should be big, small amounts of transmit isn't affected.

I use an i.MX6 Quad board.

If this commit is reverted, all works fine."

Reported-by: Панов Андрей <rockford@yandex.ru>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c