]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita92b44230d9f42b405f84b744beba8f15bd9e20b
treeea7d2f6983fc9a8334065e291678eb418a1d5e44
parent912650eabfd03ec9597e7d3cb75199e6dac5ef3d
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