[PATCH] net: fs_enet: sync rx dma buffer before reading

2022-05-19 Thread Mans Rullgard
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

[RFC][PATCH] net: fs_enet: fix tx error handling

2022-03-17 Thread Mans Rullgard
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