From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 4/14] Use resource_size_t for serial port IO addresses
Date: Tue, 20 Feb 2007 17:44:26 +0300 [thread overview]
Message-ID: <45DB094A.2040309@ru.mvista.com> (raw)
In-Reply-To: <20070220021234.E27E2DDD0B@ozlabs.org>
Hello.
David Gibson wrote:
> At present, various parts of the serial code use unsigned long to
> define resource addresses. This is a problem, because some 32-bit
> platforms have physical addresses larger than 32-bits, and have mmio
> serial uarts located above the 4GB point.
>
> This patch changes the type of mapbase in both struct uart_port and
> struct plat_serial8250_port to resource_size_t, which can be
> configured to be 64 bits on such platforms. The mapbase in
> serial_struct can't safely be changed, because that structure is user
> visible.
Erm, isn't linux-serial@vger.kernel.org more proper list for such patches?
Also, as serial drivers are now unmaintained, this probably needs to go to -mm
tree.
> Signed-off-by: David Gibson <dwg@au1.ibm.com>
> Index: working-2.6/drivers/serial/serial_core.c
> ===================================================================
> --- working-2.6.orig/drivers/serial/serial_core.c 2007-02-19 11:07:42.000000000 +1100
> +++ working-2.6/drivers/serial/serial_core.c 2007-02-19 11:07:43.000000000 +1100
> @@ -633,7 +633,7 @@ static int uart_get_info(struct uart_sta
> tmp.hub6 = port->hub6;
> tmp.io_type = port->iotype;
> tmp.iomem_reg_shift = port->regshift;
> - tmp.iomem_base = (void *)port->mapbase;
> + tmp.iomem_base = (void *)(unsigned long)port->mapbase;
For 32-bit kernels this may result in a meaningless address. Have you
considered also changing iomem_base's type?
MBR, Sergei
next prev parent reply other threads:[~2007-02-20 14:44 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-20 2:08 [0/14] Ebony support, 2nd spin David Gibson
2007-02-20 2:12 ` [PATCH 2/14] Automatically lmb_reserve() initrd David Gibson
2007-02-20 2:12 ` [PATCH 4/14] Use resource_size_t for serial port IO addresses David Gibson
2007-02-20 14:44 ` Sergei Shtylyov [this message]
2007-02-21 0:19 ` David Gibson
2007-02-20 2:12 ` [PATCH 1/14] powerpc: Allow duplicate lmb_reserve() calls David Gibson
2007-02-20 2:12 ` [PATCH 3/14] Define FIXED_PORT flag for serial_core David Gibson
2007-02-20 2:12 ` [PATCH 10/14] Early serial debug support for PPC44x David Gibson
2007-02-20 13:26 ` Segher Boessenkool
2007-02-21 0:20 ` David Gibson
2007-02-20 2:12 ` [PATCH 11/14] Add arch/powerpc driver for UIC, PPC4xx interrupt controller David Gibson
2007-02-20 2:12 ` [PATCH 5/14] zImage: Add more flexible gunzip convenience functions David Gibson
2007-02-21 0:56 ` Geoff Levand
2007-02-20 2:12 ` [PATCH 9/14] Port 44x MMU definitions to ARCH=powerpc David Gibson
2007-02-20 2:12 ` [PATCH 8/14] zImage wrapper for Ebony David Gibson
2007-02-20 2:12 ` [PATCH 6/14] zImage: Cleanup and improve prep_kernel() David Gibson
2007-02-21 0:56 ` Geoff Levand
2007-02-20 2:12 ` [PATCH 12/14] Add device tree for Ebony David Gibson
2007-02-20 15:09 ` Josh Boyer
2007-02-21 0:24 ` David Gibson
2007-02-21 12:25 ` Segher Boessenkool
2007-02-20 19:22 ` Yoder Stuart-B08248
2007-02-20 19:56 ` Segher Boessenkool
2007-02-21 4:57 ` David Gibson
2007-02-22 6:49 ` Segher Boessenkool
2007-02-20 2:12 ` [PATCH 7/14] zImage: Cleanup and improve zImage entry point David Gibson
2007-02-21 0:57 ` Geoff Levand
2007-02-20 2:12 ` [PATCH 13/14] Re-organize Kconfig code for 4xx in arch/powerpc David Gibson
2007-02-20 13:51 ` Josh Boyer
2007-02-21 0:26 ` David Gibson
2007-02-20 2:12 ` [PATCH 14/14] Support for Ebony " David Gibson
2007-02-20 14:05 ` [0/14] Ebony support, 2nd spin Josh Boyer
2007-02-20 14:14 ` Josh Boyer
2007-02-20 14:16 ` Arnd Bergmann
2007-02-20 14:46 ` Josh Boyer
2007-02-20 15:03 ` Josh Boyer
2007-02-20 15:07 ` [0/14] Ebony support, 2nd spi Arnd Bergmann
2007-02-20 15:17 ` Josh Boyer
2007-02-20 15:25 ` Segher Boessenkool
2007-02-20 18:02 ` Arnd Bergmann
2007-02-20 19:51 ` Segher Boessenkool
2007-02-20 20:29 ` Josh Boyer
2007-02-21 0:38 ` David Gibson
2007-02-21 1:30 ` Josh Boyer
2007-02-21 0:44 ` David Gibson
2007-02-20 15:11 ` [0/14] Ebony support, 2nd spin Segher Boessenkool
2007-02-21 0:33 ` David Gibson
2007-02-21 0:35 ` David Gibson
2007-02-21 9:06 ` Arnd Bergmann
2007-02-25 23:57 ` David Gibson
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=45DB094A.2040309@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.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.