Thread (3 messages) flat view 3 messages, 3 authors, 2013-10-11
STALE4676d

Re: [PATCH 14/14] net: smc91x: dont't use SMC_outw for fixing up halfword-aligned data

From: David Miller <davem@davemloft.net>
Date: 2013-10-11 21:56:22
Also in: linux-arm-kernel

From: Matthew Leach <redacted>
Date: Fri, 11 Oct 2013 14:52:20 +0100
From: Will Deacon <redacted>

SMC_outw invokes an endian-aware I/O accessor, which may change the data
endianness before writing to the device. This is not suitable for data
transfers where the memory buffer is simply a string of bytes that does
not require any byte-swapping.

This patches fixes the smc91x SMC_PUSH_DATA macro so that it uses the
string I/O accessor for outputting the leading or trailing halfwords on
halfword-aligned buffers.

Cc: <redacted>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Will Deacon <redacted>
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