From: Youquan Song <youquan.song@intel.com>
To: dan.j.williams@intel.com, vinod.koul@intel.com,
gregkh@linuxfoundation.org
Cc: andriy.shevchenko@intel.com, mika.westerberg@intel.com,
linux-kernel@vger.kernel.org,
Youquan Song <youquan.song@linux.intel.com>,
Youquan Song <youquan.song@intel.com>
Subject: [PATCH 2/2] dma: calculate the data tranferred by 8250
Date: Fri, 11 Oct 2013 17:42:18 -0400 [thread overview]
Message-ID: <1381527738-9339-3-git-send-email-youquan.song@intel.com> (raw)
In-Reply-To: <1381527738-9339-2-git-send-email-youquan.song@intel.com>
When using UART transfers data by DMA mode, but it always shows 0 at
/sys/class/dma/dma0chan*/bytes_transferred.
Call the new function to calculate how many the data has been transferred
after doing it by DMA mode.
Signed-off-by: Youquan Song <youquan.song@intel.com>
---
drivers/tty/serial/8250/8250_dma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index 7046769..b22ef80 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -83,7 +83,7 @@ int serial8250_tx_dma(struct uart_8250_port *p)
desc->callback = __dma_tx_complete;
desc->callback_param = p;
- dma->tx_cookie = dmaengine_submit(desc);
+ dma->tx_cookie = dma_tx_submit_cal(desc, dma->txchan, dma->tx_size);
dma_sync_single_for_device(dma->txchan->device->dev, dma->tx_addr,
UART_XMIT_SIZE, DMA_TO_DEVICE);
--
1.7.7.4
next prev parent reply other threads:[~2013-10-11 10:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 21:42 DMA: Calculate how many data transferred by DMA Youquan Song
2013-10-11 21:42 ` [PATCH 1/2] dma: Add interface to calculate data transferred Youquan Song
2013-10-11 10:22 ` Shevchenko, Andriy
2013-10-11 13:33 ` Greg KH
2013-10-13 15:26 ` Vinod Koul
2013-10-15 18:31 ` Youquan Song
2013-10-15 15:30 ` Greg KH
2013-10-15 15:55 ` Dan Williams
2013-10-15 16:17 ` Greg KH
2013-10-16 5:38 ` Vinod Koul
2013-10-16 8:36 ` Shevchenko, Andriy
2013-10-16 7:57 ` Vinod Koul
2013-10-16 9:13 ` Shevchenko, Andriy
2013-10-16 14:12 ` Greg KH
2013-10-16 15:07 ` Vinod Koul
2013-10-16 18:17 ` Dan Williams
2013-10-11 21:42 ` Youquan Song [this message]
2013-10-11 13:32 ` [PATCH 2/2] dma: calculate the data tranferred by 8250 Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381527738-9339-3-git-send-email-youquan.song@intel.com \
--to=youquan.song@intel.com \
--cc=andriy.shevchenko@intel.com \
--cc=dan.j.williams@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@intel.com \
--cc=vinod.koul@intel.com \
--cc=youquan.song@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®