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)
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>

No differences found