The dma_sync_single_for_cpu() call must precede reading the received
data. Fix this.
Fixes: 070e1f01827c ("net: fs_enet: don't unmap DMA when packet len is below
copybreak")
Signed-off-by: Mans Rullgard
---
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 8
1
tx_restart() call as for errors reported in the buffer descriptor.
This change makes the FCC based Ethernet controller on MPC82xx devices
usable. It probably breaks the other modes (FEC, SCC) which I have no
way of testing.
Signed-off-by: Mans Rullgard
---
.../ethernet/freescale/fs_enet/fs_enet