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

David Miller davem at davemloft.net
Fri Oct 11 17:56:22 EDT 2013


From: Matthew Leach <matthew.leach at arm.com>
Date: Fri, 11 Oct 2013 14:52:20 +0100

> From: Will Deacon <will.deacon at arm.com>
> 
> 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: <netdev at vger.kernel.org>
> Cc: Nicolas Pitre <nico at fluxnic.net>
> Cc: David S. Miller <davem at davemloft.net>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Applied.



More information about the linux-arm-kernel mailing list