Everyone: This series was created while working on converting FEC driver to use non-coherent memory for Rx buffers as a part of addressing feedback for [1]. Patch 7/7 implements said change while the rest of the patches are just small improvements (IMHO, of course) that I made while looking at FEC's source code. Tested by using TFTP on following boards: - NXP i.MX8MQ EVK - ZII i.MX6Q RDU2 - ZII VF610 CFU1 Feedback is welcome! Thanks, Andrey Smirnov [1] http://lists.infradead.org/pipermail/barebox/2018-August/034216.html Andrey Smirnov (7): net: fec_imx: Drop extra indentation level by exiting early net: fec_imx: Don't check bd_status & FEC_RBD_ERR twice net: fec_imx: Read data_length only once net: fec_imx: Drop struct fec_frame net: fec_imx: Drop frame_length net: fec_imx: Make use of readx_poll_timeout() macros net: fec_imx: Do not use DMA coherent memory for Rx buffers drivers/net/fec_imx.c | 141 +++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 72 deletions(-) -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox