diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:43:00 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:43:00 -0400 |
commit | 78fab4c04c76b8c9327541bd270f82b85b42bbf7 (patch) | |
tree | b43006348a1ac15c28e6791d08646809761a2a4a /drivers/spi/dw_spi.c | |
parent | 3b8a4dd3ebfcc647260ad5c39ef4f73eb3a6b155 (diff) | |
parent | 61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf (diff) |
Merge commit 'v2.6.39' into spi/next
Diffstat (limited to 'drivers/spi/dw_spi.c')
-rw-r--r-- | drivers/spi/dw_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 855ac4ae0f22..919fa9d9e16b 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c | |||
@@ -305,7 +305,7 @@ static void int_error_stop(struct dw_spi *dws, const char *msg) | |||
305 | 305 | ||
306 | void dw_spi_xfer_done(struct dw_spi *dws) | 306 | void dw_spi_xfer_done(struct dw_spi *dws) |
307 | { | 307 | { |
308 | /* Update total byte transfered return count actual bytes read */ | 308 | /* Update total byte transferred return count actual bytes read */ |
309 | dws->cur_msg->actual_length += dws->len; | 309 | dws->cur_msg->actual_length += dws->len; |
310 | 310 | ||
311 | /* Move to next transfer */ | 311 | /* Move to next transfer */ |
@@ -752,7 +752,7 @@ static int stop_queue(struct dw_spi *dws) | |||
752 | 752 | ||
753 | spin_lock_irqsave(&dws->lock, flags); | 753 | spin_lock_irqsave(&dws->lock, flags); |
754 | dws->run = QUEUE_STOPPED; | 754 | dws->run = QUEUE_STOPPED; |
755 | while (!list_empty(&dws->queue) && dws->busy && limit--) { | 755 | while ((!list_empty(&dws->queue) || dws->busy) && limit--) { |
756 | spin_unlock_irqrestore(&dws->lock, flags); | 756 | spin_unlock_irqrestore(&dws->lock, flags); |
757 | msleep(10); | 757 | msleep(10); |
758 | spin_lock_irqsave(&dws->lock, flags); | 758 | spin_lock_irqsave(&dws->lock, flags); |