mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chip Coldwell <coldwell@frank.harvard.edu>
To: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andrew Victor <linux@maxim.org.za>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	kernel@avr32linux.org, linux-kernel@vger.kernel.org,
	Remy Bohmer <linux@bohmer.net>,
	ARM Linux Mailing List  <linux-arm-kernel@lists.arm.linux.org.uk>
Subject: Re: [PATCH 5/5] atmel_serial: Add DMA support
Date: Tue, 18 Dec 2007 13:18:04 -0500 (EST)	[thread overview]
Message-ID: <alpine.LFD.0.9999.0712181317070.27475@localhost.localdomain> (raw)
In-Reply-To: <1197997575-13292-6-git-send-email-hskinnemoen@atmel.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 18 Dec 2007, Haavard Skinnemoen wrote:

> From: Chip Coldwell <hskinnemoen@atmel.com>
> 
> This patch is based on the DMA-patch by Chip Coldwell for the
> AT91/AT32 serial USARTS, with some tweaks to make it apply neatly on
> top of the other patches in this series.
> 
> The RX code has been moved to a tasklet and reworked a bit. Instead of
> depending on the ENDRX and TIMEOUT bits in CSR, we simply grab as much
> data as we can from the DMA buffers. I think this closes a race where
> the ENDRX bit is set after we read CSR but before we read RPR,
> although I haven't confirmed this.
> 
> This also fixes a DMA sync bug in the original patch.
> 
> [linux@bohmer.net: rebased onto irq-splitup patch]
> [hskinnemoen@atmel.com: moved to tasklet, fixed dma bug, misc cleanups]
> Signed-off-by: Remy Bohmer <linux@bohmer.net>
> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
> ---
>  drivers/serial/atmel_serial.c |  386 ++++++++++++++++++++++++++++++++++++++--
>  1 files changed, 366 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
> index 990d3ab..07c2734 100644
> --- a/drivers/serial/atmel_serial.c
> +++ b/drivers/serial/atmel_serial.c
> @@ -7,6 +7,8 @@
>   *  Based on drivers/char/serial_sa1100.c, by Deep Blue Solutions Ltd.
>   *  Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
>   *
> + *  DMA support added by Chip Coldwell.

I will ACK/Sign-off on this soon; I just want to do some tests on real
hardware first.

Chip

- -- 
Charles M. Coldwell
"Turn on, log in, tune out"
Somerville, Massachusetts, New England
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHaA7cr6maj4UuBS8RAjMSAJsGcKoFKCP/R3aAPhW5hj+v3Qt6ZACgshsF
5NP6/9+NbhDAxBC/7jo8J0Y=
=hx4t
-----END PGP SIGNATURE-----

  reply	other threads:[~2007-12-18 18:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18 17:06 [PATCH 0/5] atmel_serial: Cleanups, irq handler splitup & DMA Haavard Skinnemoen
2007-12-18 17:06 ` [PATCH 1/5] atmel_serial: Clean up the code Haavard Skinnemoen
2007-12-18 17:06   ` [PATCH 2/5] atmel_serial: Use cpu_relax() when busy-waiting Haavard Skinnemoen
2007-12-18 17:06     ` [PATCH 3/5] atmel_serial: Use existing console options only if BRG is running Haavard Skinnemoen
2007-12-18 17:06       ` [PATCH 4/5] atmel_serial: Split the interrupt handler Haavard Skinnemoen
2007-12-18 17:06         ` [PATCH 5/5] atmel_serial: Add DMA support Haavard Skinnemoen
2007-12-18 18:18           ` Chip Coldwell [this message]
2007-12-18 17:10         ` [PATCH 4/5] atmel_serial: Split the interrupt handler Haavard Skinnemoen
2007-12-18 18:19           ` Chip Coldwell
2007-12-19 11:40             ` Haavard Skinnemoen
2007-12-19 14:07               ` Haavard Skinnemoen
2007-12-18 23:15         ` Jiri Slaby
2007-12-19  9:50           ` Haavard Skinnemoen
2007-12-19  7:29 ` [PATCH 0/5] atmel_serial: Cleanups, irq handler splitup & DMA Vadim Yatsenko
2007-12-19  9:54   ` Haavard Skinnemoen

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=alpine.LFD.0.9999.0712181317070.27475@localhost.localdomain \
    --to=coldwell@frank.harvard.edu \
    --cc=hskinnemoen@atmel.com \
    --cc=kernel@avr32linux.org \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=linux@bohmer.net \
    --cc=linux@maxim.org.za \
    /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®