From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andrew Victor <andrew@sanpeople.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] at91_serial: support AVR32
Date: Wed, 2 Aug 2006 16:15:05 +0100 [thread overview]
Message-ID: <20060802151505.GA32102@flint.arm.linux.org.uk> (raw)
In-Reply-To: <11545303082669-git-send-email-hskinnemoen@atmel.com>
On Wed, Aug 02, 2006 at 04:51:46PM +0200, Haavard Skinnemoen wrote:
> diff --git a/drivers/serial/at91_serial.c b/drivers/serial/at91_serial.c
> index 54c6b2a..f2fecc6 100644
> --- a/drivers/serial/at91_serial.c
> +++ b/drivers/serial/at91_serial.c
> @@ -40,8 +40,10 @@ #include <asm/arch/at91rm9200_usart.h>
> #include <asm/arch/at91rm9200_pdc.h>
> #include <asm/mach/serial_at91.h>
> #include <asm/arch/board.h>
> +#ifdef CONFIG_ARM
> #include <asm/arch/system.h>
I'd rather this file wasn't included in any drivers in any case.
> @@ -611,7 +615,8 @@ static int at91_request_port(struct uart
> return -EBUSY;
>
> if (port->flags & UPF_IOREMAP) {
> - port->membase = ioremap(port->mapbase, size);
> + if (port->membase == NULL)
> + port->membase = ioremap(port->mapbase, size);
This change makes no sense. If you don't want ioremap, don't set UPF_IOREMAP.
> if (port->membase == NULL) {
> release_mem_region(port->mapbase, size);
> return -ENOMEM;
> @@ -693,12 +698,19 @@ static void __devinit at91_init_port(str
> port->mapbase = pdev->resource[0].start;
> port->irq = pdev->resource[1].start;
>
> +#ifdef CONFIG_AVR32
> + port->flags |= UPF_IOREMAP;
> + port->membase = ioremap(pdev->resource[0].start,
> + pdev->resource[0].end
> + - pdev->resource[0].start + 1);
Don't see the requirement for this.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
next prev parent reply other threads:[~2006-08-02 15:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-02 14:51 [PATCH 0/3] at91_serial: Introduction Haavard Skinnemoen
2006-08-02 14:51 ` [PATCH 1/3] at91_serial: support AVR32 Haavard Skinnemoen
2006-08-02 14:51 ` [PATCH 2/3] at91_serial: Fix break handling Haavard Skinnemoen
2006-08-02 14:51 ` [PATCH 3/3] at91_serial: Fix roundoff error in at91_console_get_options Haavard Skinnemoen
2006-08-02 15:17 ` [PATCH 2/3] at91_serial: Fix break handling Russell King
2006-08-02 16:14 ` Haavard Skinnemoen
2006-08-02 16:21 ` Russell King
2006-08-02 17:39 ` Haavard Skinnemoen
2006-08-02 15:15 ` Russell King [this message]
2006-08-02 16:00 ` [PATCH 1/3] at91_serial: support AVR32 Haavard Skinnemoen
2006-08-02 16:03 ` Russell King
2006-08-02 17:27 ` Haavard Skinnemoen
2006-09-23 21:14 ` [PATCH 0/3] at91_serial: Introduction Russell King
2006-09-25 12:01 ` Haavard Skinnemoen
2006-09-25 12:16 ` Russell King
2006-09-26 9:06 ` Andrew Victor
2006-09-26 9:27 ` Haavard Skinnemoen
2006-09-26 9:28 ` Andrew Victor
2006-09-26 9:48 ` Haavard Skinnemoen
2006-09-26 16:03 ` Andrew Victor
2006-09-27 13:31 ` 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=20060802151505.GA32102@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=andrew@sanpeople.com \
--cc=hskinnemoen@atmel.com \
--cc=linux-kernel@vger.kernel.org \
/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.