From patchwork Wed Dec 18 22:41:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 3374241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E5B38C0D4A for ; Wed, 18 Dec 2013 22:47:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80C43205BB for ; Wed, 18 Dec 2013 22:47:16 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A30C6205BE for ; Wed, 18 Dec 2013 22:47:11 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtPtT-0000nj-Hm; Wed, 18 Dec 2013 22:47:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtPtR-0006jm-46; Wed, 18 Dec 2013 22:47:05 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtPtK-0006jF-Aq for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2013 22:47:02 +0000 Received: by mail-pb0-f44.google.com with SMTP id rq2so294731pbb.3 for ; Wed, 18 Dec 2013 14:46:37 -0800 (PST) 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:in-reply-to :references; bh=PUkjcQcLDAH9gh673peOzamgGoU2/2e4MkLQUvhL22A=; b=VMyo/kLa2uboMWwvL1C/HPONhIzqZmBf3DKFxmITWf5xe07p9Y5ASWazkrpp7Pcbf2 YoYJyFlRx6CuOY1TWus8HfMjQn8IjGz5m68RZNLAuLMcDgy8CQjiPkp1sF+UY/o2cKf/ 5gprVEc3S+ZFQy8IHjGtz/Y4BugX6qqPPQnwWhqd4Q6ZJpeM1J+SDt0jci0Zd5SZNQVo aaw7DoFnmqBGuicMP8Z5gdhVvyeF2lHd1xRxQTUT5gCHXd8Ar+/ZqfQ4ic5Grc+I+7Dc RWIVdha4NI5Cg5pBvgJVC/RqL/kPoiQpEiyCgWz1e3Ut49qLcIAmrMh7KS4neApTKXbZ Vxbw== X-Gm-Message-State: ALoCoQm12YYirzC2pDoEkVwC8ngAYsz02hzHYnfluRPKHrXsOjeyRNjUeeihBlT71vMXyMy3ZHR4 X-Received: by 10.66.155.162 with SMTP id vx2mr36371039pab.12.1387406442717; Wed, 18 Dec 2013 14:40:42 -0800 (PST) Received: from officeserver-2 ([63.226.49.26]) by mx.google.com with ESMTPSA id g6sm3317499pat.2.2013.12.18.14.40.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 14:40:41 -0800 (PST) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1VtPoB-0006tL-AH; Wed, 18 Dec 2013 15:41:39 -0700 From: Troy Kisky To: shawn.guo@linaro.org Subject: [PATCH V1 5/7] ARM: dts: imx6qdl-sabrelite: use GPIO_6 for FEC interrupt. Date: Wed, 18 Dec 2013 15:41:35 -0700 Message-Id: <1387406497-26430-6-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1387406497-26430-1-git-send-email-troy.kisky@boundarydevices.com> References: <1387406497-26430-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131218_174658_468542_C5FCF22F X-CRM114-Status: GOOD ( 14.97 ) X-Spam-Score: -2.6 (--) Cc: marex@denx.de, eric.nelson@boundarydevices.com, Troy Kisky , ra5478@freescale.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This works around a hardware bug. Quoting from Ranjani Vaidyanathan: All of the interrupts from the ENET block are not routed to the GPC block. Hence ENET interrupts are not able to wake up the SOC when the system is in WAIT mode. And the ENET interrupt gets serviced only when another interrupt causes the SOC to exit WAIT mode. This impacts the ENET performance. Before this patch, ping times of a Sabre Lite board are quite random: ping 192.168.0.13 -i.5 -c5 PING 192.168.0.13 (192.168.0.13) 56(84) bytes of data. 64 bytes from 192.168.0.13: icmp_req=1 ttl=64 time=15.7 ms 64 bytes from 192.168.0.13: icmp_req=2 ttl=64 time=14.4 ms 64 bytes from 192.168.0.13: icmp_req=3 ttl=64 time=13.4 ms 64 bytes from 192.168.0.13: icmp_req=4 ttl=64 time=12.4 ms 64 bytes from 192.168.0.13: icmp_req=5 ttl=64 time=11.4 ms --- 192.168.0.13 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 11.431/13.501/15.746/1.508 ms diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi index ef5ce885..9909c36 100644 --- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi @@ -164,6 +164,8 @@ txd1-skew-ps = <0>; txd2-skew-ps = <0>; txd3-skew-ps = <0>; + interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, + <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; }; @@ -210,6 +212,7 @@ MX6QDL_ENET_PINGRP_RGMII_MD(0x1b0b0, 0x100b0) /* Phy reset */ MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x000b0 + MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 >; }; diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index db06e40..8b620b5 100644 --- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi @@ -163,6 +163,8 @@ txd1-skew-ps = <0>; txd2-skew-ps = <0>; txd3-skew-ps = <0>; + interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, + <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; }; @@ -209,6 +211,7 @@ MX6QDL_ENET_PINGRP_RGMII_MD(0x1b0b0, 0x100b0) /* Phy reset */ MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x000b0 + MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 >; };