From patchwork Wed Dec 21 11:31:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9482925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E8CE60237 for ; Wed, 21 Dec 2016 11:33:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CF1427F9F for ; Wed, 21 Dec 2016 11:33:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B66D27FB6; Wed, 21 Dec 2016 11:33:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6E6E527F9F for ; Wed, 21 Dec 2016 11:33:56 +0000 (UTC) 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 1cJf87-0003li-HZ; Wed, 21 Dec 2016 11:32:19 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cJf7w-0003SG-FQ for linux-arm-kernel@lists.infradead.org; Wed, 21 Dec 2016 11:32:11 +0000 Received: by mail-wm0-x22f.google.com with SMTP id t79so156007916wmt.0 for ; Wed, 21 Dec 2016 03:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=N6SnRi9/+jFLycQbxAzR3ugjzY23b14M9ySLdYxAy5I=; b=dOP0yDCUB+T+qKOKuSHVBv6PWLvgdlvz5PkrBk+JAOupAeZzi6uFHLyGxUWgZ20TPR 2gtZJkae47HK9SgxfANQW2gWf3/j4XWZZydg8V9TPiD1D1AbfVHYwC802FSeYVRok76z 4oCkhd+OfNynjT391kW1RwGVzGNpCPF0t8CWNp2bm5DLUKP+RLN0ddbsJOhyuemo+MhX dP2b7MZh4COxEWZqPzjd0EQ2ct9JD2DnsDjkkJPvhw+43XtENOa9N9uS7nmeIj8Y/p+4 qvIYxxOUDb+NCLFDlr85g+tZw0XISYCDeobzCuEMfqEP2o7YuVMhQmvKNGZrZXwdwyC9 oEYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=N6SnRi9/+jFLycQbxAzR3ugjzY23b14M9ySLdYxAy5I=; b=liwANyo5w5uxgRDqoLE9E2CK+lu4AyVeX0o0aEO8pnj5P3yQeQuJDKbQv1ljgfRygD sFKP4PR6A3Xn0kLE/Ag47tmg0TvRXBB9hdi7MpIUtZT+M7zgazxgpdAdzwT9RDrBZrBC f8wemYhAaNpcAHgoRyQ3Jgy/40Pw4ac9gFpufokRcY+WeQnhctE4FG0BBj2fEZ0dXYIR XNkfmotBkJU0xddT2i5D5Y6za+XmTo/dqCQMxmQwp7YLrRYhkcL5gwZv8nSVOiqfcdy9 rKC3Yj0xAILTWXhJsWTiiFdp7lYEfnLWH9TOQqzyGXDZRdfBFJXxZVkMizDnBLgnYl4/ r6cA== X-Gm-Message-State: AIkVDXIHGrPWK2TWQtqldYHWzZbwKfUd8OtB5nmiccRJHiGDe77wNDCDjCggQY2/KsK3uVsB X-Received: by 10.28.185.78 with SMTP id j75mr6253462wmf.14.1482319905795; Wed, 21 Dec 2016 03:31:45 -0800 (PST) Received: from boomer.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id r7sm30129729wjp.43.2016.12.21.03.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 03:31:45 -0800 (PST) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH] ARM64: dts: meson-gxbb-odroidc2: fix GbE tx link breakage Date: Wed, 21 Dec 2016 12:31:34 +0100 Message-Id: <1482319894-656-1-git-send-email-jbrunet@baylibre.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-20161221_033208_952033_A5DE9FC8 X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP OdroidC2 GbE link breaks under heavy tx transfer. This happens even if the MAC does not enable Energy Efficient Ethernet (No Low Power state Idle on the Tx path). The problem seems to come from the phy Rx path, entering the LPI state. Disabling EEE advertisement on the phy prevent this feature to be negociated with the link partner and solve the issue. Signed-off-by: Jerome Brunet --- This patch is based on Linus recent master branch [0] This patch depends on the series [1] which has been merged in this branch. 0: ba6d973f78eb ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net") 1: http://lkml.kernel.org/r/1480326409-25419-1-git-send-email-jbrunet@baylibre.com Fix integration of eee-broken-modes arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 238fbeacd330..d8933e9e9a5a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -147,6 +147,18 @@ status = "okay"; pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; + phy-handle = <ð_phy0>; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + reg = <0>; + eee-broken-1000t; + }; + }; }; &ir {