]> git.baikalelectronics.ru Git - kernel.git/commit
pch_can: Fix endianness issue
authorTomoya <tomoya-linux@dsn.okisemi.com>
Sun, 12 Dec 2010 20:24:09 +0000 (20:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2010 20:24:19 +0000 (12:24 -0800)
commit69009887c8d0b24bf855b8f2ac8139655a266ac0
tree7301e2e3033cad0fcec89c17996c4adc9185212b
parent66b040c1455ccdb4dc0eec3cf2823107f923f6f9
pch_can: Fix endianness issue

there is endianness issue both Tx and Rx.
Currently, data is set like below.
Register:
MSB--LSB
x x D0 D1
x x D2 D3
x x D4 D5
x x D6 D7

But Data to be sent must be set like below.
Register:
MSB--LSB
x x D1 D0
x x D3 D2
x x D5 D4
x x D7 D6  (x means reserved area.)

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/pch_can.c