]> git.baikalelectronics.ru Git - kernel.git/commit
p54spi: cosmetic fixes: use even byte count in SPI write; drop unused interrupt statu...
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 17 May 2009 23:02:32 +0000 (03:02 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:27 +0000 (14:46 -0400)
commit9bc98c1b3205a635c943ccfdc5b9ecb3105272be
tree0b58e4b68cb97d26a0b7b903ce47915bab797c6e
parent02a1c31c580c558c007277f456a68b8b815afaad
p54spi: cosmetic fixes: use even byte count in SPI write; drop unused interrupt status read

When SPI write of odd length is requested, p54spi_write splits it
into two parts: one for all data, except the last byte, and one
for last byte and padding byte. Unfortunately, the length of
first part is not amended. It works because all meaningful bytes
have proper value and the last byte of odd length SPI write
transaction is ignored.

p54spi_work has dummy HOST_INTERRUPTS register read at the end.
Drop it, as its result is not used and it has no side effects.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c