linux-mips
[Top] [All Lists]

Re: [PATCH] Physical addresses fix for au1x00 serial driver

To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Subject: Re: [PATCH] Physical addresses fix for au1x00 serial driver
From: Rodolfo Giometti <giometti@linux.it>
Date: Thu, 4 May 2006 15:58:37 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <20060504132413.GD19913@gundam.enneenne.com>
Organization: GNU/Linux Device Drivers, Embedded Systems and Courses
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060504101112.GC19913@gundam.enneenne.com> <4459F72D.4010408@ru.mvista.com> <20060504132413.GD19913@gundam.enneenne.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.5.1+cvs20040105i
On Thu, May 04, 2006 at 03:24:13PM +0200, Rodolfo Giometti wrote:
> >    This is not quite correct. The UARTs take up 1 MB of memory each.

The patch:

   diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
   index 8365d5b..3473e7a 100644
   --- a/drivers/serial/8250.c
   +++ b/drivers/serial/8250.c
   @@ -1935,8 +1935,10 @@ static int serial8250_request_std_resour
        int ret = 0;
    
        switch (up->port.iotype) {
   -    case UPIO_MEM:
        case UPIO_AU:
   +            size = 0x100000;
   +            /* fall thru */
   +    case UPIO_MEM:
                if (!up->port.mapbase)
                        break;
      
I'll merge this patch with my previous one ASAP...

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti@enneenne.com
Linux Device Driver                             giometti@gnudd.com
Embedded Systems                                giometti@linux.it
UNIX programming                     phone:     +39 349 2432127

Attachment: signature.asc
Description: Digital signature

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