From: Jiri Slaby <jirislaby@gmail.com>
To: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andrew Victor <linux@maxim.org.za>,
Remy Bohmer <linux@bohmer.net>,
ARM Linux Mailing List <linux-arm-kernel@lists.arm.linux.org.uk>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org, kernel@avr32linux.org
Subject: Re: [PATCH 4/5] atmel_serial: Split the interrupt handler
Date: Wed, 19 Dec 2007 00:15:24 +0100 [thread overview]
Message-ID: <4768548C.9040005@gmail.com> (raw)
In-Reply-To: <1197997575-13292-5-git-send-email-hskinnemoen@atmel.com>
On 12/18/2007 06:06 PM, Haavard Skinnemoen wrote:
> From: Remy Bohmer <hskinnemoen@atmel.com>
>
> This patch splits up the interrupt handler of the serial port
> into a interrupt top-half and a tasklet.
[...]
> [hskinnemoen@atmel.com: misc cleanups and simplifications]
> Signed-off-by: Remy Bohmer <linux@bohmer.net>
> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
> ---
> drivers/serial/atmel_serial.c | 215 ++++++++++++++++++++++++++++++++---------
> 1 files changed, 169 insertions(+), 46 deletions(-)
>
> diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
> index a6b3828..990d3ab 100644
> --- a/drivers/serial/atmel_serial.c
> +++ b/drivers/serial/atmel_serial.c
[...]
> @@ -994,11 +1108,19 @@ static int atmel_serial_resume(struct platform_device *pdev)
> static int __devinit atmel_serial_probe(struct platform_device *pdev)
> {
> struct atmel_uart_port *port;
> + void *data;
> int ret;
>
> + BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));
> +
> port = &atmel_ports[pdev->id];
> atmel_init_port(port, pdev);
>
> + data = kmalloc(ATMEL_SERIAL_RINGSIZE, GFP_KERNEL);
> + if (!data)
{
clk_disable(atmel_port->clk);
clk_put(atmel_port->clk);
> + return -ENOMEM;
}
> + port->rx_ring.buf = data;
> +
> ret = uart_add_one_port(&atmel_uart, &port->uart);
> if (!ret) {
> device_init_wakeup(&pdev->dev, 1);
> @@ -1022,6 +1144,7 @@ static int __devexit atmel_serial_remove(struct platform_device *pdev)
>
> if (port) {
> ret = uart_remove_one_port(&atmel_uart, port);
Don't you need tasklet_kill() here (or somewhere)?
> + kfree(atmel_port->rx_ring.buf);
> kfree(port);
> }
>
next prev parent reply other threads:[~2007-12-18 23:15 UTC|newest]
Thread overview: 20+ 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
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-19 20:37 ` Sean
2007-12-19 21:02 ` Haavard Skinnemoen
2007-12-19 21:34 ` [PATCH] Fix interactive rebase to preserve author email address Sean
2007-12-19 22:11 ` Johannes Schindelin
2007-12-19 22:11 ` Haavard Skinnemoen
2007-12-18 23:15 ` Jiri Slaby [this message]
2007-12-19 9:50 ` [PATCH 4/5] atmel_serial: Split the interrupt handler 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=4768548C.9040005@gmail.com \
--to=jirislaby@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.