[PATCH 3/3] net: ethernet: sun4i-emac: Read rxhdr in CPU byte-order

2016-11-14 Thread Michael Weiser
The EMAC EMAC_RX_IO_DATA_REG data register is dual-purpose: On one hand it is used to move actual packet data off the wire. This will be in wire-format and accepted as such by higher layers such as IP. Therefore it is correctly read as-is (i.e. raw) using readsl. On the other hand it provides meta

Re: [PATCH 3/3] net: ethernet: sun4i-emac: Read rxhdr in CPU byte-order

2016-11-14 Thread Maxime Ripard
On Mon, Nov 14, 2016 at 06:58:07PM +0100, Michael Weiser wrote: > The EMAC EMAC_RX_IO_DATA_REG data register is dual-purpose: On one hand > it is used to move actual packet data off the wire. This will be in > wire-format and accepted as such by higher layers such as IP. Therefore > it is correctly