Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1251636
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Nicolas Ferre <nicolas.ferre@atmel.com> |
| Newsgroups | linux.kernel |
| Subject | [RESEND PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word |
| Date | Tue, 20 Oct 2015 14:30:02 +0200 |
| Message-ID | <qlEdc-3CF-15@gated-at.bofh.it> (permalink) |
| References | <qlEdc-3CF-17@gated-at.bofh.it> |
| X-Original-To | Mark Brown <broonie@kernel.org>, <davidm@egauge.net> |
| X-Mailer | git-send-email 2.1.3 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-spi@vger.kernel.org>, <cyrille.pitchen@atmel.com>, Nicolas Ferre <nicolas.ferre@atmel.com> |
| X-Original-Date | Tue, 20 Oct 2015 14:26:47 +0200 |
| X-Original-Message-ID | <1445344007-18706-1-git-send-email-nicolas.ferre@atmel.com> |
| X-Original-References | <1445288084-31805-1-git-send-email-davidm@egauge.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1251636 |
Show key headers only | View raw
From: David Mosberger-Tang <davidm@egauge.net> The DMA-slave configuration depends on the whether <= 8 or > 8 bits are transferred per word, so we need to call atmel_spi_dma_slave_config() with the correct value. Signed-off-by: David Mosberger <davidm@egauge.net> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> --- drivers/spi/spi-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 1cc1f1e0d17f..0b6e5ecbc752 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -773,7 +773,8 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, *plen = len; - if (atmel_spi_dma_slave_config(as, &slave_config, 8)) + if (atmel_spi_dma_slave_config(as, &slave_config, + xfer->bits_per_word)) goto err_exit; /* Send both scatterlists */ -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RESEND PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word Nicolas Ferre <nicolas.ferre@atmel.com> - 2015-10-20 14:30 +0200
csiph-web