Thread (6 messages) flat view 6 messages, 4 authors, 2016-01-25

Re: [PATCH v2] net: fec: make driver endian-safe

From: David Miller <davem@davemloft.net>
Date: 2016-01-25 18:52:06

From: Johannes Berg <johannes@sipsolutions.net>
Date: Sun, 24 Jan 2016 16:52:37 +0100
The driver treats the device descriptors as CPU-endian, which appears
to be correct with the default endianness on both ARM (typically LE)
and PowerPC (typically BE) SoCs, indicating that the hardware block
is generated differently. Add endianness annotations and byteswaps as
necessary.

It's not clear that the ifdef there really is correct and shouldn't
just be #ifdef CONFIG_ARM, but I also can't test on anything but the
i.MX6 HummingBoard where this gets it working with a BE kernel.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help