[Top] [All Lists]

[PATCH 1/2] serial: 8250: reduce Alchemy serial port space size

To: Andrew Morton <>, Ralf Baechle <>
Subject: [PATCH 1/2] serial: 8250: reduce Alchemy serial port space size
From: Manuel Lauss <>
Date: Wed, 28 Oct 2009 20:09:13 +0100
Cc: Linux-MIPS <>,, Manuel Lauss <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=1Ew/CskWQIWczkE93PjJgNFTwJJyyZ6eo4DeQPrWhBU=; b=GHo1Yxt83kj7cT/vH5RCzMHg/u4hBVoPVwRu4n4Oqy17uv+M/WvdKEdEIPxGteQScL jzSKSdaaI5joCGbpVYBYxB/wDkrmK1pw5oyvhEQ34Yg8w5Cd+vpxfC3XmVpvTkJs9+hG nzfRVGfJUjUbZnxOjQ8mRDmdwBk0WV0M+DHYM=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=DB1wUTg8Km3rUCEuumV/2k6qZ2g1guHk6k7BeIxnf6pCgJhVeCh6ga9m9eHsly4qkN 3hqjk1/QswM2kox6BxBxSl81OED7S+atn92Adp1bRwZBWPPxN/Ufv2fgjMEbWKBxX/2j v8ivi0KWwTGljChnzkuiWgIHieLsR6UqY/x0w=
Original-recipient: rfc822;
This patch limits the amount of address space claimed for Alchemy serial
ports to 0x1000.  On the Au1300, ports are only 0x1000 apart, and the
registers only extend to 0x110 at most on all supported alchemy models.

Signed-off-by: Manuel Lauss <>
I'm not sure who to send this patch to; I added Ralf Baechle because
he always takes my alchemy patches, 8250 is unmaintained and this
patch is required for adding support for a new alchemy model (this patch
gets me a working serial console on the DB1300).

 drivers/serial/8250.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index b1ae774..2ff81eb 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2429,7 +2429,7 @@ serial8250_pm(struct uart_port *port, unsigned int state,
 static unsigned int serial8250_port_size(struct uart_8250_port *pt)
        if (pt->port.iotype == UPIO_AU)
-               return 0x100000;
+               return 0x1000;
        if (is_omap_port(pt))
                return 0x16 << pt->port.regshift;

<Prev in Thread] Current Thread [Next in Thread>