]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit8ac9702b9d5d81b819fc7d6b4f6abad22af01f3c
tree7301e2e3033cad0fcec89c17996c4adc9185212b
parente489ccebf14657774fd877dc841b458703730586
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