diff mbox

spi: atmel-spi fix cs_change behaviour

Message ID 4B9FA253.5030109@iis.fraunhofer.de (mailing list archive)
State Rejected
Headers show

Commit Message

Manuel Stahl March 16, 2010, 3:22 p.m. UTC
None
diff mbox

Patch

--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -501,7 +501,7 @@  atmel_spi_interrupt(int irq, void *dev_id)
  			if (atmel_spi_xfer_is_last(msg, xfer)) {
  				/* report completed message */
  				atmel_spi_msg_done(master, as, msg, 0,
-						xfer->cs_change);
+						!xfer->cs_change);
  			} else {
  				if (xfer->cs_change) {
  					cs_deactivate(as, msg->spi);