Thread (12 messages) flat view 12 messages, 3 authors, 2011-01-05
STALE5691d

Revision v1 of 3 in this series.

Revisions (3)
  1. v1 [diff vs current]
  2. v1 current
  3. v1 [diff vs current]

[PATCH 6/7] ARM: PL011: Add support for transmit DMA

From: Rabin Vincent <hidden>
Date: 2011-01-03 11:12:18

On Mon, Jan 3, 2011 at 15:40, Russell King - ARM Linux
[off-list ref] wrote:
+ ? ? ? if (dma_map_sg(dma_dev->dev, &dmatx->sg, 1, DMA_TO_DEVICE) != 1) {
+ ? ? ? ? ? ? ? uap->dmatx.queued = false;
+ ? ? ? ? ? ? ? dev_dbg(uap->port.dev, "unable to map TX DMA\n");
+ ? ? ? ? ? ? ? return -EBUSY;
+ ? ? ? }
+
+ ? ? ? desc = dma_dev->device_prep_slave_sg(chan, &dmatx->sg, 1, DMA_TO_DEVICE,
+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
+ ? ? ? if (!desc) {
+ ? ? ? ? ? ? ? uap->dmatx.queued = false;
Doesn't dma_unmap_sg need to be called here?
+ ? ? ? ? ? ? ? /*
+ ? ? ? ? ? ? ? ?* If DMA cannot be used right now, we complete this
+ ? ? ? ? ? ? ? ?* transaction via IRQ and let the TTY layer retry.
+ ? ? ? ? ? ? ? ?*/
+ ? ? ? ? ? ? ? dev_dbg(uap->port.dev, "TX DMA busy\n");
+ ? ? ? ? ? ? ? return -EBUSY;
+ ? ? ? }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help