]> git.baikalelectronics.ru Git - kernel.git/commit
net/libertas: make SPI interface big endian aware
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 22 May 2009 19:19:40 +0000 (21:19 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:08 +0000 (14:05 -0400)
commitaf139c1e38033d97077d5ee7f3e30356f3a768ee
tree768c233de807f1f0026cf17368e3feb11671d066
parent057c8820ca863c042a6a7886f682a0adc0970f05
net/libertas: make SPI interface big endian aware

The comment (which I remove) says that the translation is done SPI routines.
IMHO this can't work because the SPI driver does not know whether the incomming
bytes are part of the registers/bytes which need to be flipped or part of
packet data which has to remain untouched.
While adding le helpers I also removed spu_write_u32() which has no users.

Tested-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_spi.c