The patch titled
     atmel_spi: chain dma transfers (update)
has been removed from the -mm tree.  Its filename was
     atmel_spi-chain-dma-transfers-update.patch

This patch was dropped because it was folded into 
atmel_spi-chain-dma-transfers.patch

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: atmel_spi: chain dma transfers (update)
From: "Silvester Erdeg" <[EMAIL PROTECTED]>

This patch adds support for chained transfers in the atmel_spi driver.
Almost all of the changes are in the reworked atmel_spi_next_xfer()
function.  That's called with the driver in one of these three states:

 1. It isn't transferring anything (in which case the first transfer of
    the current message is going to be sent)
 2. It has finished transfering a non-chainable transfer (in which case
    it will go to the next transfer in the message)
 3. It has finished transfering a chained transfer (in which case the
    next transfer is already queued)

After that it will queue the next transfer if it can be chained.

Signed-off-by: Szilveszter Ordog <[EMAIL PROTECTED]>
Acked-by: Haavard Skinnemoen <[EMAIL PROTECTED]>
Signed-off-by: David Brownell <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/spi/atmel_spi.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff -puN drivers/spi/atmel_spi.c~atmel_spi-chain-dma-transfers-update 
drivers/spi/atmel_spi.c
--- a/drivers/spi/atmel_spi.c~atmel_spi-chain-dma-transfers-update
+++ a/drivers/spi/atmel_spi.c
@@ -191,13 +191,13 @@ static void atmel_spi_next_xfer(struct s
                atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len);
                remaining = xfer->len - len;
 
-               spi_writel(as, TPR, tx_dma);
                spi_writel(as, RPR, rx_dma);
+               spi_writel(as, TPR, tx_dma);
 
                if (msg->spi->bits_per_word > 8)
                        len >>= 1;
-               spi_writel(as, TCR, len);
                spi_writel(as, RCR, len);
+               spi_writel(as, TCR, len);
        } else {
                xfer = as->next_transfer;
                remaining = as->next_remaining_bytes;
@@ -223,16 +223,16 @@ static void atmel_spi_next_xfer(struct s
                atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len);
                as->next_remaining_bytes = total - len;
 
-               spi_writel(as, TNPR, tx_dma);
                spi_writel(as, RNPR, rx_dma);
+               spi_writel(as, TNPR, tx_dma);
 
                if (msg->spi->bits_per_word > 8)
                        len >>= 1;
-               spi_writel(as, TNCR, len);
                spi_writel(as, RNCR, len);
+               spi_writel(as, TNCR, len);
        } else {
-               spi_writel(as, TNCR, 0);
                spi_writel(as, RNCR, 0);
+               spi_writel(as, TNCR, 0);
        }
 
        /* REVISIT: We're waiting for ENDRX before we start the next
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

atmel_spi-chain-dma-transfers.patch
atmel_spi-chain-dma-transfers-update.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to