smsc911x: add fifo byteswap support V2
authorMagnus Damm <damm@igel.co.jp>
Mon, 27 Apr 2009 21:32:16 +0000 (21:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Apr 2009 08:53:11 +0000 (01:53 -0700)
commit833cc67c7722e35863c6aaee9df56b442ef957ae
treeea7d2f6983fc9a8334065e291678eb418a1d5e44
parent52fbc1007eb071c40a367462476eee695b412578
smsc911x: add fifo byteswap support V2

This is V2 of the smsc911x fifo byteswap patch.

The smsc911x hardware supports both big and little and endian
hardware configurations, and the linux smsc911x driver currently
detects word order.

For correct operation on big endian platforms lacking swapped
byte lanes the following patch is needed. Only fifo data is
swapped, register data does not require any swapping.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc911x.c
include/linux/smsc911x.h