From patchwork Sat May 18 22:47:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17040 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A297724AAB for ; Sat, 18 May 2013 22:48:35 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r11sf6091181yen.11 for ; Sat, 18 May 2013 15:47:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=heQY0O2Ezm5iT4z6GDupJZS1MQLpQDRM4XuKlQQxjfc=; b=hhtube0+YocmzE5JKEuWN2ge8q3tgjMuyYvjvfjiFX/i08mmV0q4syN7e1390r1vFt GNmj/IvVwdSFjbyvlAi8pTt9vYu7cPPEGSq2jxQ8u9JbiS0XzlTsqJxnHBSA+w0rx9PA 8Xg01N7kiFRcRdmLtunTMFSxsAPnUJJKggV9DfnHtxFm4jXtTdoZPrn/qMkiu6S1H18K JX7mMon9C4SBbyKGdpt8ma7FPG+hmfnEnVxNRtHb5+akvgeaSL7BdFQ9ZftIgman/vA8 08rAVRAPrKQAjpsrlA3s5oCQwH+yVDK0O5QhUJNaVrqlPXgtA1fQdB99O6Fjj0fQK/jd qntw== X-Received: by 10.224.200.202 with SMTP id ex10mr31278801qab.8.1368917270798; Sat, 18 May 2013 15:47:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.225 with SMTP id b1ls1692993qek.33.gmail; Sat, 18 May 2013 15:47:49 -0700 (PDT) X-Received: by 10.220.96.76 with SMTP id g12mr31645395vcn.53.1368917269618; Sat, 18 May 2013 15:47:49 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id ef7si5091971vdc.137.2013.05.18.15.47.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 15:47:49 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22a; Received: by mail-ve0-f170.google.com with SMTP id 15so3059393vea.15 for ; Sat, 18 May 2013 15:47:49 -0700 (PDT) X-Received: by 10.52.69.200 with SMTP id g8mr9754047vdu.4.1368917269374; Sat, 18 May 2013 15:47:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp28494vcs; Sat, 18 May 2013 15:47:48 -0700 (PDT) X-Received: by 10.112.168.166 with SMTP id zx6mr15350290lbb.83.1368917267544; Sat, 18 May 2013 15:47:47 -0700 (PDT) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [2a00:1450:4010:c03::22a]) by mx.google.com with ESMTPS id ap10si5600493lac.98.2013.05.18.15.47.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 15:47:46 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4010:c03::22a is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=2a00:1450:4010:c03::22a; Received: by mail-la0-f42.google.com with SMTP id fg20so3134044lab.1 for ; Sat, 18 May 2013 15:47:46 -0700 (PDT) X-Received: by 10.112.171.169 with SMTP id av9mr570022lbc.130.1368917266165; Sat, 18 May 2013 15:47:46 -0700 (PDT) Received: from localhost.localdomain (c83-249-208-67.bredband.comhem.se. [83.249.208.67]) by mx.google.com with ESMTPSA id je10sm2855817lbc.3.2013.05.18.15.47.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 18 May 2013 15:47:45 -0700 (PDT) From: Linus Walleij To: arm@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH] ARM: nomadik: fix IRQ assignment for SMC ethernet Date: Sun, 19 May 2013 00:47:39 +0200 Message-Id: <1368917259-7883-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.1.4 X-Gm-Message-State: ALoCoQkqqXfu/gqcJsA8z4i1DfoxkeXlhekqq8p4dlpmAAumSTor5VhQnJjDJ9qX9pgAOf+RYFnZ X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The assignment of IRQ for the SMC91x ethernet adapter had two problems making it non-working: - It was not put into the ethernet device node. Let's do this by using the board-specific overlay, so we can make other overlays on other Nomadik boards. - The IRQ number was actually completely wrong, this was the number for NHK8815, not S8815. After this ethernet starts working on the USB S8815. Signed-off-by: Linus Walleij --- ARM SoC folks: I would appreciate if you apply this patch directly for v3.10 fixes. --- arch/arm/boot/dts/ste-nomadik-s8815.dts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/ste-nomadik-s8815.dts b/arch/arm/boot/dts/ste-nomadik-s8815.dts index b28fbf3..6f82d93 100644 --- a/arch/arm/boot/dts/ste-nomadik-s8815.dts +++ b/arch/arm/boot/dts/ste-nomadik-s8815.dts @@ -14,13 +14,19 @@ bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk"; }; + /* This is where the interrupt is routed on the S8815 board */ + external-bus@34000000 { + ethernet@300 { + interrupt-parent = <&gpio3>; + interrupts = <8 0x1>; + }; + }; + /* Custom board node with GPIO pins to active etc */ usb-s8815 { /* The S8815 is using this very GPIO pin for the SMSC91x IRQs */ ethernet-gpio { - gpios = <&gpio3 19 0x1>; - interrupts = <19 0x1>; - interrupt-parent = <&gpio3>; + gpios = <&gpio3 8 0x1>; }; /* This will bias the MMC/SD card detect line */ mmcsd-gpio {