From patchwork Fri Nov 4 15:31:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Vandeputte X-Patchwork-Id: 691291 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t9Qqy2my4z9t1H for ; Sat, 5 Nov 2016 02:34:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ncentric.com header.i=@ncentric.com header.b="wUqplD99"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2gTb-0007nM-6b; Fri, 04 Nov 2016 15:32:19 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2gTY-0007Lz-LI for lede-dev@lists.infradead.org; Fri, 04 Nov 2016 15:32:17 +0000 Received: by mail-wm0-x229.google.com with SMTP id n67so57155225wme.1 for ; Fri, 04 Nov 2016 08:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncentric.com; s=google; h=from:to:cc:subject:date:message-id; bh=IagWHX8T4sHqUVexLl8gXK5zmBmTTiDzQQDziPpCFXc=; b=wUqplD99v7pOiXjGOecg1Atxe9fFqZizT/FB0KJq09TSHSlxx/cq8wFC6nDXihuOpR cOLs86tTuWlFVWm2WIfjd9AhMwNSupx7jWuTAXAP1G78cnopVe2aO6ADnKrzCh4LNj5s +Mr9hBhJnyEbXiVcVpTBUy8JAAKRgD1kePbms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IagWHX8T4sHqUVexLl8gXK5zmBmTTiDzQQDziPpCFXc=; b=Arh6EL8gn3nbe+BNQe7GGfF5n8xqcWimw9pZ93z5vlVWr3ZEHj8pfmsb2VlFv5hWyG cVjvtSbVSHIpN9qO8WhtcX1RSkkC2yfj8MST8NDpr8G1BCcqweyYN5fhtFPEtWCpcN2O EFMwjQPmmzRmvB+d7vnW64j92SoJBW1K8LTZQXo7RtFNRkJwcYhqxeoqL/AI8/BS0FUn SFIQKjwtRo15KH613HS7uGuFUMQqnoFlmGlTiv+NXQvEQC7lHYQm6YNjHGGkfx2unrHl qM7P0b/EGMSPcadyrlq0dDIhUXFpXZwj9ahRhFlE0LfGNUSrDiP6ptfD9en1ZCjNDAj8 tVrg== X-Gm-Message-State: ABUngvd6xhvsLVm2wTxj87zp0Rg9j1d3fg/xvAlK0PEHogY0wD/f9GEjux7X526h0P7fhUaU X-Received: by 10.28.130.199 with SMTP id e190mr4177852wmd.110.1478273513618; Fri, 04 Nov 2016 08:31:53 -0700 (PDT) Received: from localhost.localdomain (d515300d8.static.telenet.be. [81.83.0.216]) by smtp.googlemail.com with ESMTPSA id jq10sm14811197wjb.46.2016.11.04.08.31.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Nov 2016 08:31:52 -0700 (PDT) From: Koen Vandeputte To: lede-dev@lists.infradead.org Date: Fri, 4 Nov 2016 16:31:19 +0100 Message-Id: <1478273479-6786-1-git-send-email-koen.vandeputte@ncentric.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161104_083217_087289_A8B9249F X-CRM114-Status: GOOD ( 10.25 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:229 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH] cns3xxx: fix UART resource overlap X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tharvey@gateworks.com MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 --- 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,