Thread (4 messages) flat view 4 messages, 3 authors, 2021-01-29

Re: [PATCH] lan743x: fix endianness when accessing descriptors

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-01-27 04:32:51

On Mon, 25 Jan 2021 14:03:20 +0500 Alexey Denisov wrote:
TX/RX descriptor ring fields are always little-endian, but conversion
wasn't performed for big-endian CPUs, so the driver failed to work.

This patch makes the driver work on big-endian CPUs. It was tested and
confirmed to work on NXP P1010 processor (PowerPC).

Signed-off-by: Alexey Denisov <redacted>
Thanks for the patch, you need to adjust the types of the members and
variables as well, otherwise sparse - the Linux type checking tool -
will start returning warnings that you interpret as le32 something
declared as CPU byteorder.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help