spi/bitbang: reinitialize transfer parameters for every message
authorBrian Niebuhr <bniebuhr3@gmail.com>
Fri, 2 Jul 2010 15:30:17 +0000 (15:30 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 4 Jul 2010 04:59:18 +0000 (22:59 -0600)
commitb8f2e7bb6cff43efc4fa753761357cc7b7b13d26
tree2be2618cc284340aac1d2171159ae5f0628c55e4
parent3c8e1a84fd6b984a7bce8816db2e3defc57bbfe4
spi/bitbang: reinitialize transfer parameters for every message

This patch fixes the setup_transfer logic to account for the case where
multiple messages to different SPI devices are in the queue simultaneously.
With the current logic, the second message in the queue will end up
using the transfer parameters for the previous message in the queue.

The fix is to reinitialize the transfer parameters for each message
rather than only once on the first message.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_bitbang.c