linux-mips
[Top] [All Lists]

[PATCH] Au1xx0: OHCI region size off-by-one

To: Linux-MIPS <linux-mips@linux-mips.org>
Subject: [PATCH] Au1xx0: OHCI region size off-by-one
From: Sergei Shtylylov <sshtylyov@ru.mvista.com>
Date: Tue, 21 Mar 2006 02:38:30 +0300
Cc: Manish Lachwani <mlachwani@mvista.com>, Jordan Crouse <jordan.crouse@amd.com>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Hello Manish.

   Au1xx0 OHCI driver claims one byte too many for the memory mapped
controller registers.

WBR, Sergei

diff --git a/arch/mips/au1000/common/platform.c 
b/arch/mips/au1000/common/platform.c
index d7a8f0a..79407ab 100644
--- a/arch/mips/au1000/common/platform.c
+++ b/arch/mips/au1000/common/platform.c
@@ -20,7 +20,7 @@
 static struct resource au1xxx_usb_ohci_resources[] = {
        [0] = {
                .start          = USB_OHCI_BASE,
-               .end            = USB_OHCI_BASE + USB_OHCI_LEN,
+               .end            = USB_OHCI_BASE + USB_OHCI_LEN - 1,
                .flags          = IORESOURCE_MEM,
        },
        [1] = {


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