summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-04-18 16:35:41 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:43:18 -0800
commit2f3257d437e9efa0138850c11801039477634fae (patch)
treec2c2393d279fbc6e91d39013246fdb839c5a6a67 /drivers/tty/serial
parent0489b1a6ba6881a2254107a5e7b297b08cd8396e (diff)
arm: tegra: dma: Adding client name with dma allocation.
By changing the dma allocation API to take the client name, it is easy to track who is allocated the DMA channels when we run out of the DMA channels. Original-Change-Id: I016011cfd74089fed0da1bc0f121800017ce124a Reviewed-on: http://git-master/r/28031 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Original-Change-Id: I048bcb87f95ee6d8ad2fdce993a1758dc5071666 Rebase-Id: Rf9f122630cf489a1c02e6c70d5c19fd518e329b1
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/tegra_hsuart.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/serial/tegra_hsuart.c b/drivers/tty/serial/tegra_hsuart.c
index 76b7a79d0708..acded86ee36f 100644
--- a/drivers/tty/serial/tegra_hsuart.c
+++ b/drivers/tty/serial/tegra_hsuart.c
@@ -740,7 +740,8 @@ static int tegra_uart_init_rx_dma(struct tegra_uart_port *t)
dma_addr_t rx_dma_phys;
void *rx_dma_virt;
- t->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_CONTINUOUS);
+ t->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_CONTINUOUS,
+ "uart_rx_%d", t->uport.line);
if (!t->rx_dma) {
dev_err(t->uport.dev, "%s: failed to allocate RX DMA.\n", __func__);
return -ENODEV;
@@ -784,7 +785,8 @@ static int tegra_startup(struct uart_port *u)
t->use_tx_dma = false;
if (!TX_FORCE_PIO) {
- t->tx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT);
+ t->tx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT,
+ "uart_tx_%d", u->line);
if (t->tx_dma)
t->use_tx_dma = true;
else