[source] cns3xxx: fix UART resource overlap

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 5 02:18:38 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/347884b3455505146d0ff0dd6446d9e17686a50b

commit 347884b3455505146d0ff0dd6446d9e17686a50b
Author: Koen Vandeputte <koen.vandeputte at ncentric.com>
AuthorDate: Fri Nov 4 16:31:19 2016 +0100

    cns3xxx: fix UART resource overlap
    
    Port 1 registers the same IO resources as port 2 in the kernel resource
    tree, which is wrong.
    Fix this by using it's own resources as indicated in the overview
    (cns3xxx.h).
    
    Compiled & Tested on several GW2388-4 laguna boards which utilizes all 3
    ports.
    
    Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
---
 target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
index 5df69f3..4a59612 100644
--- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
+++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
@@ -374,8 +374,8 @@ static struct resource laguna_uart_resources[] = {
 		.end   = CNS3XXX_UART0_BASE + SZ_4K - 1,
 		.flags    = IORESOURCE_MEM
 	},{
-		.start = CNS3XXX_UART2_BASE,
-		.end   = CNS3XXX_UART2_BASE + SZ_4K - 1,
+		.start = CNS3XXX_UART1_BASE,
+		.end   = CNS3XXX_UART1_BASE + SZ_4K - 1,
 		.flags    = IORESOURCE_MEM
 	},{
 		.start = CNS3XXX_UART2_BASE,



More information about the lede-commits mailing list