[{"id":1765121,"web_url":"http://patchwork.ozlabs.org/comment/1765121/","msgid":"<20170908071954.j2bhtw4wqa27fald@flea.lan>","list_archive_url":null,"date":"2017-09-08T07:19:54","subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","submitter":{"id":12916,"url":"http://patchwork.ozlabs.org/api/people/12916/","name":"Maxime Ripard","email":"maxime.ripard@free-electrons.com"},"content":"On Fri, Sep 08, 2017 at 09:11:47AM +0200, Corentin Labbe wrote:\n> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> index 1c2387bd5df6..968908761194 100644\n> --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> @@ -50,6 +50,7 @@\n>  \tcompatible = \"friendlyarm,nanopi-neo2\", \"allwinner,sun50i-h5\";\n>  \n>  \taliases {\n> +\t\tethernet0 = &emac;\n>  \t\tserial0 = &uart0;\n>  \t};\n>  \n> @@ -108,6 +109,22 @@\n>  \tstatus = \"okay\";\n>  };\n>  \n> +&emac {\n> +\tpinctrl-names = \"default\";\n> +\tpinctrl-0 = <&emac_rgmii_pins>;\n> +\tphy-supply = <&reg_gmac_3v3>;\n> +\tphy-handle = <&ext_rgmii_phy>;\n> +\tphy-mode = \"rgmii\";\n> +\tstatus = \"okay\";\n> +};\n> +\n> +&mdio {\n> +\text_rgmii_phy: ethernet-phy@7 {\n> +\t\tcompatible = \"ethernet-phy-ieee802.3-c22\";\n> +\t\treg = <7>;\n> +\t};\n> +};\n> +\n\nThis won't compile, you don't have that node in the H5 DTSI.\n\nMaxime","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"AfNpMrT7\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpTHg155Dz9s83\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 17:20:31 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDaT-0000D0-Vf; Fri, 08 Sep 2017 07:20:26 +0000","from mail.free-electrons.com ([62.4.15.54])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDaM-0007NU-42 for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 07:20:20 +0000","by mail.free-electrons.com (Postfix, from userid 110)\n\tid CCDB92096B; Fri,  8 Sep 2017 09:19:53 +0200 (CEST)","from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr\n\t[90.63.216.87])\n\tby mail.free-electrons.com (Postfix) with ESMTPSA id A59F42095E;\n\tFri,  8 Sep 2017 09:19:53 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc:\n\tList-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:\n\tIn-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=h4XFwPeCUzcOure9H94M8nKsEfaqxFn9LGl6BwRxlTQ=;\n\tb=AfNpMrT7HyZ7Fo8ihuPwM6x9u\n\tLD4vjxXS1u3bCn+/AG90/cS4TIMGRy1fjYXjQ26/dma0AftWLfInUqHFGUsQ9c770zI27xhIH+58s\n\tQi3TV9V3RzYjMP0hvRyPMN4iNw8lZwjqsF/qwL8z+DlNUpv/ZWmZo8hyxA8SVkOqmenAmNRfpwsQA\n\t1pFG6Efqll+lwjBKAWBi2+1aq0mZWxnN+DhXqN0QLapGLD+oZ2d7+VC48PcO2UJRYdkOV9JPIzxRJ\n\tbMafcHXgGqoqDGShQQF8lEczIxTak9LK9hNG0e62JqT30nu9EU6Fe4Ni4EBJfR5KipjjqrFDXzS4Y\n\tU7fJhIuww==;","X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on\n\tmail.free-electrons.com","X-Spam-Level":"","X-Spam-Status":"No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT,\n\tURIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0","Date":"Fri, 8 Sep 2017 09:19:54 +0200","From":"Maxime Ripard <maxime.ripard@free-electrons.com>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","Message-ID":"<20170908071954.j2bhtw4wqa27fald@flea.lan>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-2-clabbe.montjoie@gmail.com>","MIME-Version":"1.0","In-Reply-To":"<20170908071156.5115-2-clabbe.montjoie@gmail.com>","User-Agent":"NeoMutt/20170714 (1.8.3)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_002018_567504_15BDF9DE ","X-CRM114-Status":"GOOD (  10.74  )","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, robh+dt@kernel.org, netdev@vger.kernel.org,\n\tpeppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org","Content-Type":"multipart/mixed;\n\tboundary=\"===============5987062441323688715==\"","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765125,"web_url":"http://patchwork.ozlabs.org/comment/1765125/","msgid":"<20170908072538.rqsp6dobwsqmzrsr@flea.lan>","list_archive_url":null,"date":"2017-09-08T07:25:38","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":12916,"url":"http://patchwork.ozlabs.org/api/people/12916/","name":"Maxime Ripard","email":"maxime.ripard@free-electrons.com"},"content":"On Fri, Sep 08, 2017 at 09:11:51AM +0200, Corentin Labbe wrote:\n> This patch add documentation about the MDIO switch used on sun8i-h3-emac\n> for integrated PHY.\n> \n> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n> ---\n>  .../devicetree/bindings/net/dwmac-sun8i.txt        | 127 +++++++++++++++++++--\n>  1 file changed, 120 insertions(+), 7 deletions(-)\n> \n> diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> index 725f3b187886..3fa0e54825ea 100644\n> --- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> @@ -39,7 +39,7 @@ Optional properties for the following compatibles:\n>  - allwinner,leds-active-low: EPHY LEDs are active low\n>  \n>  Required child node of emac:\n> -- mdio bus node: should be named mdio\n> +- mdio bus node: should be labelled mdio\n\nlabels do not end up in the final DT (while the names do) so why are\nyou making this change?\n\n>  \n>  Required properties of the mdio node:\n>  - #address-cells: shall be 1\n> @@ -48,14 +48,28 @@ Required properties of the mdio node:\n>  The device node referenced by \"phy\" or \"phy-handle\" should be a child node\n>  of the mdio node. See phy.txt for the generic PHY bindings.\n>  \n> -Required properties of the phy node with the following compatibles:\n> +The following compatibles require an mdio-mux node called \"mdio-mux\":\n> +  - \"allwinner,sun8i-h3-emac\"\n> +  - \"allwinner,sun8i-v3s-emac\":\n> +Required properties for the mdio-mux node:\n> +  - compatible = \"mdio-mux\"\n> +  - one child mdio for the integrated mdio\n> +  - one child mdio for the external mdio if present (V3s have none)\n> +Required properties for the mdio-mux children node:\n> +  - reg: 0 for internal MDIO bus, 1 for external MDIO bus\n> +\n> +The following compatibles require a PHY node representing the integrated\n> +PHY, under the integrated MDIO bus node if an mdio-mux node is used:\n>    - \"allwinner,sun8i-h3-emac\",\n>    - \"allwinner,sun8i-v3s-emac\":\n> +\n> +Required properties of the integrated phy node:\n>  - clocks: a phandle to the reference clock for the EPHY\n>  - resets: a phandle to the reset control for the EPHY\n> +- phy-is-integrated\n> +- Should be a child of the integrated mdio\n\nI'm not sure what you mean by that, you ask that it should (so not\nrequired?) be a child of the integrated mdio...\n\n>  \n> -Example:\n> -\n> +Example with integrated PHY:\n>  emac: ethernet@1c0b000 {\n>  \tcompatible = \"allwinner,sun8i-h3-emac\";\n>  \tsyscon = <&syscon>;\n> @@ -72,13 +86,112 @@ emac: ethernet@1c0b000 {\n>  \tphy-handle = <&int_mii_phy>;\n>  \tphy-mode = \"mii\";\n>  \tallwinner,leds-active-low;\n> +\n> +\tmdio0: mdio {\n\n(You don't label it mdio here, unlike what was asked before)\n\n> +\t\t#address-cells = <1>;\n> +\t\t#size-cells = <0>;\n> +\t\tcompatible = \"snps,dwmac-mdio\";\n> +\t};\n\nI think Rob wanted that node gone?\n\n> +\tmdio-mux {\n> +\t\tcompatible = \"mdio-mux\";\n> +\t\t#address-cells = <1>;\n> +\t\t#size-cells = <0>;\n> +\n> +\t\tint_mdio: mdio@1 {\n> +\t\t\treg = <0>;\n> +\t\t\t#address-cells = <1>;\n> +\t\t\t#size-cells = <0>;\n> +\t\t\tint_mii_phy: ethernet-phy@1 {\n> +\t\t\t\treg = <1>;\n> +\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> +\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> +\t\t\t\tphy-is-integrated\n> +\t\t\t};\n> +\t\t};\n\n... And in your example it's a child of the mdio mux?\n\n> +\t\text_mdio: mdio@0 {\n> +\t\t\treg = <1>;\n> +\t\t\t#address-cells = <1>;\n> +\t\t\t#size-cells = <0>;\n> +\t\t};\n> +\t};\n> +};\n> +\n> +Example with external PHY:\n> +emac: ethernet@1c0b000 {\n> +\tcompatible = \"allwinner,sun8i-h3-emac\";\n> +\tsyscon = <&syscon>;\n> +\treg = <0x01c0b000 0x104>;\n> +\tinterrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;\n> +\tinterrupt-names = \"macirq\";\n> +\tresets = <&ccu RST_BUS_EMAC>;\n> +\treset-names = \"stmmaceth\";\n> +\tclocks = <&ccu CLK_BUS_EMAC>;\n> +\tclock-names = \"stmmaceth\";\n> +\t#address-cells = <1>;\n> +\t#size-cells = <0>;\n> +\n> +\tphy-handle = <&ext_rgmii_phy>;\n> +\tphy-mode = \"rgmii\";\n> +\tallwinner,leds-active-low;\n> +\n> +\tmdio0: mdio {\n> +\t\t#address-cells = <1>;\n> +\t\t#size-cells = <0>;\n> +\t\tcompatible = \"snps,dwmac-mdio\";\n> +\t};\n> +\n> +\tmdio-mux {\n> +\t\tcompatible = \"mdio-mux\";\n> +\t\t#address-cells = <1>;\n> +\t\t#size-cells = <0>;\n> +\n> +\t\tint_mdio: mdio@1 {\n> +\t\t\treg = <0>;\n> +\t\t\t#address-cells = <1>;\n> +\t\t\t#size-cells = <0>;\n> +\t\t\tint_mii_phy: ethernet-phy@1 {\n> +\t\t\t\treg = <1>;\n> +\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> +\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> +\t\t\t\tphy-is-integrated\n> +\t\t\t};\n> +\t\t};\n> +\t\text_mdio: mdio@0 {\n> +\t\t\treg = <1>;\n> +\t\t\t#address-cells = <1>;\n> +\t\t\t#size-cells = <0>;\n> +\t\t\text_rgmii_phy: ethernet-phy@1 {\n> +\t\t\t\treg = <1>;\n> +\t\t\t};\n> +\t\t};\n> +\t};\n> +};\n> +\n> +Example with SoC without integrated PHY\n> +\n> +emac: ethernet@1c0b000 {\n> +\tcompatible = \"allwinner,sun8i-a83t-emac\";\n> +\tsyscon = <&syscon>;\n> +\treg = <0x01c0b000 0x104>;\n> +\tinterrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;\n> +\tinterrupt-names = \"macirq\";\n> +\tresets = <&ccu RST_BUS_EMAC>;\n> +\treset-names = \"stmmaceth\";\n> +\tclocks = <&ccu CLK_BUS_EMAC>;\n> +\tclock-names = \"stmmaceth\";\n> +\t#address-cells = <1>;\n> +\t#size-cells = <0>;\n> +\n> +\tphy-handle = <&ext_rgmii_phy>;\n> +\tphy-mode = \"rgmii\";\n> +\n>  \tmdio: mdio {\n> +\t\tcompatible = \"snps,dwmac-mdio\";\n>  \t\t#address-cells = <1>;\n>  \t\t#size-cells = <0>;\n> -\t\tint_mii_phy: ethernet-phy@1 {\n> +\t\text_rgmii_phy: ethernet-phy@1 {\n>  \t\t\treg = <1>;\n> -\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> -\t\t\tresets = <&ccu RST_BUS_EPHY>;\n>  \t\t};\n>  \t};\n>  };\n> -- \n> 2.13.5\n>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"l2MMLOqs\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpTQ66mdYz9s83\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 17:26:06 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDfv-0004BI-Tc; Fri, 08 Sep 2017 07:26:03 +0000","from mail.free-electrons.com ([62.4.15.54])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDfs-00047W-4H for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 07:26:02 +0000","by mail.free-electrons.com (Postfix, from userid 110)\n\tid 04E232096B; Fri,  8 Sep 2017 09:25:38 +0200 (CEST)","from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr\n\t[90.63.216.87])\n\tby mail.free-electrons.com (Postfix) with ESMTPSA id CCC4E20963;\n\tFri,  8 Sep 2017 09:25:37 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc:\n\tList-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:\n\tIn-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=P8ygnON703YlX5r1OpkoGu8tT1vygGt/epwegwtN96s=;\n\tb=l2MMLOqsN0LcjuflGt2lFE6i5\n\tW2mWNHznCDY2AUh/b+mZwvr6gQpf/XO8CFkk2k2F5MH24zXQN+vl7/A0PLmdWPz8fi6pG8tJe0SBr\n\tiuWIcmbiLcY3hnSHl28hTbmsfWKxyCfsri+MvfujaFN14ch3QxWnDk7ATgPANVzlXzM2BsmwfdSgW\n\tgEi1CH1NYK8zwv5kPItFszlsPsRoTszBFYnctW0vflF59+XUT5lQFj7kyAcoT0463OgRqacujk4jg\n\tQX9hlrVhTZmG61hWtQQYyqGDs8dH+OkBWL9/LgJJlKC/SFeAKjSmNWQJa/RkQgg5++T4O2vipCKWt\n\trfBqA1oWA==;","X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on\n\tmail.free-electrons.com","X-Spam-Level":"","X-Spam-Status":"No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT\n\tshortcircuit=ham autolearn=disabled version=3.4.0","Date":"Fri, 8 Sep 2017 09:25:38 +0200","From":"Maxime Ripard <maxime.ripard@free-electrons.com>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170908072538.rqsp6dobwsqmzrsr@flea.lan>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>","MIME-Version":"1.0","In-Reply-To":"<20170908071156.5115-6-clabbe.montjoie@gmail.com>","User-Agent":"NeoMutt/20170714 (1.8.3)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_002600_482393_AD03BBF2 ","X-CRM114-Status":"GOOD (  21.23  )","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, robh+dt@kernel.org, netdev@vger.kernel.org,\n\tpeppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org","Content-Type":"multipart/mixed;\n\tboundary=\"===============9114812314494944772==\"","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765132,"web_url":"http://patchwork.ozlabs.org/comment/1765132/","msgid":"<20170908073657.GA29999@Red>","list_archive_url":null,"date":"2017-09-08T07:36:57","subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 09:19:54AM +0200, Maxime Ripard wrote:\n> On Fri, Sep 08, 2017 at 09:11:47AM +0200, Corentin Labbe wrote:\n> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> > index 1c2387bd5df6..968908761194 100644\n> > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> > @@ -50,6 +50,7 @@\n> >  \tcompatible = \"friendlyarm,nanopi-neo2\", \"allwinner,sun50i-h5\";\n> >  \n> >  \taliases {\n> > +\t\tethernet0 = &emac;\n> >  \t\tserial0 = &uart0;\n> >  \t};\n> >  \n> > @@ -108,6 +109,22 @@\n> >  \tstatus = \"okay\";\n> >  };\n> >  \n> > +&emac {\n> > +\tpinctrl-names = \"default\";\n> > +\tpinctrl-0 = <&emac_rgmii_pins>;\n> > +\tphy-supply = <&reg_gmac_3v3>;\n> > +\tphy-handle = <&ext_rgmii_phy>;\n> > +\tphy-mode = \"rgmii\";\n> > +\tstatus = \"okay\";\n> > +};\n> > +\n> > +&mdio {\n> > +\text_rgmii_phy: ethernet-phy@7 {\n> > +\t\tcompatible = \"ethernet-phy-ieee802.3-c22\";\n> > +\t\treg = <7>;\n> > +\t};\n> > +};\n> > +\n> \n> This won't compile, you don't have that node in the H5 DTSI.\n> \n\nSince H5 DTSI include arm/sunxi-h3-h5.dtsi it compiles.\nFurthermore, I restested just now and confirm, it compiles fine.\n\nRegards","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"GF/sSSxX\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"hYuU312o\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpTgP0yMkz9sBW\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 17:37:37 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDr4-0000O6-GD; Fri, 08 Sep 2017 07:37:34 +0000","from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDr1-0000KA-0L for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 07:37:32 +0000","by mail-wr0-x243.google.com with SMTP id g50so847544wra.3\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 00:37:09 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tp187sm778939wme.19.2017.09.08.00.37.06\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 00:37:06 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=BoPSdQxDJos5+F10H2yR8KxTKAClYiBgwmMvw4Dm2/s=;\n\tb=GF/sSSxXbeVjke\n\tmWpXN7B4lj5DgbFaYqAAgSbPwfRVtlauqKx/NHtn0pDWewc1EeRbqzeAtuXvvoc3453mdICDuPNo/\n\tHCVK9G+D44p1nPI2MTnenONg4zMwv64wvMjPbHMglNC4GGTraLFgf/J5IpEIhnCmHpS6+E3Ykz8kG\n\tdtAiC9CucMwm4wZflQ46vOv23R5g6/ogiezuLSXGESXm9GjNqCoN2JSYVqn+fED1GjssL2dfD9JTV\n\tbOWVQDJtpHPr10JBu0xxHv+W6bYhsfwYAT0dRB0qgSvEAEKhvNz+N03edjtDLPebOcNevmSjCmDI/\n\t8szCWkegY8ve1qfGtqIA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=RC+KK2cVjz5li0vCbWA567zo24iK+o7JWb/m4pXCP1o=;\n\tb=hYuU312oHOQi3X2t+XipIcLin5e6+X7S3QxXsZcBQG1WAHeNgsaTXYt6TDD8OlAmVc\n\tsw7lFC/fFpE+QAb+lbmxnaKKtRnqY63gLyRdUBbu32fhYJSF+FfqtJ0uKFmakN9miXDj\n\tLOmCyOL/UWkxMS63tUPIfIt7JoLJNU+8hK5ki41GfRctGgqDRgZUT6+IEuqZMRW4Xsgw\n\t38V4ER9uA6UBBILspQ+xRo0WAmxQSh3aPlu3NsAwBaiB7PhxhS2mFX589dQYPwzbbgIg\n\t8x0Q8/53GXpliflE4kFMW0bcTQIL86oNBX7o29x5G8hjue5B5at6BoOj9qHL/Pm7E9/T\n\te3lQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=RC+KK2cVjz5li0vCbWA567zo24iK+o7JWb/m4pXCP1o=;\n\tb=q+TCtASzdEVKspYzoviM5t6o47F+56njEfM4mhW/1rx8zMKK7s1uG+ZUN1YpzoPAI8\n\t3PfV4KdIT9OSmCFR9wRcExoSWLp/TIwFJMbOl/HZU6S0NXLBazmk7tcP75zRRTth2wr+\n\tAB7+nXd2oqz0PnBPvsmyJ5uE8Q79RyDjtLTmSOywSzxgDFI2cn64Dq6FWrQPmD6a9YgU\n\tDEriH2bjSnK9kp29TOcRd/aSpN0/uphJo4XBaOAasG1RLuGsBZ3JZD41Hj44dHKzwpzB\n\t49pMdRUWnrRhQu1+aorABI1DYj1AnLD3X6aWbFgIRvdDHlB4aICgGrvi5yLzZLHxLtvD\n\twRTg==","X-Gm-Message-State":"AHPjjUh7BE53sfZk7uKPPZyZla/TjoOdIi6FF2OADN/dGzPDfqegdgvG\n\tP+VI53ukfau/PQ==","X-Google-Smtp-Source":"ADKCNb4BSK6VnfnP6iqng5iPgrklQ/f9L0fJYn+pDdsUhkk662S/uuxTGs0rmm5LL8Yvn/J3iAygHg==","X-Received":"by 10.223.175.230 with SMTP id y38mr1174260wrd.213.1504856227713;\n\tFri, 08 Sep 2017 00:37:07 -0700 (PDT)","Date":"Fri, 8 Sep 2017 09:36:57 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Maxime Ripard <maxime.ripard@free-electrons.com>","Subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","Message-ID":"<20170908073657.GA29999@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-2-clabbe.montjoie@gmail.com>\n\t<20170908071954.j2bhtw4wqa27fald@flea.lan>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908071954.j2bhtw4wqa27fald@flea.lan>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_003731_218516_D10DE840 ","X-CRM114-Status":"GOOD (  11.21  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:243 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, robh+dt@kernel.org, netdev@vger.kernel.org,\n\tpeppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765135,"web_url":"http://patchwork.ozlabs.org/comment/1765135/","msgid":"<CAGb2v64K3XTLJwZwYmq3r64=3_bHHGTeGyC0gfoJfL5+Ty53ag@mail.gmail.com>","list_archive_url":null,"date":"2017-09-08T07:39:04","subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","submitter":{"id":47154,"url":"http://patchwork.ozlabs.org/api/people/47154/","name":"Chen-Yu Tsai","email":"wens@csie.org"},"content":"On Fri, Sep 8, 2017 at 3:36 PM, Corentin Labbe\n<clabbe.montjoie@gmail.com> wrote:\n> On Fri, Sep 08, 2017 at 09:19:54AM +0200, Maxime Ripard wrote:\n>> On Fri, Sep 08, 2017 at 09:11:47AM +0200, Corentin Labbe wrote:\n>> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n>> > index 1c2387bd5df6..968908761194 100644\n>> > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n>> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n>> > @@ -50,6 +50,7 @@\n>> >     compatible = \"friendlyarm,nanopi-neo2\", \"allwinner,sun50i-h5\";\n>> >\n>> >     aliases {\n>> > +           ethernet0 = &emac;\n>> >             serial0 = &uart0;\n>> >     };\n>> >\n>> > @@ -108,6 +109,22 @@\n>> >     status = \"okay\";\n>> >  };\n>> >\n>> > +&emac {\n>> > +   pinctrl-names = \"default\";\n>> > +   pinctrl-0 = <&emac_rgmii_pins>;\n>> > +   phy-supply = <&reg_gmac_3v3>;\n>> > +   phy-handle = <&ext_rgmii_phy>;\n>> > +   phy-mode = \"rgmii\";\n>> > +   status = \"okay\";\n>> > +};\n>> > +\n>> > +&mdio {\n>> > +   ext_rgmii_phy: ethernet-phy@7 {\n>> > +           compatible = \"ethernet-phy-ieee802.3-c22\";\n>> > +           reg = <7>;\n>> > +   };\n>> > +};\n>> > +\n>>\n>> This won't compile, you don't have that node in the H5 DTSI.\n>>\n>\n> Since H5 DTSI include arm/sunxi-h3-h5.dtsi it compiles.\n> Furthermore, I restested just now and confirm, it compiles fine.\n\nThe order of your patches are wrong. No individual patch should\nintroduce build failures, not just the whole patch series.\n\nChenYu","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"bGm484Jc\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpTkK5gqvz9sBd\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 17:40:09 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDtW-0001k2-Ls; Fri, 08 Sep 2017 07:40:06 +0000","from smtp.csie.ntu.edu.tw ([140.112.30.61])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDtQ-0001D8-Vp for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 07:40:04 +0000","from mail-wr0-f174.google.com (mail-wr0-f174.google.com\n\t[209.85.128.174])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits))\n\t(No client certificate requested) (Authenticated sender: b93043)\n\tby smtp.csie.ntu.edu.tw (Postfix) with ESMTPSA id 38219203B0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri,  8 Sep 2017 15:39:28 +0800 (CST)","by mail-wr0-f174.google.com with SMTP id m18so3023937wrm.2\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 00:39:28 -0700 (PDT)","by 10.223.133.253 with HTTP; Fri, 8 Sep 2017 00:39:04 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=O96qY8PnyFuOtHURwJuuY7RNFbaDfpKPAmHdPCo7EUM=;\n\tb=bGm484Jc/BuEhW\n\tm6XhyA/oJlw6Vy8NJJBp6nXUnqMLc1AcL5iEd6aGyM0Six+qj5vdriowfnBtpF877ilUIvpHWqQrM\n\t86TtLzeUxV01ltBdebA6GLtI4ANX948LmqE9gWg7TtRhyyQO/PqAZYMhD3v13frjKAbRKnJZXal8Q\n\t1ZX2twP7z8r69m5T2BrHf+/5pdG/CpnxRluEhxvjdNPe4EkW/d4hmnMT23X9qt12XXGmEJMI8hyNW\n\t48hh6wK6xFL2mKGTEOmaJN0w6cpaxXX5a5Wgzo5pGIkxJG9Z10d18i/IAs312j6iEpGgKrC2ccDpL\n\t8DHT7Hyfxwwj6XdsiY5Q==;","X-Gm-Message-State":"AHPjjUjfHIF/wjeN11hp8jdBLY/AcVdKH0ikMBxi4wtYtulRn56Olawr\n\tEgAht/e6k7hkMDOTq7W5vPuTEwSoyg==","X-Google-Smtp-Source":"ADKCNb4zjrLD08tsFqh+johe+JZgliPIz2T6mGCQ2+VKOWqiFaJF0PAfzFPiXcuR1WDMtTnUOOGf/s8zJSo8a4Af/gc=","X-Received":"by 10.223.132.163 with SMTP id 32mr1180729wrg.267.1504856364815; \n\tFri, 08 Sep 2017 00:39:24 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170908073657.GA29999@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-2-clabbe.montjoie@gmail.com>\n\t<20170908071954.j2bhtw4wqa27fald@flea.lan>\n\t<20170908073657.GA29999@Red>","From":"Chen-Yu Tsai <wens@csie.org>","Date":"Fri, 8 Sep 2017 15:39:04 +0800","X-Gmail-Original-Message-ID":"<CAGb2v64K3XTLJwZwYmq3r64=3_bHHGTeGyC0gfoJfL5+Ty53ag@mail.gmail.com>","Message-ID":"<CAGb2v64K3XTLJwZwYmq3r64=3_bHHGTeGyC0gfoJfL5+Ty53ag@mail.gmail.com>","Subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_004001_210277_01CAB294 ","X-CRM114-Status":"GOOD (  11.75  )","X-Spam-Score":"-3.7 (---)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-3.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [140.112.30.61 listed in list.dnswl.org]\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[209.85.128.174 listed in dnsbl.sorbs.net]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, Andrew Lunn <andrew@lunn.ch>,\n\tFlorian Fainelli <f.fainelli@gmail.com>,\n\tAlexandre Torgue <alexandre.torgue@st.com>,\n\tdevicetree <devicetree@vger.kernel.org>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>,\n\tlinux-kernel <linux-kernel@vger.kernel.org>,\n\tChen-Yu Tsai <wens@csie.org>, \n\tRob Herring <robh+dt@kernel.org>, netdev <netdev@vger.kernel.org>,\n\tGiuseppe Cavallaro <peppe.cavallaro@st.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel <linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765138,"web_url":"http://patchwork.ozlabs.org/comment/1765138/","msgid":"<20170908074325.GB29999@Red>","list_archive_url":null,"date":"2017-09-08T07:43:25","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 09:25:38AM +0200, Maxime Ripard wrote:\n> On Fri, Sep 08, 2017 at 09:11:51AM +0200, Corentin Labbe wrote:\n> > This patch add documentation about the MDIO switch used on sun8i-h3-emac\n> > for integrated PHY.\n> > \n> > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n> > ---\n> >  .../devicetree/bindings/net/dwmac-sun8i.txt        | 127 +++++++++++++++++++--\n> >  1 file changed, 120 insertions(+), 7 deletions(-)\n> > \n> > diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > index 725f3b187886..3fa0e54825ea 100644\n> > --- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > @@ -39,7 +39,7 @@ Optional properties for the following compatibles:\n> >  - allwinner,leds-active-low: EPHY LEDs are active low\n> >  \n> >  Required child node of emac:\n> > -- mdio bus node: should be named mdio\n> > +- mdio bus node: should be labelled mdio\n> \n> labels do not end up in the final DT (while the names do) so why are\n> you making this change?\n> \n\nI misunderstood label/name.\nAnyway, this contrainst should leave due to \"snps,dwmac-mdio MDIOs are automatically registered\"\n\n> >  \n> >  Required properties of the mdio node:\n> >  - #address-cells: shall be 1\n> > @@ -48,14 +48,28 @@ Required properties of the mdio node:\n> >  The device node referenced by \"phy\" or \"phy-handle\" should be a child node\n> >  of the mdio node. See phy.txt for the generic PHY bindings.\n> >  \n> > -Required properties of the phy node with the following compatibles:\n> > +The following compatibles require an mdio-mux node called \"mdio-mux\":\n> > +  - \"allwinner,sun8i-h3-emac\"\n> > +  - \"allwinner,sun8i-v3s-emac\":\n> > +Required properties for the mdio-mux node:\n> > +  - compatible = \"mdio-mux\"\n> > +  - one child mdio for the integrated mdio\n> > +  - one child mdio for the external mdio if present (V3s have none)\n> > +Required properties for the mdio-mux children node:\n> > +  - reg: 0 for internal MDIO bus, 1 for external MDIO bus\n> > +\n> > +The following compatibles require a PHY node representing the integrated\n> > +PHY, under the integrated MDIO bus node if an mdio-mux node is used:\n> >    - \"allwinner,sun8i-h3-emac\",\n> >    - \"allwinner,sun8i-v3s-emac\":\n> > +\n> > +Required properties of the integrated phy node:\n> >  - clocks: a phandle to the reference clock for the EPHY\n> >  - resets: a phandle to the reset control for the EPHY\n> > +- phy-is-integrated\n> > +- Should be a child of the integrated mdio\n> \n> I'm not sure what you mean by that, you ask that it should (so not\n> required?) be a child of the integrated mdio...\n> \n\nI will change words to \"must\"\n\n> >  \n> > -Example:\n> > -\n> > +Example with integrated PHY:\n> >  emac: ethernet@1c0b000 {\n> >  \tcompatible = \"allwinner,sun8i-h3-emac\";\n> >  \tsyscon = <&syscon>;\n> > @@ -72,13 +86,112 @@ emac: ethernet@1c0b000 {\n> >  \tphy-handle = <&int_mii_phy>;\n> >  \tphy-mode = \"mii\";\n> >  \tallwinner,leds-active-low;\n> > +\n> > +\tmdio0: mdio {\n> \n> (You don't label it mdio here, unlike what was asked before)\n> \n> > +\t\t#address-cells = <1>;\n> > +\t\t#size-cells = <0>;\n> > +\t\tcompatible = \"snps,dwmac-mdio\";\n> > +\t};\n> \n> I think Rob wanted that node gone?\n> \n\nMDIO mux does not work without a parent MDIO, either gived by \"parent-bus\" or directly via mdio_mux_init() (like it is the case in dwmac-sun8i)\n\n> > +\tmdio-mux {\n> > +\t\tcompatible = \"mdio-mux\";\n> > +\t\t#address-cells = <1>;\n> > +\t\t#size-cells = <0>;\n> > +\n> > +\t\tint_mdio: mdio@1 {\n> > +\t\t\treg = <0>;\n> > +\t\t\t#address-cells = <1>;\n> > +\t\t\t#size-cells = <0>;\n> > +\t\t\tint_mii_phy: ethernet-phy@1 {\n> > +\t\t\t\treg = <1>;\n> > +\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> > +\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> > +\t\t\t\tphy-is-integrated\n> > +\t\t\t};\n> > +\t\t};\n> \n> ... And in your example it's a child of the mdio mux?\n> \n\nSo I confirm, integrated PHY must be a child of integrated MDIO (that must be a child of mdio-mux).\nThe example is good.\n\n> > +\t\text_mdio: mdio@0 {\n> > +\t\t\treg = <1>;\n> > +\t\t\t#address-cells = <1>;\n> > +\t\t\t#size-cells = <0>;\n> > +\t\t};\n> > +\t};\n> > +};\n> > +\n> > +Example with external PHY:\n> > +emac: ethernet@1c0b000 {\n> > +\tcompatible = \"allwinner,sun8i-h3-emac\";\n> > +\tsyscon = <&syscon>;\n> > +\treg = <0x01c0b000 0x104>;\n> > +\tinterrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;\n> > +\tinterrupt-names = \"macirq\";\n> > +\tresets = <&ccu RST_BUS_EMAC>;\n> > +\treset-names = \"stmmaceth\";\n> > +\tclocks = <&ccu CLK_BUS_EMAC>;\n> > +\tclock-names = \"stmmaceth\";\n> > +\t#address-cells = <1>;\n> > +\t#size-cells = <0>;\n> > +\n> > +\tphy-handle = <&ext_rgmii_phy>;\n> > +\tphy-mode = \"rgmii\";\n> > +\tallwinner,leds-active-low;\n> > +\n> > +\tmdio0: mdio {\n> > +\t\t#address-cells = <1>;\n> > +\t\t#size-cells = <0>;\n> > +\t\tcompatible = \"snps,dwmac-mdio\";\n> > +\t};\n> > +\n> > +\tmdio-mux {\n> > +\t\tcompatible = \"mdio-mux\";\n> > +\t\t#address-cells = <1>;\n> > +\t\t#size-cells = <0>;\n> > +\n> > +\t\tint_mdio: mdio@1 {\n> > +\t\t\treg = <0>;\n> > +\t\t\t#address-cells = <1>;\n> > +\t\t\t#size-cells = <0>;\n> > +\t\t\tint_mii_phy: ethernet-phy@1 {\n> > +\t\t\t\treg = <1>;\n> > +\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> > +\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> > +\t\t\t\tphy-is-integrated\n> > +\t\t\t};\n> > +\t\t};\n> > +\t\text_mdio: mdio@0 {\n> > +\t\t\treg = <1>;\n> > +\t\t\t#address-cells = <1>;\n> > +\t\t\t#size-cells = <0>;\n> > +\t\t\text_rgmii_phy: ethernet-phy@1 {\n> > +\t\t\t\treg = <1>;\n> > +\t\t\t};\n> > +\t\t};\n> > +\t};\n> > +};\n> > +\n> > +Example with SoC without integrated PHY\n> > +\n> > +emac: ethernet@1c0b000 {\n> > +\tcompatible = \"allwinner,sun8i-a83t-emac\";\n> > +\tsyscon = <&syscon>;\n> > +\treg = <0x01c0b000 0x104>;\n> > +\tinterrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;\n> > +\tinterrupt-names = \"macirq\";\n> > +\tresets = <&ccu RST_BUS_EMAC>;\n> > +\treset-names = \"stmmaceth\";\n> > +\tclocks = <&ccu CLK_BUS_EMAC>;\n> > +\tclock-names = \"stmmaceth\";\n> > +\t#address-cells = <1>;\n> > +\t#size-cells = <0>;\n> > +\n> > +\tphy-handle = <&ext_rgmii_phy>;\n> > +\tphy-mode = \"rgmii\";\n> > +\n> >  \tmdio: mdio {\n> > +\t\tcompatible = \"snps,dwmac-mdio\";\n> >  \t\t#address-cells = <1>;\n> >  \t\t#size-cells = <0>;\n> > -\t\tint_mii_phy: ethernet-phy@1 {\n> > +\t\text_rgmii_phy: ethernet-phy@1 {\n> >  \t\t\treg = <1>;\n> > -\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> > -\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> >  \t\t};\n> >  \t};\n> >  };\n> > -- \n> > 2.13.5\n> > \n> \n> -- \n> Maxime Ripard, Free Electrons\n> Embedded Linux and Kernel engineering\n> http://free-electrons.com\n\nThanks for the review, I will fix all reported problem in next version.\n\nRegards\nCorentin Labbe","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"l5VKId79\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fKe6HrxA\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpTpp56bTz9sBW\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 17:44:02 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDxH-0003bb-07; Fri, 08 Sep 2017 07:43:59 +0000","from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqDxC-0003Wd-EL for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 07:43:57 +0000","by mail-wr0-x242.google.com with SMTP id k20so859538wre.1\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 00:43:34 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tp200sm1234760wmg.48.2017.09.08.00.43.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 00:43:32 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=szqyMwWvuqsEWlf5zP/HeH9ly10lWJG54nfbLI3qC/Y=;\n\tb=l5VKId79K3qbn8\n\t8bdSPNpEzLM/3iPtgV8EFsN5Ax4v9sFxm1VYli3PbxHtdb9LupC5R+vmo5Oo3mnAy+Z/5smIJNyOs\n\tqoUzr7VX0+ab0v7IydzCvkqsP4vWv868S6m4ae9wwrzTXXGaWppO3UjWzPfhaJThEmGrH2vm+6d8P\n\t93HywWsnPCFlb2b7Hb2YODGjPb6kEBjPZfNzTOmXNNr1jWvRBZ7QwYUtk08fAgTASwmOQhncvcS+s\n\tbiEWB0U9lFl5djcZCYfghxL+tMZE2mLU/SQcPuHqrRdMZ29q8YGQ9uXVAI08DHgEVmH4Nl2SgtDHk\n\t3FPrUylWLypK1vFEVhkA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=SJk3pRzw9mmUcyPb52PaDBy9QKZsf/kis2WhEvz1+do=;\n\tb=fKe6HrxAKeDQVSDestxgFPDTsl1BN7aiELkeD/vBswqXzIAbCphXtOgwWy7spDVHYP\n\tkB7Xy5n5fUpqZW4YCPSFijn/hBSyf7YzeogGYoUCYpD1zaf9SQ0DKAkTXKYare4EMJkg\n\tIX3QelmMsGt5C8IHQ2kFQnRWx2lh0xGVOEIyTU7LIkgYavERS4RyXkUC9HA5oConvtoR\n\tzsDXFUS8VzEmimIR40Q/IZOhP+kRnWKNZfu5uEf2sWiGhhbTLGZHh2XL8UIQyxWmy3z/\n\twaSB55xChcmqzVhb+qrlE8/kNsowe0/OjWQXvuG/KK1B6S/2YNnFpMVomLuEpJrXVdEJ\n\tSTIQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=SJk3pRzw9mmUcyPb52PaDBy9QKZsf/kis2WhEvz1+do=;\n\tb=F0n5YikD8z8OseQlRoMyUOgjfJAO7OfWrQmZ3U2LNzUhGwR2mrv7Du87D6eX22sQDA\n\tOll+ui40P7V0mBFxqk03kKK6UNnbCOrW6YJDnW5Vf9RO5rms9VxekalfzQCP/HUXzPFT\n\tYVdkR9PqP9OkxOcYgtj4URumufeZqMuB0JuuiWHxmZvqzeg8/HlVwxU4yvZ7bgRAZAtK\n\tArEORA8WW1kmJSAFXWeibf0VkF78pXa0FXWLh52FV+UzwqYIay49WoV78y5f3ftcgvyR\n\txOUlJWXeOAepjqelRgImxhoEAoD2yrhAYydHrxaS8V4z0RWupE9tkhGBbBR6tqtjUGMf\n\t1/Pw==","X-Gm-Message-State":"AHPjjUiVxW6j++VVRX4SVlP2bL1oSKIaG5rsUiP9z5ySpWkjv9JimZET\n\tLfR/jLGr13Ve2A==","X-Google-Smtp-Source":"ADKCNb5CPEtJhKCI6oNkQgYTyWBiPXs9d0P4fAGkeIMETxUz43mndNY3zqLroDOoEBRU/B7IbWEsXA==","X-Received":"by 10.223.178.131 with SMTP id g3mr1255812wrd.78.1504856612639; \n\tFri, 08 Sep 2017 00:43:32 -0700 (PDT)","Date":"Fri, 8 Sep 2017 09:43:25 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Maxime Ripard <maxime.ripard@free-electrons.com>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170908074325.GB29999@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908072538.rqsp6dobwsqmzrsr@flea.lan>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_004354_848878_8D60A853 ","X-CRM114-Status":"GOOD (  27.25  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, robh+dt@kernel.org, netdev@vger.kernel.org,\n\tpeppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765337,"web_url":"http://patchwork.ozlabs.org/comment/1765337/","msgid":"<20170908130520.GA11248@lunn.ch>","list_archive_url":null,"date":"2017-09-08T13:05:20","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"> +#define DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID\t0\n> +#define DWMAC_sUN8I_MDIO_MUX_EXTERNAL_ID\t1\n>  \n>  /* H3/A64 specific bits */\n>  #define SYSCON_RMII_EN\t\tBIT(13) /* 1: enable RMII (overrides EPIT) */\n> @@ -634,6 +639,76 @@ static int sun8i_dwmac_reset(struct stmmac_priv *priv)\n>  \treturn 0;\n>  }\n>  \n> +/* MDIO multiplexing switch function\n> + * This function is called by the mdio-mux layer when it thinks the mdio bus\n> + * multiplexer needs to switch.\n> + * 'current_child' is the current value of the mux register\n> + * 'desired_child' is the value of the 'reg' property of the target child MDIO\n> + * node.\n> + * The first time this function is called, current_child == -1.\n> + * If current_child == desired_child, then the mux is already set to the\n> + * correct bus.\n> + *\n> + * Note that we do not use reg/mask like mdio-mux-mmioreg because we need to\n> + * know easily which bus is used (reset must be done only for desired bus).\n> + */\n> +static int mdio_mux_syscon_switch_fn(int current_child, int desired_child,\n> +\t\t\t\t     void *data)\n> +{\n> +\tstruct stmmac_priv *priv = data;\n> +\tstruct sunxi_priv_data *gmac = priv->plat->bsp_priv;\n> +\tu32 reg, val;\n> +\tint ret = 0;\n> +\tbool need_reset = false;\n> +\n> +\tif (current_child ^ desired_child) {\n> +\t\tregmap_read(gmac->regmap, SYSCON_EMAC_REG, &reg);\n> +\t\tswitch (desired_child) {\n> +\t\tcase DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID:\n> +\t\t\tdev_info(priv->device, \"Switch mux to internal PHY\");\n> +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SELECT;\n> +\t\t\tif (gmac->use_internal_phy)\n> +\t\t\t\tneed_reset = true;\n> +\t\t\tbreak;\n\nThis i don't get. Why do you need use_internal_phy? Isn't that\nimplicit from DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID? Is it even possible to\nuse an external PHY on the internal MDIO bus?\n\n> +\t\tcase DWMAC_sUN8I_MDIO_MUX_EXTERNAL_ID:\n> +\t\t\tdev_info(priv->device, \"Switch mux to external PHY\");\n> +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SHUTDOWN;\n> +\t\t\tif (!gmac->use_internal_phy)\n> +\t\t\t\tneed_reset = true;\n> +\t\t\tbreak;\n\nAnd is it possible to use the internal PHY on the external bus?\n\n    Andrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"FyX2b+9y\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"fldxYXaZ\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpd4z2P1Zz9s7c\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 23:11:47 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJ4R-0001IK-QW; Fri, 08 Sep 2017 13:11:43 +0000","from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJ4P-0001Gf-UM for linux-arm-kernel@bombadil.infradead.org;\n\tFri, 08 Sep 2017 13:11:42 +0000","from vps0.lunn.ch ([178.209.37.122])\n\tby casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqIyl-000601-SM for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 13:05:55 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1dqIyG-0006QP-KT; Fri, 08 Sep 2017 15:05:20 +0200"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=6GczrCv6ysRotBWcw4E/C1tHti4c4+80P0h6skSEI1s=;\n\tb=FyX2b+9yW02U1Y\n\tEeMH5/iQQW/kJZfxKo/b8syfF2TYIM7EduYoGA7xKHZ+vmCSTCHovvfPFeR8On5xU6IjxlElWYd+D\n\tZyH7wzYskpV0d2hEpCNqv6cgY/VeYY4xu5x8T3y/wVwW/ua6IoQ5pTCiOdSLr6wO1XWLScNX3kftQ\n\t/WDmJMPcJyTU7EchPCmPPM49+horiL21VO7bc8jIzWeEUggvE7D6RlUX3e3+6Lg9ov1/2MlKZEe4f\n\tQBOBznodCjJBE8uKhmIN9jPpnTo2SzSuD6KyR+ZhZYdjZL3bMN6l05HQlc67lYmUiQurXpGkpmYVZ\n\twuad/fOn9727wkbGec4Q==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209;\n\th=In-Reply-To:Content-Type:MIME-Version:\n\tReferences:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=IEMUW/UL99hTJYWHyIQstiOwzGKVQT9ZLoIirXbMg4A=;\n\tb=fldxYXaZ/+Ir0mPUsCSmJexZl\n\t38JYShykGvBaHK57+GUMO1AxJMPj6kjp4wN7HxbHaag41YcaVDqPVMC12TpZ9sdklhXJL0ntNZnZb\n\tuUKgJcBzVEiREAyLrclGcs0PV/hNJnkHeV26FYUSveheEPiFcw192Vo3V7SIEfyxXQCZdavMMfpAO\n\t+d+HAUbRKZyOooCRtE5mw24aTVBJzn7e6p19cJHR3MfkwBRgEZ64Swh2cGnSrDzZe7dWVFHH5/IF0\n\tOqENBmjGdJJot/KQJ1pCQ8/q8CuqyUAlO9XJ8/VZvZ6CPIsghZkUku3thQkV7nbuIbfUSTduBIsOL\n\t1AhGRPPmQ==;"],"Date":"Fri, 8 Sep 2017 15:05:20 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908130520.GA11248@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908071156.5115-11-clabbe.montjoie@gmail.com>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_140551_961655_6EBA3545 ","X-CRM114-Status":"GOOD (  20.03  )","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-1.9 points, 5.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765352,"web_url":"http://patchwork.ozlabs.org/comment/1765352/","msgid":"<20170908132632.GA3037@Red>","list_archive_url":null,"date":"2017-09-08T13:26:32","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 03:05:20PM +0200, Andrew Lunn wrote:\n> > +#define DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID\t0\n> > +#define DWMAC_sUN8I_MDIO_MUX_EXTERNAL_ID\t1\n> >  \n> >  /* H3/A64 specific bits */\n> >  #define SYSCON_RMII_EN\t\tBIT(13) /* 1: enable RMII (overrides EPIT) */\n> > @@ -634,6 +639,76 @@ static int sun8i_dwmac_reset(struct stmmac_priv *priv)\n> >  \treturn 0;\n> >  }\n> >  \n> > +/* MDIO multiplexing switch function\n> > + * This function is called by the mdio-mux layer when it thinks the mdio bus\n> > + * multiplexer needs to switch.\n> > + * 'current_child' is the current value of the mux register\n> > + * 'desired_child' is the value of the 'reg' property of the target child MDIO\n> > + * node.\n> > + * The first time this function is called, current_child == -1.\n> > + * If current_child == desired_child, then the mux is already set to the\n> > + * correct bus.\n> > + *\n> > + * Note that we do not use reg/mask like mdio-mux-mmioreg because we need to\n> > + * know easily which bus is used (reset must be done only for desired bus).\n> > + */\n> > +static int mdio_mux_syscon_switch_fn(int current_child, int desired_child,\n> > +\t\t\t\t     void *data)\n> > +{\n> > +\tstruct stmmac_priv *priv = data;\n> > +\tstruct sunxi_priv_data *gmac = priv->plat->bsp_priv;\n> > +\tu32 reg, val;\n> > +\tint ret = 0;\n> > +\tbool need_reset = false;\n> > +\n> > +\tif (current_child ^ desired_child) {\n> > +\t\tregmap_read(gmac->regmap, SYSCON_EMAC_REG, &reg);\n> > +\t\tswitch (desired_child) {\n> > +\t\tcase DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID:\n> > +\t\t\tdev_info(priv->device, \"Switch mux to internal PHY\");\n> > +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SELECT;\n> > +\t\t\tif (gmac->use_internal_phy)\n> > +\t\t\t\tneed_reset = true;\n> > +\t\t\tbreak;\n> \n> This i don't get. Why do you need use_internal_phy? Isn't that\n> implicit from DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID? Is it even possible to\n> use an external PHY on the internal MDIO bus?\n> \n\nOn my H3 box with external PHY, the MDIO mux library first select (for scan ?) the internal MDIO.\nWithout use_internal_phy usage, this board will launch a reset to use the internal MDIO... and this reset timeout/fail.\nAfter the MDIO mux select the external MDIO.\n\n> > +\t\tcase DWMAC_sUN8I_MDIO_MUX_EXTERNAL_ID:\n> > +\t\t\tdev_info(priv->device, \"Switch mux to external PHY\");\n> > +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SHUTDOWN;\n> > +\t\t\tif (!gmac->use_internal_phy)\n> > +\t\t\t\tneed_reset = true;\n> > +\t\t\tbreak;\n> \n> And is it possible to use the internal PHY on the external bus?\n> \n\nI need to check that.\n\nRegards","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"DjfB1BXN\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sQ8+GfEN\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpdQk67hvz9s7f\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 23:27:10 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJJK-0007hP-2q; Fri, 08 Sep 2017 13:27:06 +0000","from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJJG-0007Sm-Df for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 13:27:04 +0000","by mail-wr0-x229.google.com with SMTP id 108so4680489wra.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 06:26:41 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\t25sm1664932wrv.8.2017.09.08.06.26.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 06:26:39 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=BpFknGjUDYGcOptbzyEsfYqj3qpol2A2p63DDYy08l4=;\n\tb=DjfB1BXNBi9bhX\n\tf8lxFJ9ljOZ81Ut6j30mwpXccrIzpY1Lzgr1HKafkXBlOEgdc/j3SHT3qz9KuFKAq9BY4IK4gVXNX\n\tvU2d5m6zPBxy1IXr+NqhfJk88eb5+8IcM0pllQv+2U0clex6PRnOqAWd2tpyLtWTmAVJs5OTzVf9B\n\tY4eaV0SCPPyd7+6m7GaSy+4VjMIbZuuwA2EDXZURAsRZYqMp6y4M4AyEhSWBIx6rsMbD4SBt9z3F9\n\tz1NOkAQT6ZHuVsqKIknNYvTKVfvAsxFrWUjW/l7ChJZsq1an18LAfNqqhlAnQw1FuoNU9sB8pj7+m\n\tpJ0F/FlZ1stdKgiftR5Q==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=ABC0sceKuoEyuo2GW9tOg1Ab1KNol2XYuiqDWZ/cVrw=;\n\tb=sQ8+GfENa2Ir5gKCOjXqNuMp44q624Qp3dFAMoeRRcZNuFNOYIiCVEAShkH0Jo28XD\n\tlBeHfd1Zm8C6sGOtRO6fYSM5GQcAsyu8s7pyloPljBobeX0ZOsFbkXfEIPQbxIg4NPK2\n\tmFV7XCHUx0CMAtOndXXFDn6pxwk0+6k+0ULOwd8R+tCCo8E3iE4EMJPN9ic0gJp/N/0s\n\tKKYKQJy31HE+lr5jOcB+2zc/ZQ3LY7tyPtTf9iVQOCKN4OS+B50eeQJ22a0Nsw6FLddn\n\tdgxhJ5OXAHeU1TBKSRHTUCUdNzNt/h1cPHjcpe2VAmqSvQ7FYZjqjYX2IXRszdlYa+GG\n\tybug=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=ABC0sceKuoEyuo2GW9tOg1Ab1KNol2XYuiqDWZ/cVrw=;\n\tb=Y5ao5ulm28rlYij+D9BedhPeUmvDyTDfj5cxH4CPOw/TAO/R/uKBuIFRGej2fw9xZr\n\tnDa9Flsbnm/uyAahqVAJYfNVstnakBFzV/W2aX9dn4X5agsS3nAq1wxF+AkoIjhRuchQ\n\tHk+/2pW+mDjTpSYL2yeqxdhkrWSn5UToV81fK3hF1AB72gjxQ1hyg36RtTc/ELFOy7xQ\n\tw1c2NtHuFHmEw27Ll5eF3OjDoexDmen+DPV3mPgnvJo4f2gFReVsNaI5XOB/42kngFKu\n\tzn73txYIb0W+lKtNLlAGkXLmsZJ3eYv7YTXCGb1OwNx2ei7pw2VKcYBGJZJaopDPu3k6\n\tsyjw==","X-Gm-Message-State":"AHPjjUiGiPXm7dOcNjoYkEcvtoRY+D8eX+02QMST8HTx+TqSJPUlodRw\n\tZ7bB7owKSAh7sQ==","X-Google-Smtp-Source":"ADKCNb7Url3OLBd39P8Yp6SrbEs1W9FY15H3CXQka4m1iHXyTVHoxnwQyl0kYFNxFNCAFi29V0+5wA==","X-Received":"by 10.223.154.120 with SMTP id\n\tz111mr2173238wrb.260.1504877200476; \n\tFri, 08 Sep 2017 06:26:40 -0700 (PDT)","Date":"Fri, 8 Sep 2017 15:26:32 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Andrew Lunn <andrew@lunn.ch>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908132632.GA3037@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908130520.GA11248@lunn.ch>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_062702_633387_1F01D8C6 ","X-CRM114-Status":"GOOD (  21.26  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:229 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765389,"web_url":"http://patchwork.ozlabs.org/comment/1765389/","msgid":"<20170908140020.GC25219@lunn.ch>","list_archive_url":null,"date":"2017-09-08T14:00:20","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"> > > +static int mdio_mux_syscon_switch_fn(int current_child, int desired_child,\n> > > +\t\t\t\t     void *data)\n> > > +{\n> > > +\tstruct stmmac_priv *priv = data;\n> > > +\tstruct sunxi_priv_data *gmac = priv->plat->bsp_priv;\n> > > +\tu32 reg, val;\n> > > +\tint ret = 0;\n> > > +\tbool need_reset = false;\n> > > +\n> > > +\tif (current_child ^ desired_child) {\n> > > +\t\tregmap_read(gmac->regmap, SYSCON_EMAC_REG, &reg);\n> > > +\t\tswitch (desired_child) {\n> > > +\t\tcase DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID:\n> > > +\t\t\tdev_info(priv->device, \"Switch mux to internal PHY\");\n> > > +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SELECT;\n> > > +\t\t\tif (gmac->use_internal_phy)\n> > > +\t\t\t\tneed_reset = true;\n> > > +\t\t\tbreak;\n> > \n> > This i don't get. Why do you need use_internal_phy? Isn't that\n> > implicit from DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID? Is it even possible to\n> > use an external PHY on the internal MDIO bus?\n> > \n> \n> On my H3 box with external PHY, the MDIO mux library first select (for scan ?) the internal MDIO.\n> Without use_internal_phy usage, this board will launch a reset to use the internal MDIO... and this reset timeout/fail.\n\nDo you know why the reset times out/fails?\n\n   Andrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"p0Xi/0tV\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpf9d3CFdz9sBd\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 00:00:53 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJpy-0008Vf-5Y; Fri, 08 Sep 2017 14:00:50 +0000","from vps0.lunn.ch ([178.209.37.122])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJpv-0008Tb-IS for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 14:00:49 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1dqJpU-00078J-JB; Fri, 08 Sep 2017 16:00:20 +0200"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=uTOVhCyybrBumC5MXp6nOGkhVslzCLO3fNrpJNr1G5o=;\n\tb=p0Xi/0tVJQhifT\n\t5fAxWKSPHBrWla8g7cMRkzQjEx2WCJl2pZLDu6SrTLWn0b6f5QwLhctZ7TUQD3BRIinBPyLx1eN0x\n\tvhcxKsCRz9iDjUSQHoHRdXRm+DXuI4bNbTjCYwTdoJ9IIqnqiV/pZFbjMzuhKwVYJZzq4+1TjRMv6\n\tHeXtE8vvXEgmepYb3lY/Wk8USFE7rkWmOw9ZSkQydRFbgDVPC/DT2RPU72uTnGM5KOv3pzvZTMgC6\n\tx+L+t7sqShvdlfapSN88Sz69/O4fIC7Jfb8DaKfXMK0KcNxW+hrZeEoVPlc5YqindLTcZSKXWPAho\n\tMk/cjp/r3aciG2khG44Q==;","Date":"Fri, 8 Sep 2017 16:00:20 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908140020.GC25219@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908132632.GA3037@Red>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_070047_775284_CD51824D ","X-CRM114-Status":"GOOD (  11.35  )","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765400,"web_url":"http://patchwork.ozlabs.org/comment/1765400/","msgid":"<20170908140832.GB3037@Red>","list_archive_url":null,"date":"2017-09-08T14:08:32","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 04:00:20PM +0200, Andrew Lunn wrote:\n> > > > +static int mdio_mux_syscon_switch_fn(int current_child, int desired_child,\n> > > > +\t\t\t\t     void *data)\n> > > > +{\n> > > > +\tstruct stmmac_priv *priv = data;\n> > > > +\tstruct sunxi_priv_data *gmac = priv->plat->bsp_priv;\n> > > > +\tu32 reg, val;\n> > > > +\tint ret = 0;\n> > > > +\tbool need_reset = false;\n> > > > +\n> > > > +\tif (current_child ^ desired_child) {\n> > > > +\t\tregmap_read(gmac->regmap, SYSCON_EMAC_REG, &reg);\n> > > > +\t\tswitch (desired_child) {\n> > > > +\t\tcase DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID:\n> > > > +\t\t\tdev_info(priv->device, \"Switch mux to internal PHY\");\n> > > > +\t\t\tval = (reg & ~H3_EPHY_MUX_MASK) | H3_EPHY_SELECT;\n> > > > +\t\t\tif (gmac->use_internal_phy)\n> > > > +\t\t\t\tneed_reset = true;\n> > > > +\t\t\tbreak;\n> > > \n> > > This i don't get. Why do you need use_internal_phy? Isn't that\n> > > implicit from DWMAC_sUN8I_MDIO_MUX_INTERNAL_ID? Is it even possible to\n> > > use an external PHY on the internal MDIO bus?\n> > > \n> > \n> > On my H3 box with external PHY, the MDIO mux library first select (for scan ?) the internal MDIO.\n> > Without use_internal_phy usage, this board will launch a reset to use the internal MDIO... and this reset timeout/fail.\n> \n> Do you know why the reset times out/fails?\n> \n\nBecause there are nothing connected to it.\nI got also reset timeout on integrated MDIO when the integrated PHY is not powered.","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"APQ2trNs\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"nvjMQr9D\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpfM86b51z9s7G\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 00:09:08 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJxx-0002pH-Sg; Fri, 08 Sep 2017 14:09:05 +0000","from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqJxu-0002mQ-4t for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 14:09:03 +0000","by mail-wm0-x242.google.com with SMTP id 187so1835687wmn.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 07:08:41 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tm19sm1477166wmd.16.2017.09.08.07.08.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 07:08:39 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=LThLng7xfZUqJOxATx2RjvNsxbJooijUUmya5I9hcfc=;\n\tb=APQ2trNsytOKfB\n\tAtgOJI7sbR/ks6wFFWl0L4RD1GB/7Lk5FHRRTaqzlKLPBN0jDLhytWXA8X5dZJVqeNeenKi+KL0o/\n\tXezl6zgmT1SN1OrKuX7FV2f5gOPVhHPsNBsJga0xMKcOLoMEVgWc+su8oE0Iok2W/urk7O9gKPUdU\n\tUoqg+4ZJUj6j58qtXktMdzeE03e/XCl80KgUFR6LWOLjXLEojI2ov5t+Qa95XnYVj/leECxSApbF8\n\trMJEI7u+Dxci/QCf705nhtiMD9zy2e6/4nXlWOogA9JufhfsdH06YuHmt2mafux2dwJpOwJOL3OaG\n\tGC6ZdMwjfX+swrC/TFHg==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=p3d0mpH+Jn1o0PcmosPIASkWVhlqhXQi3UxfJu5AajI=;\n\tb=nvjMQr9DKO3FuSLs2fTQTeEgZzZxM7+oFMSfzQKzZlXjb1wgupl/OiJ1gYVJBkIPv2\n\t5YcsbHafvLc/YnrVlnyaWRL7wFGttpod33YNQJDomgGw5RAOgL2m/uwZWpDiJwE/OZbh\n\t5o1NAAnVsmoJ/5yDHd1c1QV9scUwfYdQuw0cww99zj2ea1qG8MW1j5pT7cp7SO+T7Q/L\n\tzEOtJj0l5qBhTZRBnBXzVG7bwrFr/CMLgx3QYfs1ItI9eeVNh5KQwsEm2dw1Kx6ENemn\n\tun4rN8r1CMIpH2BbevaH+4XWc7PQ0HSlXF+CQOsQGf8hR359KqXHRECRgr1u0r+7OEJW\n\t2chA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=p3d0mpH+Jn1o0PcmosPIASkWVhlqhXQi3UxfJu5AajI=;\n\tb=D3sLZdjrYOmItC8p10bpGlcdl/XRCzBfwTWRZS/tQYLFiPvfrhIpZlKB+BFj0fCFgS\n\tTHBpeIVVY2XxN3A8nsYMp6tPnGs7hpYIuZe1ny4CicVWBBn/N5syL8GGRXe8Vui052Gg\n\tm7/pDOM7x0Y6wTr/z0skgc4ucvaUyyRWSpXf7coyBWQRfNkuNQvcJfqar7Sfl6+Zzvj2\n\t+9AXbEe1PuIerrJbj5rW+OHHvjwyo/89w1X7yYbt9WBufeHsW1Yo9DIXP9Yjm+A6wJ9V\n\tvuZgmfPNpJ/pHKFhsPaRKZQ9Hw4a5JPn9D2u3Bl+lYXZhuxtg1pH7EVwrX3tSV2ggxzc\n\tE3xA==","X-Gm-Message-State":"AHPjjUg5vmmo6am7BEq9xPA2IIGalw6+bD+HdpaJUwVJFN40leYJWQU/\n\tOLgprHwg0xQCcw2p/trMRmw=","X-Google-Smtp-Source":"ADKCNb55ddthQdRXcOrvHLlegohEkzxYg9IdwcOuKkS16HRQDW4LzLifqrhbBWvhCknOrBvirOeg5w==","X-Received":"by 10.28.26.15 with SMTP id a15mr968911wma.16.1504879720469;\n\tFri, 08 Sep 2017 07:08:40 -0700 (PDT)","Date":"Fri, 8 Sep 2017 16:08:32 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Andrew Lunn <andrew@lunn.ch>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908140832.GB3037@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908140020.GC25219@lunn.ch>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_070902_355698_7ADFC6B4 ","X-CRM114-Status":"GOOD (  16.34  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c09:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765410,"web_url":"http://patchwork.ozlabs.org/comment/1765410/","msgid":"<20170908141736.GF25219@lunn.ch>","list_archive_url":null,"date":"2017-09-08T14:17:36","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"> > Do you know why the reset times out/fails?\n> > \n> \n> Because there are nothing connected to it.\n\nThat should not be an issue. A read should just return 0xffff.  And it\nshould return 0xffff fast. The timing of the MDIO protocol is fixed. A\nread or a write takes a fixed number of cycles, independent of if\nthere is a device there or not. The bus data line has a pullup, so if\nyou try to access a missing device, you automatically read 0xffff.\n\n       Andrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"g9MTf9ky\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpfYk48lqz9s7G\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 00:18:18 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqK6n-0007o9-FD; Fri, 08 Sep 2017 14:18:13 +0000","from vps0.lunn.ch ([178.209.37.122])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqK6f-0007jN-Mo for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 14:18:11 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1dqK6C-0007Re-MN; Fri, 08 Sep 2017 16:17:36 +0200"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=shnqspFqOOzqfWzS6YKHqvId1wKZEtmDJf/nVPsvWUc=;\n\tb=g9MTf9kyIJOEWi\n\tYsjDWr5hhZ6ys3pi4o1cGAMR8EBfdMijizqrMGxZph3EyTNthHoWjoELOni10YK0r5oXb+sFZ8GP/\n\tdUh/FGpqfxvhPBU8PTmtdDIhoRqbyQ+B6JjD9N40ShhjyTOK4b3rCNq9BIaEFxpVzohfoRh/BEx3v\n\tTB+PRCkXFcuKsUqdpIYd5KH6/yxNXQXErgAkFm7tY7qwfwn1VZKOuKh7pg+O/eCqlna4IlmfvhAGE\n\tIvMj7SXWqpeU9176+0ugAFddCihHbMQ7Wm1+OTxDm6tJ0X3pgK0otGuKlT+G9H+saC+1WQgDvOXFc\n\tfwW3vO/j0xAPqQt+9igg==;","Date":"Fri, 8 Sep 2017 16:17:36 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908141736.GF25219@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch> <20170908140832.GB3037@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908140832.GB3037@Red>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_071805_917673_FFC44829 ","X-CRM114-Status":"UNSURE (   8.27  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765417,"web_url":"http://patchwork.ozlabs.org/comment/1765417/","msgid":"<20170908142825.GC3037@Red>","list_archive_url":null,"date":"2017-09-08T14:28:25","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 04:17:36PM +0200, Andrew Lunn wrote:\n> > > Do you know why the reset times out/fails?\n> > > \n> > \n> > Because there are nothing connected to it.\n> \n> That should not be an issue. A read should just return 0xffff.  And it\n> should return 0xffff fast. The timing of the MDIO protocol is fixed. A\n> read or a write takes a fixed number of cycles, independent of if\n> there is a device there or not. The bus data line has a pullup, so if\n> you try to access a missing device, you automatically read 0xffff.\n> \n\nPerhaps, but the reality is that with nothing connected to it, the reset of the MAC timeout.\nCertainly, the MAC does not support finding no PHY.\n\nSo, to prevent an error message, and a \"freeze\" of the net process, the need_reset trick is necessary.\n\nRegards\nCorentin Labbe","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"rIq4FBQ9\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"g45+HDhj\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpfp635zxz9s7G\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 00:29:02 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqKHC-00044s-CB; Fri, 08 Sep 2017 14:28:58 +0000","from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqKH8-0003uc-L8 for linux-arm-kernel@lists.infradead.org;\n\tFri, 08 Sep 2017 14:28:56 +0000","by mail-wr0-x22b.google.com with SMTP id k20so4996963wre.4\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tFri, 08 Sep 2017 07:28:34 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tw82sm2368196wme.5.2017.09.08.07.28.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 07:28:32 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=oOAfn+mUlt3ZkjGAyUFKxoO2OdCjjYb/UPxOI01/jfs=;\n\tb=rIq4FBQ90Yz/We\n\tsnJR2Hwe2fDMLa3QxXKVOCb6KqtbsjujIks6raEKq+bD68WJtE1YmeiCUBICV8+b7Fg1dSGUU7sji\n\tgUKvFWtntIpqz+G1MzbqXmQONpfQ12ogIiD48a/rTNvuuuLYC3Av4jGgFuZzVC0AgZwiMzB+hSCH5\n\tkD+XSWNckn1a44WAP/Og5nJCCNMqnaciMvfJmr7z02OGZW5f+q0cerc+WI/QIevI4L1BWPVXBfh4E\n\tIZWdbWzX5oT+N02mCw6/RYOKmCCI6kjXYbYCyAieerPdGhtNgS2oz4pWMHQV7W+qIxUwxvK65bVQJ\n\tbcdVgosopZVFrXpio+gQ==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=CemjWqI9tG6GU2myYclJV4DrL4gc6E6tKAvzN03UPXw=;\n\tb=g45+HDhjm1KMyELELW4nHQiWSj85crx7vFAdiE8Eq8ycDrLWyAm665gvGUUUHNat5s\n\tQItHqEaTpSJO9nHeE3vaAw6UoOdAJnig+1qJ2ciImEAmLmu0F0sAyzausYfINJ8hAgJ7\n\t438eYpKCf1SljSfIgGfFFfcGhjOrqVunA9yqJlDAn1rjISacfB97HQHQgPHCBwxg32wk\n\t4eluApXoWI6Lwrvi7IAKBlqA6Rehtunv6x0MNhJEu6a4R7PCKEmYKCj89gcPqxe6Qp5E\n\tRanQR3mpK/rF+eoNhJuPEHJuUxq3jk5s2ea0E+mJhHfnaTSEufJQzkwG229UMCAagzCG\n\tjhVA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=CemjWqI9tG6GU2myYclJV4DrL4gc6E6tKAvzN03UPXw=;\n\tb=Rxc/F4/GHUW3RcaSz0hItYS8MpzdxcGKO9JpQDSfu8sjwpsVoZDdPXsYit1hiFvjiz\n\tvfaI3dz9IG6QCXp+vruZ1ElEB+Yfw5UaozRJy+KUOUlpFdtzohkbLhGArg/cGNJKQneY\n\tx6z1Ob1S++96r+DhMDOthCT0lxlie96oOTOaHLFvbJldoAm9jpoLlT3uuNq8ol9/PTYK\n\tZj1ci/8yAjHwxqu31qAmY3WDUz/PijYjQ/C0lobIsp7vDVYnMy0m3XR9PSDBMaQFcMEL\n\txNs33vN8/nknHar0kzvr8XU35QzDtpIPfYwFNYnst4oNqkx8wrh/y/2w2pDemOaQt6UC\n\twXUQ==","X-Gm-Message-State":"AHPjjUjmw5XXKzx6WOLhNKZHq9BJ0r6vT83+1tQN1MeO7uRDMpUwvyDH\n\tGFzcRS7yzOnp1g==","X-Google-Smtp-Source":"ADKCNb42s9wZByp0FN2+bMjidsTQsry1myhh9ZMyVqbTNdCltWkhAnRCBwWP6POE6LJLOWu5NyHtLg==","X-Received":"by 10.223.147.195 with SMTP id 61mr2171296wrp.119.1504880912652; \n\tFri, 08 Sep 2017 07:28:32 -0700 (PDT)","Date":"Fri, 8 Sep 2017 16:28:25 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Andrew Lunn <andrew@lunn.ch>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170908142825.GC3037@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch> <20170908140832.GB3037@Red>\n\t<20170908141736.GF25219@lunn.ch>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908141736.GF25219@lunn.ch>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_072854_921374_A45758C0 ","X-CRM114-Status":"GOOD (  13.66  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:22b listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1765993,"web_url":"http://patchwork.ozlabs.org/comment/1765993/","msgid":"<20170910185640.GA17417@Red>","list_archive_url":null,"date":"2017-09-10T18:56:40","subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Fri, Sep 08, 2017 at 03:39:04PM +0800, Chen-Yu Tsai wrote:\n> On Fri, Sep 8, 2017 at 3:36 PM, Corentin Labbe\n> <clabbe.montjoie@gmail.com> wrote:\n> > On Fri, Sep 08, 2017 at 09:19:54AM +0200, Maxime Ripard wrote:\n> >> On Fri, Sep 08, 2017 at 09:11:47AM +0200, Corentin Labbe wrote:\n> >> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> >> > index 1c2387bd5df6..968908761194 100644\n> >> > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> >> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts\n> >> > @@ -50,6 +50,7 @@\n> >> >     compatible = \"friendlyarm,nanopi-neo2\", \"allwinner,sun50i-h5\";\n> >> >\n> >> >     aliases {\n> >> > +           ethernet0 = &emac;\n> >> >             serial0 = &uart0;\n> >> >     };\n> >> >\n> >> > @@ -108,6 +109,22 @@\n> >> >     status = \"okay\";\n> >> >  };\n> >> >\n> >> > +&emac {\n> >> > +   pinctrl-names = \"default\";\n> >> > +   pinctrl-0 = <&emac_rgmii_pins>;\n> >> > +   phy-supply = <&reg_gmac_3v3>;\n> >> > +   phy-handle = <&ext_rgmii_phy>;\n> >> > +   phy-mode = \"rgmii\";\n> >> > +   status = \"okay\";\n> >> > +};\n> >> > +\n> >> > +&mdio {\n> >> > +   ext_rgmii_phy: ethernet-phy@7 {\n> >> > +           compatible = \"ethernet-phy-ieee802.3-c22\";\n> >> > +           reg = <7>;\n> >> > +   };\n> >> > +};\n> >> > +\n> >>\n> >> This won't compile, you don't have that node in the H5 DTSI.\n> >>\n> >\n> > Since H5 DTSI include arm/sunxi-h3-h5.dtsi it compiles.\n> > Furthermore, I restested just now and confirm, it compiles fine.\n> \n> The order of your patches are wrong. No individual patch should\n> introduce build failures, not just the whole patch series.\n> \n\nYes, I just miss-understood the reason of build failure.\nI will fix the order in the next serie.\n\nThanks\nCorentin Labbe","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"O00IsJss\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fgohQPO8\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xr0g31sD0z9t2l\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 04:57:30 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dr7Q5-00076P-Ot; Sun, 10 Sep 2017 18:57:25 +0000","from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dr7Pr-000728-1C for linux-arm-kernel@lists.infradead.org;\n\tSun, 10 Sep 2017 18:57:15 +0000","by mail-wm0-x244.google.com with SMTP id x17so5267436wmd.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tSun, 10 Sep 2017 11:56:49 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\t195sm9488221wmj.18.2017.09.10.11.56.47\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 10 Sep 2017 11:56:47 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=ixDF8PHXcVUnurIyCXoj3MxClFXNTojXzfyo7nym0Bg=;\n\tb=O00IsJsslbzODf\n\tA27b3gXP/C6I91S4/j/sqRbk+Wce/2576XLuDrJK2eFIqkSDAEW8kUwHzjf/Wu4vYJzIKLUHDPpLQ\n\tLng3geaMF7EL9mJukAkyrpgoGNF6jOBbQfs3Qzk7udPDpJILpft7oRXgjSG5g8OQwBb6aAxZNoRz9\n\tnXB0/Rx9Yd+aadwWs11DV8L2UaU/F7/7tEwVKT8xQgiEfgwumXA/YnNPKzXvw6/xGeWzgCTUWoOSh\n\tH3C7eUmVDv7R9S0GH43qrlBgIBdzy/HGI7PK8ftBbOZZCB0g9BYpC+KdWNdHYsNdFB7DCgiz3trA8\n\tUMmtEakVjoFcvapoB9Iw==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=Tn6Y/gibIeDUWLP6XepEwYMn5CfUT9795D+zkPVsOgM=;\n\tb=fgohQPO8skXp50agxAHfS5PAImtJQlZgdh7h2jz14elaEt7AFcUHJfUBUYyRh0AA0X\n\t5R/fb8vhf946elQINWGOvX4kzyufjM6qJL3KDSm9I82jstau7cWnGfIMAAj1WhIHrdvp\n\t+op+RY/UQfR6QbowlEFcRf5mDdFrJIg7iaNHiWET9hvvqgVjYCswRTQAzzzOk2yV1yNu\n\tnEfNTbX4+zKjVjISrjCN6B7Jqfj0aLWZFnYl/fNdfKV2uP223DAEB1vw9Yn3xIUP6vtT\n\tPZaEKpEmpILCyrcVKDNBHuRu/O8g7ZDJjt3pdJvtZsYVUi2+sAtDSift7Fp/6pMZ8l8L\n\tSW9w=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=Tn6Y/gibIeDUWLP6XepEwYMn5CfUT9795D+zkPVsOgM=;\n\tb=d8h7UWa/q8pVyAM1fk5ugt6+1x5znSPz16cflG1kwcP/JefMbXEKbwdtS+GLLhA2se\n\tQ9XNYfLvgMtk/Md/hDwoig6jvWtCI90kVgfvHsICkWg6beG3f5O9YD2FPTvVPHeISieR\n\t74dgYxWst6xXZ94kVDIE3tY7WjayOk0Zk/4U9WI3wNv/KGl+Y7yUcANXp9FFiIwNc9P2\n\t/NyEYhjpBh2Mwy4932Pnjd/WE7srXm9gDUxarxhUQVPwArlBJ3H32/l1iY/7r32UFhy0\n\t0+EIq9t0Hjlt0wEhL6XGfHuKVF1H/Y5/GYuSClDIygRczxWv2fjR2ET9Bf+fDkLC4Q1/\n\tr2fA==","X-Gm-Message-State":"AHPjjUgwXnr+hSgrFIIsBtzXPAPbi5J4mlzrWXuTwJKI5Mc18HioYhDw\n\t/5tooi2LL7SK+E8jSqpxLRQ=","X-Google-Smtp-Source":"AOwi7QA8PXLzSp5fSp77OyMS7oBZA3DEOWLyHmxvEjp6tuC1OdEUQzwMQ5seKD4u/P1Jl6M4zI3tiw==","X-Received":"by 10.28.208.72 with SMTP id h69mr391597wmg.134.1505069808293;\n\tSun, 10 Sep 2017 11:56:48 -0700 (PDT)","Date":"Sun, 10 Sep 2017 20:56:40 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Chen-Yu Tsai <wens@csie.org>","Subject":"Re: [PATCH v5 01/10] arm64: dts: allwinner: Restore EMAC changes","Message-ID":"<20170910185640.GA17417@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-2-clabbe.montjoie@gmail.com>\n\t<20170908071954.j2bhtw4wqa27fald@flea.lan>\n\t<20170908073657.GA29999@Red>\n\t<CAGb2v64K3XTLJwZwYmq3r64=3_bHHGTeGyC0gfoJfL5+Ty53ag@mail.gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<CAGb2v64K3XTLJwZwYmq3r64=3_bHHGTeGyC0gfoJfL5+Ty53ag@mail.gmail.com>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170910_115713_883741_45B7C826 ","X-CRM114-Status":"GOOD (  15.12  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c09:0:0:0:244 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, Andrew Lunn <andrew@lunn.ch>,\n\tFlorian Fainelli <f.fainelli@gmail.com>,\n\tAlexandre Torgue <alexandre.torgue@st.com>,\n\tdevicetree <devicetree@vger.kernel.org>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>,\n\tlinux-kernel <linux-kernel@vger.kernel.org>,\n\tRob Herring <robh+dt@kernel.org>, netdev <netdev@vger.kernel.org>,\n\tGiuseppe Cavallaro <peppe.cavallaro@st.com>, \n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel <linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1766379,"web_url":"http://patchwork.ozlabs.org/comment/1766379/","msgid":"<20170911161124.GD27599@lunn.ch>","list_archive_url":null,"date":"2017-09-11T16:11:24","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"On Fri, Sep 08, 2017 at 04:28:25PM +0200, Corentin Labbe wrote:\n> On Fri, Sep 08, 2017 at 04:17:36PM +0200, Andrew Lunn wrote:\n> > > > Do you know why the reset times out/fails?\n> > > > \n> > > \n> > > Because there are nothing connected to it.\n> > \n> > That should not be an issue. A read should just return 0xffff.  And it\n> > should return 0xffff fast. The timing of the MDIO protocol is fixed. A\n> > read or a write takes a fixed number of cycles, independent of if\n> > there is a device there or not. The bus data line has a pullup, so if\n> > you try to access a missing device, you automatically read 0xffff.\n> > \n> \n> Perhaps, but the reality is that with nothing connected to it, the reset of the MAC timeout.\n> Certainly, the MAC does not support finding no PHY.\n\nAre you sure this is not because of the clock and reset?\n\n+                               #address-cells = <1>;\n+                               #size-cells = <0>;\n+                               int_mii_phy: ethernet-phy@1 {\n+                                       compatible = \"ethernet-phy-ieee802.3-c22\";\n+                                       reg = <1>;\n+                                       clocks = <&ccu CLK_BUS_EPHY>;\n+                                       resets = <&ccu RST_BUS_EPHY>;\n\nThe way you describe it here, the clock and reset are for the PHY. But\nmaybe it is actually for the bus? I can understand a bus timing out if\nit has no clock, or it is held in reset. Try enabling the clock and\nreset when the internal bus is selected, not when the PHY on the bus\nis selected.\n\n\tAndrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"f2CNW8sr\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"cN3AjtPn\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrXyh3Zb4z9s7f\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 02:12:57 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drRKP-0004fj-JY; Mon, 11 Sep 2017 16:12:53 +0000","from merlin.infradead.org ([2001:8b0:10b:1231::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drRK1-0004fT-8M for linux-arm-kernel@bombadil.infradead.org;\n\tMon, 11 Sep 2017 16:12:29 +0000","from vps0.lunn.ch ([178.209.37.122])\n\tby merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drRJy-0003aO-82 for linux-arm-kernel@lists.infradead.org;\n\tMon, 11 Sep 2017 16:12:27 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1drRIy-0008JZ-II; Mon, 11 Sep 2017 18:11:24 +0200"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=u5ndSKaT1DYFnke5vInw7LxC3ACBYV8pKdYsT6kCQlo=;\n\tb=f2CNW8sr8zQ+2q\n\tgYvtn7a9gyYQJ5UfccsFXfBWvaKaSL9Qb/x6jOPsVkWWjsUQzqOzl3Mmn7hlkBu1q/qe0SQWrA7KS\n\t7w1RgNRWTSSxQz+FEJ/mL/DsK3jmrLohVBuGxL9jn76+Tp0uVeKO2ZaLgVPLtqolwnooA/4OpFH+1\n\tIDaJWgggfWFPMKJWc/xpxM4mBlyCEs//bkkg9SjvzytGHsmUyKM6yiygQIZpCjMyYE5bCrbXo8Hwv\n\tcFL065q/Kb86iwLcjmR1aMUbAtN3payMKBMA7ASBFyB2qGpVKyJjK1QHUBnev/PthcZCypdrPfgOF\n\tWutEeL8Ca8soOskyCS9A==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=merlin.20170209;\n\th=In-Reply-To:Content-Type:MIME-Version:\n\tReferences:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=Xvgf6djCKeImgVYmFn0YYXtM29iSF9wOkTQXa5PokSA=;\n\tb=cN3AjtPnw5maJENGr+aRSyTCJ\n\tJFoq8rjzwHsOAignX+zib1lS7AhxZ/Cu4C5YueEqG+AIjApGrnlXS15gByrqgsmy/LNDa+XhMWyMg\n\tG/4EpWuNk1vs8zJwEQzIx4IcsU9YG8CuLAzApBx+GCjjojYw4uajN9XonW2I4q0a+A7BMuPSbvukx\n\tI5qIwecqwRE5JEBG+unc6CSYdPAgJxCWxbMxDmUBBdjSEkZszBS1IWLdHmfDYhtHTQUIaTX+ex5lb\n\tOxp1eTNP1AUCGkAG8T/hkyP4yG18oNPKZq+/KK1giXd2SUf07NNQlLCm6dweUdxfO3yke0ZbBT4TK\n\tuH1C2mneg==;"],"Date":"Mon, 11 Sep 2017 18:11:24 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170911161124.GD27599@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch> <20170908140832.GB3037@Red>\n\t<20170908141736.GF25219@lunn.ch> <20170908142825.GC3037@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908142825.GC3037@Red>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-Spam-Note":"CRM114 invocation failed","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on merlin.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1766515,"web_url":"http://patchwork.ozlabs.org/comment/1766515/","msgid":"<20170911201920.GA5983@lunn.ch>","list_archive_url":null,"date":"2017-09-11T20:19:20","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"> Even with CLK_BUS_EPHY/RST_BUS_EPHY enabled, the MAC reset timeout.\n> So no the CLK/RST are really for the PHY.\n\nThanks for trying that.\n\nYou said it was probably during scanning of the bus it times out. What\naddress is causing the timeout? 0 or 1? If the internal bus can only\nhave one PHY on it, maybe we need to set bus->phy_mask to 0x1?\n\n   Andrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"Q35rzLEu\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"f1dwZFfb\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrfSC0QN9z9s5L\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 06:20:27 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drVBv-0007gT-KJ; Mon, 11 Sep 2017 20:20:23 +0000","from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drVBq-0007fm-NO for linux-arm-kernel@bombadil.infradead.org;\n\tMon, 11 Sep 2017 20:20:21 +0000","from vps0.lunn.ch ([178.209.37.122])\n\tby casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drVBn-0006fm-Jd for linux-arm-kernel@lists.infradead.org;\n\tMon, 11 Sep 2017 20:20:17 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1drVAu-0001bU-Ec; Mon, 11 Sep 2017 22:19:20 +0200"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=LPf0ppgWSCCzkzFatmwGV4Cz7HWm3zANppgze50kZeo=;\n\tb=Q35rzLEu6K+Tjf\n\tjSabX4nbCpJBRxMhgfqdJPOR4xWM19m67S1C62Ha8geDJUURaqcWqmijqaP1g9DG6uHm/dVLiZE1v\n\tJBTQx3qX04UytUVuh/X7/Lagw61oDichaUyyIZFeadfOmftAsPCIU1Bbh/3u/jfofwV89fWdURz6u\n\tHtuvtd68M2UbcSA2q46l4OuyEYrmXbMkEjFw1cSEfXqj6OmzN2aFtkSAk+mqV2uY6bey2EXurO6Xc\n\tXvIQzgaotD5wr6zkKHTG4QACjIN6NW6Lt/mkVbQ/RZo0kAgIisEge/qCyQni7fiHss2ccWID6I1Sj\n\tC+zS0NBUGfmNXsLgvNbQ==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209;\n\th=In-Reply-To:Content-Type:MIME-Version:\n\tReferences:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=0ey96SsPRV5Y/WSqhNFhymd64+SjSo5LS1UpUeQO/rs=;\n\tb=f1dwZFfbqHzw6Q6mtBVjzKCMa\n\tdqnrSinZ0ic0eqvbqUOji+2ydDZBcVpmZ9fvZLnhOK99OgqzRzosFKVA51zIfEQI8lcqDSaU7+FCd\n\tQ4kQfCBjQg52qubqf0hYNLwQAC/2IiGdewyopsiyJTZx8vLh1brXMgzgAgD4STg3bd+U80HncVmkg\n\tGwWb6cFfppNfNhZ/4Z7IAg0gV3NWmGf/YIfmfzRCIw3Xt4Db1WV+mFTdxFrLxVNhYUx0+nQ6Q2kpw\n\tOaE7jYqRN9Bq2cL7ZvuFlwNqstdKuS8bHsznPa/lKoDYthr4HK++LbFwwbfxAn5ZxPrdsEp/V/2FG\n\tVkjuhScJA==;"],"Date":"Mon, 11 Sep 2017 22:19:20 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170911201920.GA5983@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch> <20170908140832.GB3037@Red>\n\t<20170908141736.GF25219@lunn.ch> <20170908142825.GC3037@Red>\n\t<20170911161124.GD27599@lunn.ch> <20170911190850.GA2291@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170911190850.GA2291@Red>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170911_212015_674476_0EBC12F1 ","X-CRM114-Status":"UNSURE (   7.51  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-1.9 points, 5.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1766737,"web_url":"http://patchwork.ozlabs.org/comment/1766737/","msgid":"<20170912075415.GA1358@Red>","list_archive_url":null,"date":"2017-09-12T07:54:15","subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Mon, Sep 11, 2017 at 10:19:20PM +0200, Andrew Lunn wrote:\n> > Even with CLK_BUS_EPHY/RST_BUS_EPHY enabled, the MAC reset timeout.\n> > So no the CLK/RST are really for the PHY.\n> \n> Thanks for trying that.\n> \n> You said it was probably during scanning of the bus it times out. What\n> address is causing the timeout? 0 or 1? If the internal bus can only\n> have one PHY on it, maybe we need to set bus->phy_mask to 0x1?\n> \n\nI have added a trace in begin and end of stmmac_mdio_read()\n\n[   18.145451] libphy: stmmac: probed\n[   18.148398] libphy: mdio_mux: probed\n[   18.148650] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY\n[   18.248751] dwmac-sun8i 1c30000.ethernet: EMAC reset timeout\n[   18.249297] libphy: mdio_mux: probed\n[   18.249362] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY\n[   18.249391] stmmac_mdio_read 0 2\n[   18.249598] stmmac_mdio_read 0 2 1c\n[   18.249623] stmmac_mdio_read 0 3\n[   18.249811] stmmac_mdio_read 0 3 c915\n[   20.737271] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)\n[   31.294868] stmmac_mdio_read 0 0\n[   31.295311] stmmac_mdio_read 0 0 1140\n\nIt seems that the timeout is unrelated to MDIO bus.\n\nRegards","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"WbXdPkjV\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Dp0EP04w\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrxsS6Gvvz9s7B\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 17:54:52 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drg1w-0001UP-Qr; Tue, 12 Sep 2017 07:54:48 +0000","from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drg1s-0001LA-Ik for linux-arm-kernel@lists.infradead.org;\n\tTue, 12 Sep 2017 07:54:47 +0000","by mail-wr0-x232.google.com with SMTP id 108so18810430wra.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tTue, 12 Sep 2017 00:54:24 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tn6sm7479539wmg.11.2017.09.12.00.54.21\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 00:54:22 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=QWU6qbjxe2GhPWndvJOcSPlQaccgLtiHHKSJchGpo1o=;\n\tb=WbXdPkjVINIImS\n\tj3QMpliPUls7fNzyodJkqF/FmliIKwOGtZfltDm/QOR2ASBzl4XXEv7oM+9vyh2ZH+tj9CASPMVea\n\tBf5jNeIW8Ct+yxDN4SHQUaBwGe0nmVtC+Ek2OUZAXtMFMtaSBW72KJBSe+yF/x7UggxsgUrFn3EoK\n\thcfofLHz4Lolaj6YC9qsI26PsOogOSq28oYxPfikwGaXFXsEcfo0gAR7V15TpEcEBGqAV0gslWTvi\n\tMuOQU1sgDediqb6dh8zkx6PKZYy/11EZ+q5He4UGQw7BLPOHF0j2k2pjhd0SwEi6eUYpjsCOF84ST\n\txoZu/g3vCdaeGGIzFqBA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=YIBazUM2EgCh0VN8t9kDwV+QxrDefETvCWH0it0C/NU=;\n\tb=Dp0EP04wgeZL5EtBNuIouN/sbkbAVKWPB7Z1k8vr/ddTHilsJAwzJx7Ru8jCTxtEt8\n\tExzkLVOJbgaaDkLnBFOjhsUSNHhbo94G+tlnbzsLLPLtu2CegCypNvoxVHS5t6c0PexC\n\tJE1xBiEPk3WmvhaYEyzxjpQQBEwNkVjpxHiRD4kKNtUOy7Tu4NJoGrstaRjyxzGqmgRF\n\tO45IT181kbSCKP0FUXb3JPwlqyms8m2U+MZBJeJ58jSxzNd+TMw8axHiaJNZfMvQOkPF\n\tOVOw6O4Jg+3xGal2Ong2e995gA0w1Tc0pGaVjuDn98kLbaDAUP3x85OPJZ4uSNN3ZDiP\n\tLTew=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=YIBazUM2EgCh0VN8t9kDwV+QxrDefETvCWH0it0C/NU=;\n\tb=KI7z1Wvu6sp3Qr6jXR6k95EiGC6WK6ttqGkYo0XaCoR8YwYuNdoaU22ftnyW12OqFD\n\t21Igy1fI+xnIh1EH+igJWEbN6NdjFdR5XiAbJWcUYl9n7EG/uYwiR6XO6EULdtcQA0Yt\n\tFWYjlSH3LuKWYrgZqRHgEsQJGVGbm3ICFILfLxd+7uyRclSJqdwzzlYW4oFxX08OGB2x\n\tA2T6YnUT5jsFUjUD9NDoH5OPWKDkN9sUhuMiZMUStC4ANmFJs/W2ZdyvTjAZXx0Pg8yP\n\t3y0DUNKWM97oqRVdGfq27Xrg27BG97WDguV+s6077wDJsqg9SWA/l4AdBiKa+dkaHtQp\n\tD2hw==","X-Gm-Message-State":"AHPjjUix3DngjZBhyzBIXf7DL7pxwCDluO1qSaS5g04KdwqPQQR+PDE0\n\tKn/w4M+7L2RytA==","X-Google-Smtp-Source":"ADKCNb6rFYmG9ggRqEQqniuu0MYwRO1263fhZcUTBm2rC8ARePwUqgplXVukpMJb3e7Zwwmppc05+Q==","X-Received":"by 10.223.177.18 with SMTP id l18mr9086184wra.167.1505202862812; \n\tTue, 12 Sep 2017 00:54:22 -0700 (PDT)","Date":"Tue, 12 Sep 2017 09:54:15 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Andrew Lunn <andrew@lunn.ch>","Subject":"Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle\n\tintegrated/external MDIOs","Message-ID":"<20170912075415.GA1358@Red>","References":"<20170908071156.5115-11-clabbe.montjoie@gmail.com>\n\t<20170908130520.GA11248@lunn.ch> <20170908132632.GA3037@Red>\n\t<20170908140020.GC25219@lunn.ch> <20170908140832.GB3037@Red>\n\t<20170908141736.GF25219@lunn.ch> <20170908142825.GC3037@Red>\n\t<20170911161124.GD27599@lunn.ch> <20170911190850.GA2291@Red>\n\t<20170911201920.GA5983@lunn.ch>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170911201920.GA5983@lunn.ch>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170912_005444_882157_6CBEF010 ","X-CRM114-Status":"GOOD (  12.74  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:232 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, \n\talexandre.torgue@st.com, catalin.marinas@arm.com, will.deacon@arm.com,\n\tlinux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org,\n\trobh+dt@kernel.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1768073,"web_url":"http://patchwork.ozlabs.org/comment/1768073/","msgid":"<20170913180734.xvazvf7thpqtssgz@rob-hp-laptop>","list_archive_url":null,"date":"2017-09-13T18:07:34","subject":"Re: [PATCH v5 02/10] dt-bindings: net: Restore sun8i dwmac binding","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Fri, Sep 08, 2017 at 09:11:48AM +0200, Corentin Labbe wrote:\n> This patch restore dt-bindings documentation about dwmac-sun8i\n> This reverts commit 8aa33ec2f481 (\"dt-bindings: net: Revert sun8i dwmac binding\")\n\nWhy?\n\n> \n> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n> ---\n>  .../devicetree/bindings/net/dwmac-sun8i.txt        | 84 ++++++++++++++++++++++\n>  1 file changed, 84 insertions(+)\n>  create mode 100644 Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n\nOtherwise,\n\nAcked-by: Rob Herring <robh@kernel.org>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"pyHnvNP7\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsqQY6zsJz9s7v\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 04:08:05 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsC4v-0005Ia-7P; Wed, 13 Sep 2017 18:08:01 +0000","from mail-io0-f193.google.com ([209.85.223.193])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsC4r-0005Fx-BD for linux-arm-kernel@lists.infradead.org;\n\tWed, 13 Sep 2017 18:07:58 +0000","by mail-io0-f193.google.com with SMTP id j26so1022705iod.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 13 Sep 2017 11:07:36 -0700 (PDT)","from localhost (216-188-254-6.dyn.grandenetworks.net.\n\t[216.188.254.6]) by smtp.gmail.com with ESMTPSA id\n\tu13sm7607222oif.54.2017.09.13.11.07.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 11:07:35 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Q78Wn5bw4z7a18jkwVUHFjQbLKBHBPDCdbzszDFdWzo=;\n\tb=pyHnvNP7xUEwUh\n\tTyWbEv6EX5uynEBP6IGZz9gxKZYMX09yxiCiardcpxD05h5wADnSIiV+9NzqWQyNIo676oB0D+PC5\n\tXaA5hYC0mfm34AWvVCQYA7TBMImiUuZSihFBvS80JZLkpysTwuiqYEMub3DRJfvn1EnrAY/gQCm3Y\n\tl5+Os0RlV1sJ2JL7LEYiN06DjfuCs6/+UkhxFvxYAvtCbM8C23d6z42jbhVbcl+/Dpa1aba15cvmB\n\tJrKqkIze7gjZhNuEt441pSyL2CDTNMW+oMt71FZYDvZ2SvsQotEfo3BILws3/liH99nK/SIt8QhTC\n\t+rsaZmayFFbhxopaZLoQ==;","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=sDHHWJFBkUEjwFzflCKyYJ05m+ud9hSl4gPPpScLa6c=;\n\tb=b4ckZR34J2ZpSUSpd7vf7BCIJjuWoWfSddXx48JI3YR+IMB68Wep5BSm36k5gjjdmw\n\tHSoZpOqXTI79JJr8s2NDyKCN4Lxl9XiL7dmnGc9jEsEHSLMnjZQ2BdVG2xnYInwlOmiw\n\tvixy5TlgMn6nwjLDrW0T5H05Wn241c1ubpvzFuqpoZoNfTBwIsELH0tPbwnTBaDn14y6\n\t064Is2aP7ZC5zPyW/Dn25h9CxEmanngidmsJUOQN4Nv4BGlaTSjOzpMfJ1pOf1UNGjih\n\tfb3cNENUKqYxOZcxm2v2ogKj+vLQ0hjVHNj9V/CEUbGzhW8o2k1lbNJqrZalXlmoWOxJ\n\t7iEA==","X-Gm-Message-State":"AHPjjUhQHnV4UAGaGosBjqSf0l8AC9DbpicCE/p3JeEz5kJjH8+GYRO0\n\t+YfKC2/5tYcLVw==","X-Google-Smtp-Source":"AOwi7QDHsfE3zT42JUwJniCJnnJHCnc8t4Yc7NEuyngEOhgfNqFim/YsPb7btzyC/mmwc8vKvBCkFg==","X-Received":"by 10.202.184.215 with SMTP id\n\ti206mr20007825oif.285.1505326055869; \n\tWed, 13 Sep 2017 11:07:35 -0700 (PDT)","Date":"Wed, 13 Sep 2017 13:07:34 -0500","From":"Rob Herring <robh@kernel.org>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 02/10] dt-bindings: net: Restore sun8i dwmac binding","Message-ID":"<20170913180734.xvazvf7thpqtssgz@rob-hp-laptop>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-3-clabbe.montjoie@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908071156.5115-3-clabbe.montjoie@gmail.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170913_110757_427933_114E9107 ","X-CRM114-Status":"UNSURE (   9.26  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-3.8 (---)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-3.8 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [209.85.223.193 listed in list.dnswl.org]\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[209.85.223.193 listed in dnsbl.sorbs.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends\n\tin digit (robherring2[at]gmail.com)\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (robherring2[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-2.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)\n\t[209.85.223.193 listed in wl.mailspike.net]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1768078,"web_url":"http://patchwork.ozlabs.org/comment/1768078/","msgid":"<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>","list_archive_url":null,"date":"2017-09-13T18:20:04","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Fri, Sep 08, 2017 at 09:43:25AM +0200, Corentin Labbe wrote:\n> On Fri, Sep 08, 2017 at 09:25:38AM +0200, Maxime Ripard wrote:\n> > On Fri, Sep 08, 2017 at 09:11:51AM +0200, Corentin Labbe wrote:\n> > > This patch add documentation about the MDIO switch used on sun8i-h3-emac\n> > > for integrated PHY.\n> > > \n> > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n> > > ---\n> > >  .../devicetree/bindings/net/dwmac-sun8i.txt        | 127 +++++++++++++++++++--\n> > >  1 file changed, 120 insertions(+), 7 deletions(-)\n> > > \n> > > diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > index 725f3b187886..3fa0e54825ea 100644\n> > > --- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > @@ -39,7 +39,7 @@ Optional properties for the following compatibles:\n> > >  - allwinner,leds-active-low: EPHY LEDs are active low\n> > >  \n> > >  Required child node of emac:\n> > > -- mdio bus node: should be named mdio\n> > > +- mdio bus node: should be labelled mdio\n> > \n> > labels do not end up in the final DT (while the names do) so why are\n> > you making this change?\n> > \n> \n> I misunderstood label/name.\n> Anyway, this contrainst should leave due to \"snps,dwmac-mdio MDIOs are automatically registered\"\n> \n> > >  \n> > >  Required properties of the mdio node:\n> > >  - #address-cells: shall be 1\n> > > @@ -48,14 +48,28 @@ Required properties of the mdio node:\n> > >  The device node referenced by \"phy\" or \"phy-handle\" should be a child node\n> > >  of the mdio node. See phy.txt for the generic PHY bindings.\n> > >  \n> > > -Required properties of the phy node with the following compatibles:\n> > > +The following compatibles require an mdio-mux node called \"mdio-mux\":\n> > > +  - \"allwinner,sun8i-h3-emac\"\n> > > +  - \"allwinner,sun8i-v3s-emac\":\n> > > +Required properties for the mdio-mux node:\n> > > +  - compatible = \"mdio-mux\"\n> > > +  - one child mdio for the integrated mdio\n> > > +  - one child mdio for the external mdio if present (V3s have none)\n> > > +Required properties for the mdio-mux children node:\n> > > +  - reg: 0 for internal MDIO bus, 1 for external MDIO bus\n> > > +\n> > > +The following compatibles require a PHY node representing the integrated\n> > > +PHY, under the integrated MDIO bus node if an mdio-mux node is used:\n> > >    - \"allwinner,sun8i-h3-emac\",\n> > >    - \"allwinner,sun8i-v3s-emac\":\n> > > +\n> > > +Required properties of the integrated phy node:\n> > >  - clocks: a phandle to the reference clock for the EPHY\n> > >  - resets: a phandle to the reset control for the EPHY\n> > > +- phy-is-integrated\n> > > +- Should be a child of the integrated mdio\n> > \n> > I'm not sure what you mean by that, you ask that it should (so not\n> > required?) be a child of the integrated mdio...\n> > \n> \n> I will change words to \"must\"\n> \n> > >  \n> > > -Example:\n> > > -\n> > > +Example with integrated PHY:\n> > >  emac: ethernet@1c0b000 {\n> > >  \tcompatible = \"allwinner,sun8i-h3-emac\";\n> > >  \tsyscon = <&syscon>;\n> > > @@ -72,13 +86,112 @@ emac: ethernet@1c0b000 {\n> > >  \tphy-handle = <&int_mii_phy>;\n> > >  \tphy-mode = \"mii\";\n> > >  \tallwinner,leds-active-low;\n> > > +\n> > > +\tmdio0: mdio {\n> > \n> > (You don't label it mdio here, unlike what was asked before)\n> > \n> > > +\t\t#address-cells = <1>;\n> > > +\t\t#size-cells = <0>;\n> > > +\t\tcompatible = \"snps,dwmac-mdio\";\n> > > +\t};\n> > \n> > I think Rob wanted that node gone?\n> > \n> \n> MDIO mux does not work without a parent MDIO, either gived by \"parent-bus\" or directly via mdio_mux_init() (like it is the case in dwmac-sun8i)\n\nIs the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"? \nIf the latter, then I think the node is fine, but then the mux should be \na child node of it. IOW, the child of an MDIO controller should either \nbe a mux node or slave devices.\n\n> \n> > > +\tmdio-mux {\n> > > +\t\tcompatible = \"mdio-mux\";\n> > > +\t\t#address-cells = <1>;\n> > > +\t\t#size-cells = <0>;\n> > > +\n> > > +\t\tint_mdio: mdio@1 {\n> > > +\t\t\treg = <0>;\n\nunit address of 1 and reg prop of 0 don't match. Build your dtb with \nW=2.\n\n> > > +\t\t\t#address-cells = <1>;\n> > > +\t\t\t#size-cells = <0>;\n> > > +\t\t\tint_mii_phy: ethernet-phy@1 {\n> > > +\t\t\t\treg = <1>;\n> > > +\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n> > > +\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n> > > +\t\t\t\tphy-is-integrated\n\nMissing ;\n\n> > > +\t\t\t};\n> > > +\t\t};\n> > \n> > ... And in your example it's a child of the mdio mux?\n> > \n> \n> So I confirm, integrated PHY must be a child of integrated MDIO (that must be a child of mdio-mux).\n> The example is good.\n> \n> > > +\t\text_mdio: mdio@0 {\n> > > +\t\t\treg = <1>;\n\nAnother unit address mismatch.\n\nRob","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"NJtiWK7h\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsqj32DLtz9sNr\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 04:20:37 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsCH2-0002JJ-9K; Wed, 13 Sep 2017 18:20:32 +0000","from mail-io0-f194.google.com ([209.85.223.194])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsCGx-0001w0-Tb for linux-arm-kernel@lists.infradead.org;\n\tWed, 13 Sep 2017 18:20:29 +0000","by mail-io0-f194.google.com with SMTP id j26so1060943iod.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 13 Sep 2017 11:20:06 -0700 (PDT)","from localhost (216-188-254-6.dyn.grandenetworks.net.\n\t[216.188.254.6]) by smtp.gmail.com with ESMTPSA id\n\to206sm12231401oif.26.2017.09.13.11.20.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 11:20:05 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Tha/d9R8X3v4ibT3BMR8l8Cs7vhRVAOlTOyBpdjlrUA=;\n\tb=NJtiWK7hTHE7NM\n\ttz67e425kTgYfMKRpyZzchj9qmr3OMjLD6euv+uDU3l9TYKtq+vvKgqJTzdoAat/cw4QZ+kY0q0Ca\n\tyDGLUoZHG5cquJx0NVKGSUDGyGhFXGHekb/ZVVQ8Npqys0aOn/bLtFjzGTIIEyaYAep8YGU4w5krK\n\t8MkMlchf6aX6/OtbKFgT5L5f1xDHG2VX3WWE9Ea7B8vkEMcjcqrf3cP1Wd2t/zDng3aBAPrn3wroe\n\tLUETVhIgQhYlBw0AnHccNmpHKYwKKvqFWMdTFrJMKUaN/Ek2Qu2Un5Qn2YsWz/3WriVtBsEuWmS/+\n\tvoV4VgrM/z0FHgLZ+FTg==;","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=ARtmzPIEJX1AW9WU4DyLGEd4y5iWqECIC6kHfzFAmxw=;\n\tb=XKYhiL4/hCHQAs+hb0un7iEqnuEz9PzwgX7RNHyexNYnZHV3lXrSt8h4MKt6B0CqrK\n\tSt//hMUY2ytcSKwhhpkXIfxCbHV4cwz2XLtxCL6RffeKuhcSSBjGs8Pl7ZFZPYN1kBZP\n\tpkpEQ8TNysUGtEyI6a/duMqN+o53ZVz9jnSrJ2aAdYk/XDM+ZPgdLjNS7lGamiKpYO4l\n\tUkci0cyheMsI5iTMcglMGLWNtYjDaORAShnKLfC7ptfDA+lA6vw+Xhdvi2jniPTG+7s3\n\tHe1YgTiUlhrx2X96TI3c+ID+sKhaYEecBmlBcTSlzlh/yJM5h5I8VmfukSTDnfUB5ag7\n\t5GFg==","X-Gm-Message-State":"AHPjjUjsUud6HdssuBV1xT3C4ZR761pPFMi5KvCoGow66rXFvb+2ACLS\n\t5mfve3LxLTmY7A==","X-Google-Smtp-Source":"AOwi7QDnoaA4YPesdXQAeh7WP5BuA8HXWfkEMOqDgVCfTfWHmKNsUpWMot+SZyEqRanf1o5hUT59cw==","X-Received":"by 10.202.80.203 with SMTP id e194mr20159269oib.3.1505326805842; \n\tWed, 13 Sep 2017 11:20:05 -0700 (PDT)","Date":"Wed, 13 Sep 2017 13:20:04 -0500","From":"Rob Herring <robh@kernel.org>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170908074325.GB29999@Red>","User-Agent":"NeoMutt/20170113 (1.7.2)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170913_112028_096575_7902C0CD ","X-CRM114-Status":"GOOD (  29.03  )","X-Spam-Score":"-3.8 (---)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-3.8 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[209.85.223.194 listed in dnsbl.sorbs.net]\n\t-2.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)\n\t[209.85.223.194 listed in wl.mailspike.net]\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [209.85.223.194 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends\n\tin digit (robherring2[at]gmail.com)\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (robherring2[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1768773,"web_url":"http://patchwork.ozlabs.org/comment/1768773/","msgid":"<20170914183136.GA4021@Red>","list_archive_url":null,"date":"2017-09-14T18:31:36","subject":"Re: [PATCH v5 02/10] dt-bindings: net: Restore sun8i dwmac binding","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Wed, Sep 13, 2017 at 01:07:34PM -0500, Rob Herring wrote:\n> On Fri, Sep 08, 2017 at 09:11:48AM +0200, Corentin Labbe wrote:\n> > This patch restore dt-bindings documentation about dwmac-sun8i\n> > This reverts commit 8aa33ec2f481 (\"dt-bindings: net: Revert sun8i dwmac binding\")\n> \n> Why?\n> \n\nI have put the reason in cover-letter and forget to put it in here also.\nI fix that in next series.\n\nThanks","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"AW+1S7c/\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"TKZbwpW/\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtRwY71lWz9sPt\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 04:32:45 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsYwJ-0004Oa-QZ; Thu, 14 Sep 2017 18:32:39 +0000","from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsYvl-0004L9-HS for linux-arm-kernel@lists.infradead.org;\n\tThu, 14 Sep 2017 18:32:11 +0000","by mail-wm0-x242.google.com with SMTP id f4so851611wmh.4\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tThu, 14 Sep 2017 11:31:45 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tg40sm5915134edc.34.2017.09.14.11.31.42\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 14 Sep 2017 11:31:43 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=qpqDx+sUFAp23xDqFSKTeoWNC750NZ2NiB2xwmrLvB8=;\n\tb=AW+1S7c/aWme+H\n\t4pNNHK6iot8XCSAMUe8vCqoEBbXoI+kLw2Sroydgwc+waiujfFTQSoVa/E5bUG9/RkLxdSnz/0O+x\n\tpaq25aQseEu2vZA1xF+IhGoXrIZcBZhQNsE5/yuAiI/Wb+ATY5SjvxyCunb1b7ebvcukW+eEYVatp\n\tiM6ULhDRbnV6xjq8vRcjmSQ0/1cYE/Xcf8pmUaWDuqgtENfNTJ9klwZcK4byCAv1WW5VYipY2EwxL\n\tNTVpAbsmvrIvTBanNQrmX8hh7rluc3930JhN+wRTYBqE+mFRxVP9taG+qAPUqs1wdjSrQrDb9TCq2\n\t0WoFuxmBtrE+0tW1NLfA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=QA/Nyr6pmoRCirIXwco5Gk2d5DBc131axdPcr6EHNOI=;\n\tb=TKZbwpW/TpOncFZYSWWUkP5QIOLDHeBzsQz83U7dEfDLmzjpdivKIwCs0BvZY5LHwD\n\tyM9wptyDeqFDNckyHuLWPqjtJF/+3Zz9J1SNGYOSkkfcNTvlW/pwheMuGCJGx4P67ls3\n\tpZVt6w9w5IqUjWpWJv08YJFfTfjGovbMxhBRDNRR5+qaVW3t18s/1tTRrH63u4tw47yb\n\t3wDgJ3a+Fcl/ITzp5bKWrhPf2cYa/PuU5vRdGyKAeQ9sqReqVsaFZ4Cqn7+7hJGV9KTA\n\thUCH8krM3wc78Z5BvmGfxWbqucGZkSBTSz8smXhycPDlv7I/E8Er64wtrpdKqmVDh6+z\n\ti3xQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=QA/Nyr6pmoRCirIXwco5Gk2d5DBc131axdPcr6EHNOI=;\n\tb=KcQXowG+UF3wQB0vHHWplSkif2NzWtuLoRWeff/pRPg+5FanF6uFCiZssDEl5OjGo5\n\tTniobQszCuhrJKewag/ZLmvyjYNqAL4x7gGO4kxnXO/SB9Q0ulpPNYT/jYlv4AL1AgzI\n\tcVrbAycHaHTSVWW1bcSjsZyoeHCxQH/8cDWfmficqFGSilQ5dKTRvvtgPp8kxKBwaqdY\n\t75lzQUgYQLE9uw9K8Htu08IF6BESJUNIvtFh/IehwnSYtXWMYGWqg1nRNPlzDU3dQWtk\n\tE5RuZB2k13tz9ZYtPfb49cBtjW0SgJX1svQzDy7Pb7/LNnWnPXoEFRHo4faNX8dFwQ9t\n\t5ucg==","X-Gm-Message-State":"AHPjjUiP93+9VuLLRdiBhaG8b6A8WN4PFgL9UOTWnXTwd8aNfuMq0fkB\n\t9il3E+6X/8r48Q==","X-Google-Smtp-Source":"ADKCNb7nWNoTJZUhubu3tXwXNXLqNJcdOn+1ios5hEpCdy3uAxT9XbyOln41PAupDFAf1fICznc3NA==","X-Received":"by 10.80.142.179 with SMTP id w48mr17665070edw.215.1505413903727;\n\tThu, 14 Sep 2017 11:31:43 -0700 (PDT)","Date":"Thu, 14 Sep 2017 20:31:36 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Rob Herring <robh@kernel.org>","Subject":"Re: [PATCH v5 02/10] dt-bindings: net: Restore sun8i dwmac binding","Message-ID":"<20170914183136.GA4021@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-3-clabbe.montjoie@gmail.com>\n\t<20170913180734.xvazvf7thpqtssgz@rob-hp-laptop>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170913180734.xvazvf7thpqtssgz@rob-hp-laptop>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170914_113205_930256_E396EB85 ","X-CRM114-Status":"GOOD (  10.14  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c09:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tmaxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1768790,"web_url":"http://patchwork.ozlabs.org/comment/1768790/","msgid":"<20170914191949.GA3796@lunn.ch>","list_archive_url":null,"date":"2017-09-14T19:19:49","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":13608,"url":"http://patchwork.ozlabs.org/api/people/13608/","name":"Andrew Lunn","email":"andrew@lunn.ch"},"content":"> > Is the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"? \n> > If the latter, then I think the node is fine, but then the mux should be \n> > a child node of it. IOW, the child of an MDIO controller should either \n> > be a mux node or slave devices.\n\nHi Rob\n\nUp until now, children of an MDIO bus have been MDIO devices. Those\nMDIO devices are either Ethernet PHYs, Ethernet Switches, or the\noddball devices that Broadcom iProc has, like generic PHYs.\n\nWe have never had MDIO-muxes as MDIO children. A Mux is not an MDIO\ndevice, and does not have the properties of an MDIO device. It is not\naddressable on the MDIO bus. The current MUXes are addressed via GPIOs\nor MMIO.\n\nThere other similar cases. i2c-mux-gpio is not a child of an i2c bus,\nnor i2c-mux-reg or gpio-mux. nxp,pca9548 is however a child of the i2c\nbus, because it is an i2c device itself...\n\nIf the MDIO mux was an MDIO device, i would agree with you. Bit it is\nnot, so lets not make it a child.\n\n\t    Andrew","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"rDbCtTR1\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtSzh5qZkz9t3H\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 05:20:32 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsZgV-0003uP-VK; Thu, 14 Sep 2017 19:20:23 +0000","from vps0.lunn.ch ([185.16.172.187])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsZgS-0002gj-KS for linux-arm-kernel@lists.infradead.org;\n\tThu, 14 Sep 2017 19:20:22 +0000","from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1dsZfx-00016S-FE; Thu, 14 Sep 2017 21:19:49 +0200"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=t792F7FAfcNVFYIYMd1PPDbVG+VVeOADxFJ2lyZBNYs=;\n\tb=rDbCtTR1k62g1V\n\twvWn13mYO4IBlSNvhlus0L5nrbPLNqD5oeAoxPLrriGoPRHWboYTkNGLcg8S+YdmtOhUZe/EyBMW6\n\tAh6ubNfPWIrcK8pn4Ca56GnGO7+1+2Z1v948Eh+/szNevbUdZh982GF46LAajmtz/w24PiAax4+wf\n\tEJRNzcR2NlKllNuzhTn8l1cLdEMHhZMXq31P/yhfBsuzhGRGAXl86mYoS+gF/aDuAPbXCg09XhK/Q\n\t0khbQ7ffDvVLNZiBi0IgaCKT1wzvfLy/qWh4bow9d9Iy8uM0CADYv8AsVCAaYmP84a77tjm8ORuMV\n\t+/Dwqbs1SshsP0HoLRpg==;","Date":"Thu, 14 Sep 2017 21:19:49 +0200","From":"Andrew Lunn <andrew@lunn.ch>","To":"Corentin Labbe <clabbe.montjoie@gmail.com>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170914191949.GA3796@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>\n\t<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>\n\t<20170914185301.GB4021@Red>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170914185301.GB4021@Red>","User-Agent":"Mutt/1.5.23 (2014-03-12)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170914_122020_837543_FBBC5751 ","X-CRM114-Status":"UNSURE (   8.65  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, Rob Herring <robh@kernel.org>, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1768805,"web_url":"http://patchwork.ozlabs.org/comment/1768805/","msgid":"<20170914185301.GB4021@Red>","list_archive_url":null,"date":"2017-09-14T18:53:01","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Wed, Sep 13, 2017 at 01:20:04PM -0500, Rob Herring wrote:\n> On Fri, Sep 08, 2017 at 09:43:25AM +0200, Corentin Labbe wrote:\n> > On Fri, Sep 08, 2017 at 09:25:38AM +0200, Maxime Ripard wrote:\n> > > On Fri, Sep 08, 2017 at 09:11:51AM +0200, Corentin Labbe wrote:\n> > > > This patch add documentation about the MDIO switch used on sun8i-h3-emac\n> > > > for integrated PHY.\n> > > > \n> > > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n> > > > ---\n> > > >  .../devicetree/bindings/net/dwmac-sun8i.txt        | 127 +++++++++++++++++++--\n> > > >  1 file changed, 120 insertions(+), 7 deletions(-)\n> > > > \n> > > > diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > > index 725f3b187886..3fa0e54825ea 100644\n> > > > --- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > > +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt\n> > > > @@ -39,7 +39,7 @@ Optional properties for the following compatibles:\n> > > >  - allwinner,leds-active-low: EPHY LEDs are active low\n> > > >  \n> > > >  Required child node of emac:\n> > > > -- mdio bus node: should be named mdio\n> > > > +- mdio bus node: should be labelled mdio\n> > > \n> > > labels do not end up in the final DT (while the names do) so why are\n> > > you making this change?\n> > > \n> > \n> > I misunderstood label/name.\n> > Anyway, this contrainst should leave due to \"snps,dwmac-mdio MDIOs are automatically registered\"\n> > \n> > > >  \n> > > >  Required properties of the mdio node:\n> > > >  - #address-cells: shall be 1\n> > > > @@ -48,14 +48,28 @@ Required properties of the mdio node:\n> > > >  The device node referenced by \"phy\" or \"phy-handle\" should be a child node\n> > > >  of the mdio node. See phy.txt for the generic PHY bindings.\n> > > >  \n> > > > -Required properties of the phy node with the following compatibles:\n> > > > +The following compatibles require an mdio-mux node called \"mdio-mux\":\n> > > > +  - \"allwinner,sun8i-h3-emac\"\n> > > > +  - \"allwinner,sun8i-v3s-emac\":\n> > > > +Required properties for the mdio-mux node:\n> > > > +  - compatible = \"mdio-mux\"\n> > > > +  - one child mdio for the integrated mdio\n> > > > +  - one child mdio for the external mdio if present (V3s have none)\n> > > > +Required properties for the mdio-mux children node:\n> > > > +  - reg: 0 for internal MDIO bus, 1 for external MDIO bus\n> > > > +\n> > > > +The following compatibles require a PHY node representing the integrated\n> > > > +PHY, under the integrated MDIO bus node if an mdio-mux node is used:\n> > > >    - \"allwinner,sun8i-h3-emac\",\n> > > >    - \"allwinner,sun8i-v3s-emac\":\n> > > > +\n> > > > +Required properties of the integrated phy node:\n> > > >  - clocks: a phandle to the reference clock for the EPHY\n> > > >  - resets: a phandle to the reset control for the EPHY\n> > > > +- phy-is-integrated\n> > > > +- Should be a child of the integrated mdio\n> > > \n> > > I'm not sure what you mean by that, you ask that it should (so not\n> > > required?) be a child of the integrated mdio...\n> > > \n> > \n> > I will change words to \"must\"\n> > \n> > > >  \n> > > > -Example:\n> > > > -\n> > > > +Example with integrated PHY:\n> > > >  emac: ethernet@1c0b000 {\n> > > >  \tcompatible = \"allwinner,sun8i-h3-emac\";\n> > > >  \tsyscon = <&syscon>;\n> > > > @@ -72,13 +86,112 @@ emac: ethernet@1c0b000 {\n> > > >  \tphy-handle = <&int_mii_phy>;\n> > > >  \tphy-mode = \"mii\";\n> > > >  \tallwinner,leds-active-low;\n> > > > +\n> > > > +\tmdio0: mdio {\n> > > \n> > > (You don't label it mdio here, unlike what was asked before)\n> > > \n> > > > +\t\t#address-cells = <1>;\n> > > > +\t\t#size-cells = <0>;\n> > > > +\t\tcompatible = \"snps,dwmac-mdio\";\n> > > > +\t};\n> > > \n> > > I think Rob wanted that node gone?\n> > > \n> > \n> > MDIO mux does not work without a parent MDIO, either gived by \"parent-bus\" or directly via mdio_mux_init() (like it is the case in dwmac-sun8i)\n> \n> Is the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"? \n> If the latter, then I think the node is fine, but then the mux should be \n> a child node of it. IOW, the child of an MDIO controller should either \n> be a mux node or slave devices.\n> \n\nIt will be snps,dwmac-mdio but putting mdio-mux as a child of it (the mdio node) give me:\n[   18.175338] libphy: stmmac: probed\n[   18.175379] mdio_bus stmmac-0: /soc/ethernet@1c30000/mdio/mdio-mux has invalid PHY address\n[   18.175408] mdio_bus stmmac-0: scan phy mdio-mux at address 0\n[   18.175450] mdio_bus stmmac-0: scan phy mdio-mux at address 1\n[   18.175482] mdio_bus stmmac-0: scan phy mdio-mux at address 2\n[   18.175513] mdio_bus stmmac-0: scan phy mdio-mux at address 3\n[   18.175544] mdio_bus stmmac-0: scan phy mdio-mux at address 4\n[   18.175575] mdio_bus stmmac-0: scan phy mdio-mux at address 5\n[   18.175607] mdio_bus stmmac-0: scan phy mdio-mux at address 6\n[   18.175638] mdio_bus stmmac-0: scan phy mdio-mux at address 7\n[   18.175669] mdio_bus stmmac-0: scan phy mdio-mux at address 8\n[   18.175700] mdio_bus stmmac-0: scan phy mdio-mux at address 9\n[   18.175731] mdio_bus stmmac-0: scan phy mdio-mux at address 10\n[   18.175762] mdio_bus stmmac-0: scan phy mdio-mux at address 11\n[   18.175795] mdio_bus stmmac-0: scan phy mdio-mux at address 12\n[   18.175827] mdio_bus stmmac-0: scan phy mdio-mux at address 13\n[   18.175858] mdio_bus stmmac-0: scan phy mdio-mux at address 14\n[   18.175889] mdio_bus stmmac-0: scan phy mdio-mux at address 15\n[   18.175919] mdio_bus stmmac-0: scan phy mdio-mux at address 16\n[   18.175951] mdio_bus stmmac-0: scan phy mdio-mux at address 17\n[   18.175982] mdio_bus stmmac-0: scan phy mdio-mux at address 18\n[   18.176014] mdio_bus stmmac-0: scan phy mdio-mux at address 19\n[   18.176045] mdio_bus stmmac-0: scan phy mdio-mux at address 20\n[   18.176076] mdio_bus stmmac-0: scan phy mdio-mux at address 21\n[   18.176107] mdio_bus stmmac-0: scan phy mdio-mux at address 22\n[   18.176139] mdio_bus stmmac-0: scan phy mdio-mux at address 23\n[   18.176170] mdio_bus stmmac-0: scan phy mdio-mux at address 24\n[   18.176202] mdio_bus stmmac-0: scan phy mdio-mux at address 25\n[   18.176233] mdio_bus stmmac-0: scan phy mdio-mux at address 26\n[   18.176271] mdio_bus stmmac-0: scan phy mdio-mux at address 27\n[   18.176320] mdio_bus stmmac-0: scan phy mdio-mux at address 28\n[   18.176371] mdio_bus stmmac-0: scan phy mdio-mux at address 29\n[   18.176420] mdio_bus stmmac-0: scan phy mdio-mux at address 30\n[   18.176452] mdio_bus stmmac-0: scan phy mdio-mux at address 31\n\nAdding a fake <reg> to mdio-mux remove it.\nDoes it is acceptable ? or perhaps patching of_mdiobus_register() to not scan node with compatible \"mdio-mux\".\n\n> > \n> > > > +\tmdio-mux {\n> > > > +\t\tcompatible = \"mdio-mux\";\n> > > > +\t\t#address-cells = <1>;\n> > > > +\t\t#size-cells = <0>;\n> > > > +\n> > > > +\t\tint_mdio: mdio@1 {\n> > > > +\t\t\treg = <0>;\n> \n> unit address of 1 and reg prop of 0 don't match. Build your dtb with \n> W=2.\n> \n\nreg are arbitrary value (like mdio-mux-mmioreg), but in our case it is easy to fix this warning.\n\nThanks","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"RVp6o6l9\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"yGnLTmwd\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"u3a/BJoT\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtTcy6mZDz9s7f\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 05:49:20 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsa8Q-0008Lq-SX; Thu, 14 Sep 2017 19:49:14 +0000","from merlin.infradead.org ([2001:8b0:10b:1231::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsa8O-0008LO-An for linux-arm-kernel@bombadil.infradead.org;\n\tThu, 14 Sep 2017 19:49:12 +0000","from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241])\n\tby merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsZGX-0006Ic-LS for linux-arm-kernel@lists.infradead.org;\n\tThu, 14 Sep 2017 18:53:35 +0000","by mail-wr0-x241.google.com with SMTP id k20so117656wre.1\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tThu, 14 Sep 2017 11:53:11 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\t25sm16558796wrv.8.2017.09.14.11.53.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 14 Sep 2017 11:53:08 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=W+IBbIcpTynWM5rPGKy2BMg4woWkdTSNpqIEXEonCpY=;\n\tb=RVp6o6l915y3Hy\n\t7XULi04wbMVnM4jVrtwSyQus6jj4HcTFi6e3hLbvlYP9UD2UM5phbG08FANIDDksmoWINMqM4NRyW\n\tImN+RJPqcf7WVGufxUWRFTflAh+u2IzqMyTsE6fVtIiJ1AOmhCTmXXOwzpTHeJucK/JmuMrPyEq9E\n\t5V9ho2JOWbIet8VwyjvJ9F3obWnduRJ1RPmoTUCT3Yclo1TUae/mKkzuOSbW7fyVsV/veQqqp+BhA\n\toAiVQkkG/YTmjYpADpSADOxkQv5iGXDNXKGQb9RXFnFT5TCEuC/aSxZz97fGAwl2KK07v6+jTtjEH\n\tiglECjw7F9n/BBb49QVA==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=merlin.20170209;\n\th=In-Reply-To:Content-Type:MIME-Version:\n\tReferences:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=oqiv0ancbSM49Phf+Whs9rdeLhf4ITAp1ubg//niem0=;\n\tb=yGnLTmwdVAJhWrB6UbMxWE+cO\n\tDA7ixIM/Uq0k4+7JCX4VyC8ywlYyLDiOdfZe7il8CFH8Q295/xfKXnPrhNpBeZy0soRMUFa/4pJeo\n\t0HhzNQpy/8lPt9uoTeA8TRZG/SWcRAs+YdQNWjKvaZUd+FtD/C2fNH3FUxUfdCe7iOXgXtLrvZjXt\n\tePLOdq4nv87xZFZ8h/us3+oput28QvjbzIdQC9anNm1DoIIWnvHLezfRAYSO4mWCjKS+bEUjFfYWe\n\tBHDlEYrfQHkNoXEkFjXxjonuFPUmSnAlxlaGX3gJr4bxevqymEIQnBPVGrLUA1hS2meT+EI1e44z/\n\tIcHchiUvA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=oqiv0ancbSM49Phf+Whs9rdeLhf4ITAp1ubg//niem0=;\n\tb=u3a/BJoT3IUCt49pPBHDMxEGoopBI8NtT0eDhTaDtxNF9WKfmWWIe9lJ5ARUj//4lt\n\t9FJFs+qhTuEoHtNUqyiT83oMMkasc4jVvIxoLpNWEUh44AHB7Vrs4AJdEN20dTvqhBB4\n\tXwQ5Zac1T3NESTF1yoMAGXSGWPrl9PfD4HdFTk45F3G9Y8AG1fZaN0P4uLLQ5kkORJ/4\n\tlImeDvowloPbI/yPViedb1P2NwFbTE2x427tvzmKvhMw9Q1zwnUDiX5Mvdeev27gwMvi\n\tVF+rrwqUj6NFV3PAWogxRQ9HxLOlQPj1dtcbX+YeXZWuyZpxhm+g/ivgEXoWcMZHsdD8\n\tjGSA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=oqiv0ancbSM49Phf+Whs9rdeLhf4ITAp1ubg//niem0=;\n\tb=mfqTMiQtO1iLwbAbuD4cG3zbILHJMogk9LMlL1FCean73z0PSX9JHMRSzJOpmOxdv7\n\tjCxTW5K5hIwMByZ/pR5fIm/oFVIAxTYwoPGkqK7Ms0TNRwl+/MwXFk1hMDb76fWfdNUF\n\tjnrXgmrUr0FJkknUPXQ5xIC/lcOePI8jHK4Uqo7jo3wHpifQfUqK6B9xQzERhSyuNYph\n\tD/NOb9fKEAutD5qRnuPYWhyLL0i6WV6oRnciV7O8F1FT1pDaDGpc5Vi69CjF3jclDxf5\n\tMh4oSApEYGRZUKevyh6JYCxSbgOTWibmNWA7FG6PL3RQ8uDjIlWpCzHjILUBGEnaTNTP\n\t27Hw==","X-Gm-Message-State":"AHPjjUjDo9PuQ3pyVoZZ4v3Yhek04y811W5ajNWTFLM33FxSZEpjhkkW\n\tZPfr6jkzsKoTe2GX","X-Google-Smtp-Source":"ADKCNb7MF3MltRZnkBctTeisZ5BUikL8AQB2p/V5S2JSBkNe1OknLQ5lqOPQ5mEt5jJxFifq5WaeLw==","X-Received":"by 10.223.138.151 with SMTP id\n\ty23mr17599526wry.244.1505415189296; \n\tThu, 14 Sep 2017 11:53:09 -0700 (PDT)","Date":"Thu, 14 Sep 2017 20:53:01 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Rob Herring <robh@kernel.org>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170914185301.GB4021@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>\n\t<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-Spam-Note":"CRM114 invocation failed","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on merlin.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:241 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, netdev@vger.kernel.org, peppe.cavallaro@st.com,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1770663,"web_url":"http://patchwork.ozlabs.org/comment/1770663/","msgid":"<20170919053112.GA15105@Red>","list_archive_url":null,"date":"2017-09-19T05:31:12","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Thu, Sep 14, 2017 at 09:19:49PM +0200, Andrew Lunn wrote:\n> > > Is the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"? \n> > > If the latter, then I think the node is fine, but then the mux should be \n> > > a child node of it. IOW, the child of an MDIO controller should either \n> > > be a mux node or slave devices.\n> \n> Hi Rob\n> \n> Up until now, children of an MDIO bus have been MDIO devices. Those\n> MDIO devices are either Ethernet PHYs, Ethernet Switches, or the\n> oddball devices that Broadcom iProc has, like generic PHYs.\n> \n> We have never had MDIO-muxes as MDIO children. A Mux is not an MDIO\n> device, and does not have the properties of an MDIO device. It is not\n> addressable on the MDIO bus. The current MUXes are addressed via GPIOs\n> or MMIO.\n> \n> There other similar cases. i2c-mux-gpio is not a child of an i2c bus,\n> nor i2c-mux-reg or gpio-mux. nxp,pca9548 is however a child of the i2c\n> bus, because it is an i2c device itself...\n> \n> If the MDIO mux was an MDIO device, i would agree with you. Bit it is\n> not, so lets not make it a child.\n> \n> \t    Andrew\n\nHello Rob, could you anwser/confirm please.\nI wait on this for sending the next version.\n\nThanks\nRegards\nCorentin Labbe","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"ccj7oOK6\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"njT8Mud9\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxBM92dVfz9s78\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 15:31:49 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duB8M-0003eo-4h; Tue, 19 Sep 2017 05:31:46 +0000","from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duB8J-0003Yu-Cx for linux-arm-kernel@lists.infradead.org;\n\tTue, 19 Sep 2017 05:31:45 +0000","by mail-wm0-x230.google.com with SMTP id r68so1868496wmg.3\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tMon, 18 Sep 2017 22:31:23 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\ta69sm645726wme.40.2017.09.18.22.31.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Sep 2017 22:31:21 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=AlPO75ADmYNyaH5VVUTbOR3KRMZd094NIbEQRYYK66c=;\n\tb=ccj7oOK616Xww1\n\t57iFFbZM60RAZKohSixVCxFG6/U7GaN/p141NkSrTjrTq4o5OM5sgYmVyK+GPsNuFTCxTBClCGXjw\n\txxm9q9fzM8rt9DKjLnAZYUJt+RdSEfZxW+WHKQdMwOwwonXls14Ihqf7yXUQl5ocCF6VovVBfjoIc\n\tpimPBqK/Z/iwImF5FPTkv3aSX3+ZaF5+uLb4djT64ArU7t3WhcMoWu14NnzM8XwqMLcxmQ2IAZ8vD\n\tv2EedJjEPnNgChA4ga/yxBNnWcKPwFnvRGq0ZmUfd7Vmqb+0pbBwp/PvmLr3Y/MekE0UQiqDeblIN\n\tzCKlJhnf2ogkfvg6MqQQ==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=Z8EAt6TUHOiVEmCyA9AVDGQJNlU1ILLee5oOIqGGrBQ=;\n\tb=njT8Mud928NfeEtCIotbf4Uqo9jq73j/lE/EgNIcp8NmPTJtbaP7cZ+6Mjk0N3h4ey\n\te77yCt13JIqZ1kWXObVNqIkjRyny4jpL6OLeGY2CYPzxFt+GFZ7FMwC+THXPvm0tmqvM\n\tfAv33o/l1aOy1C6puSF+WrZCIMxhbkRueF+/RP46dL39hNe7h1PJtaP0Sbmxhdrs7Of5\n\tj4Ukom9u4DcGic216Cv4qYz16iMm1p2ZVXKTs00DevOoQ558NhCi4cIG3m9a0IR/CjMF\n\tv9yw+o+Foz7c9Fqtfak+R4h0DQu35F2WUjUrBLr1pa5CirPbznZwftoE7oxgj899gO8r\n\ti2+g=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=Z8EAt6TUHOiVEmCyA9AVDGQJNlU1ILLee5oOIqGGrBQ=;\n\tb=RpgE79TsaRyvNQstpiXYJd3tDFtsWAbN8zn28AgxOE7zCJ3OTM63LH+I1IFLe+20o3\n\t1oCzTjmPjR/GSjPl8wlk8ZA0sWUZiXnEdM6+1sDIpS7wc+4eHwd/x8dw5NcbRoCIMaew\n\t9aYkW1JmmeYqKQFaG2+uRyOeuH3CfxXq9STHoKUXSo3cCKtM9UHITTdWSpugyI0NYevq\n\tIdy+bcESw/u1LvIqAeI0/d6IERtgZVA3EcTDdVZbIPojk4uENyO9Nl46LvWR4RwNEjyb\n\tLP7Xgt8DFBbv2JNTjl9geCBHikJbi10riUA6sFIukLeuIPnuAVSb/818FlStyxMYfvyW\n\t++uA==","X-Gm-Message-State":"AHPjjUg69+2t3ujAcWlxXuozVifFRin+JTbQu/6Igu9z+1YNSqeOiUEl\n\tzZS2U3Qoi8cFFo3f09ZRfks=","X-Google-Smtp-Source":"AOwi7QB0U3VVpVX7hvaU/qhq6dPmGQ+1hr+A5Nw2wNwQyF+48SD3b2TnvOmvK6DAkC/dyK/wwfMBGg==","X-Received":"by 10.28.16.16 with SMTP id 16mr415572wmq.62.1505799081755;\n\tMon, 18 Sep 2017 22:31:21 -0700 (PDT)","Date":"Tue, 19 Sep 2017 07:31:12 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"robh@kernel.org","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170919053112.GA15105@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>\n\t<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>\n\t<20170914185301.GB4021@Red> <20170914191949.GA3796@lunn.ch>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170914191949.GA3796@lunn.ch>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170918_223143_608891_29196CE1 ","X-CRM114-Status":"GOOD (  16.37  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2a00:1450:400c:c09:0:0:0:230 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, Rob Herring <robh@kernel.org>, f.fainelli@gmail.com,\n\talexandre.torgue@st.com, devicetree@vger.kernel.org,\n\tcatalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk,\n\tlinux-kernel@vger.kernel.org, \n\twens@csie.org, andrew@lunn.ch, netdev@vger.kernel.org,\n\tpeppe.cavallaro@st.com, \n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tlinux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1771516,"web_url":"http://patchwork.ozlabs.org/comment/1771516/","msgid":"<CAL_JsqJ2eVA9Zg60Hagqm732ZoOzHWTwVBqOabOhjE5aQ26L+g@mail.gmail.com>","list_archive_url":null,"date":"2017-09-20T02:49:52","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Thu, Sep 14, 2017 at 2:19 PM, Andrew Lunn <andrew@lunn.ch> wrote:\n>> > Is the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"?\n>> > If the latter, then I think the node is fine, but then the mux should be\n>> > a child node of it. IOW, the child of an MDIO controller should either\n>> > be a mux node or slave devices.\n>\n> Hi Rob\n>\n> Up until now, children of an MDIO bus have been MDIO devices. Those\n> MDIO devices are either Ethernet PHYs, Ethernet Switches, or the\n> oddball devices that Broadcom iProc has, like generic PHYs.\n>\n> We have never had MDIO-muxes as MDIO children. A Mux is not an MDIO\n> device, and does not have the properties of an MDIO device. It is not\n> addressable on the MDIO bus. The current MUXes are addressed via GPIOs\n> or MMIO.\n\nThe DT parent/child relationship defines the bus topology. We describe\nMDIO buses in that way and if a mux is sitting between the controller\nand the devices, then the DT hierarchy should reflect that. Now\nsometimes we have 2 options for what interface has the parent/child\nrelationship (e.g. an I2C controlled USB hub chip), but in this case\nwe don't.\n\n> There other similar cases. i2c-mux-gpio is not a child of an i2c bus,\n> nor i2c-mux-reg or gpio-mux. nxp,pca9548 is however a child of the i2c\n> bus, because it is an i2c device itself...\n\nSome are i2c controlled mux devices, but some can be GPIO controlled.\n\n>\n> If the MDIO mux was an MDIO device, i would agree with you. Bit it is\n> not, so lets not make it a child.\n>\n>             Andrew\n>\n> _______________________________________________\n> linux-arm-kernel mailing list\n> linux-arm-kernel@lists.infradead.org\n> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"ZJOdQimT\"; dkim-atps=neutral","mail.kernel.org;\n\tdmarc=none (p=none dis=none) header.from=kernel.org","mail.kernel.org;\n\tspf=none smtp.mailfrom=robh@kernel.org"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxkkt5F5cz9s78\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 12:50:46 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duV61-00036t-LM; Wed, 20 Sep 2017 02:50:41 +0000","from mail.kernel.org ([198.145.29.99])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duV5w-0002Yf-FV for linux-arm-kernel@lists.infradead.org;\n\tWed, 20 Sep 2017 02:50:39 +0000","from mail-qk0-f179.google.com (mail-qk0-f179.google.com\n\t[209.85.220.179])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby mail.kernel.org (Postfix) with ESMTPSA id 16F9521C9B\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 20 Sep 2017 02:50:14 +0000 (UTC)","by mail-qk0-f179.google.com with SMTP id u7so1462531qku.13\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tTue, 19 Sep 2017 19:50:14 -0700 (PDT)","by 10.12.209.75 with HTTP; Tue, 19 Sep 2017 19:49:52 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=EntcKunKR4BzdcA79/xp0zbq7UbWmh3TIbI33xHkSpw=;\n\tb=ZJOdQimTqdiWkQ\n\thbEMQmhJZ1q/QF2sOxPY/oST8HJYyxyQB5yiwHIUBg9W2g3l5kmsoXL9kS2hiL3tRhCMRPWGHB2ad\n\tGxsUvf7hyYABFwnkMkeV5agsb3dWi24BUhoMAVcMm7VvXK5/waP91xMwEEgQf5887DhQMdp+O1uaZ\n\tUHWy8bHqwUca6kU3iLnm0maibZ1fbxhP/8M/LsYvco6DBrCpWj2qKSU4aKkj7Sa3jnDm6iqEvYpTP\n\tGW/q5gxFPw7LHZgpvy2G0gh0K9qu7MuYVTPbxEawS1Jgq59tfAV5+GfFwnEaSVPCNdg3lrqpwklFA\n\tJ69ZknXs7M1fIhgsOnTg==;","DMARC-Filter":"OpenDMARC Filter v1.3.2 mail.kernel.org 16F9521C9B","X-Gm-Message-State":"AHPjjUgWjPReW2UrPyHyO9diP1ZyjvIsQTE8/1eepOJmi2JZSQsbKc3T\n\tCLBh/vg90yoFyfaj4SAtVR9951f/5IcLF9J9Ug==","X-Google-Smtp-Source":"AOwi7QAd0ok1Ei+6Tj+NrCahxTwP5Uigg48YeVgmV8FYFtkhdxfsms6QvX+zbC4choJzEF+SYUREUKfL3CMTfGGsQjM=","X-Received":"by 10.55.95.71 with SMTP id t68mr4989911qkb.233.1505875813191;\n\tTue, 19 Sep 2017 19:50:13 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170914191949.GA3796@lunn.ch>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>\n\t<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>\n\t<20170914185301.GB4021@Red> <20170914191949.GA3796@lunn.ch>","From":"Rob Herring <robh@kernel.org>","Date":"Tue, 19 Sep 2017 21:49:52 -0500","X-Gmail-Original-Message-ID":"<CAL_JsqJ2eVA9Zg60Hagqm732ZoOzHWTwVBqOabOhjE5aQ26L+g@mail.gmail.com>","Message-ID":"<CAL_JsqJ2eVA9Zg60Hagqm732ZoOzHWTwVBqOabOhjE5aQ26L+g@mail.gmail.com>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","To":"Andrew Lunn <andrew@lunn.ch>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170919_195036_652558_264160FF ","X-CRM114-Status":"GOOD (  17.65  )","X-Spam-Score":"-6.4 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.4 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.5 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source\n\t[209.85.220.179 listed in dnsbl.sorbs.net]\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [198.145.29.99 listed in list.dnswl.org]\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>,\n\t\"devicetree@vger.kernel.org\" <devicetree@vger.kernel.org>,\n\tFlorian Fainelli <f.fainelli@gmail.com>,\n\tAlexandre Torgue <alexandre.torgue@st.com>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>,\n\t\"linux-kernel@vger.kernel.org\" <linux-kernel@vger.kernel.org>,\n\tChen-Yu Tsai <wens@csie.org>,\n\tCorentin Labbe <clabbe.montjoie@gmail.com>, \n\tnetdev <netdev@vger.kernel.org>,\n\tGiuseppe CAVALLARO <peppe.cavallaro@st.com>, \n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1772147,"web_url":"http://patchwork.ozlabs.org/comment/1772147/","msgid":"<20170920182350.GA21482@Red>","list_archive_url":null,"date":"2017-09-20T18:23:50","subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","submitter":{"id":64152,"url":"http://patchwork.ozlabs.org/api/people/64152/","name":"Corentin Labbe","email":"clabbe.montjoie@gmail.com"},"content":"On Tue, Sep 19, 2017 at 09:49:52PM -0500, Rob Herring wrote:\n> On Thu, Sep 14, 2017 at 2:19 PM, Andrew Lunn <andrew@lunn.ch> wrote:\n> >> > Is the MDIO controller \"allwinner,sun8i-h3-emac\" or \"snps,dwmac-mdio\"?\n> >> > If the latter, then I think the node is fine, but then the mux should be\n> >> > a child node of it. IOW, the child of an MDIO controller should either\n> >> > be a mux node or slave devices.\n> >\n> > Hi Rob\n> >\n> > Up until now, children of an MDIO bus have been MDIO devices. Those\n> > MDIO devices are either Ethernet PHYs, Ethernet Switches, or the\n> > oddball devices that Broadcom iProc has, like generic PHYs.\n> >\n> > We have never had MDIO-muxes as MDIO children. A Mux is not an MDIO\n> > device, and does not have the properties of an MDIO device. It is not\n> > addressable on the MDIO bus. The current MUXes are addressed via GPIOs\n> > or MMIO.\n> \n> The DT parent/child relationship defines the bus topology. We describe\n> MDIO buses in that way and if a mux is sitting between the controller\n> and the devices, then the DT hierarchy should reflect that. Now\n> sometimes we have 2 options for what interface has the parent/child\n> relationship (e.g. an I2C controlled USB hub chip), but in this case\n> we don't.\n> \n\nPutting mdio-mux as a child of it (the mdio node) give me:\n[   18.175338] libphy: stmmac: probed\n[   18.175379] mdio_bus stmmac-0: /soc/ethernet@1c30000/mdio/mdio-mux has invalid PHY address\n[   18.175408] mdio_bus stmmac-0: scan phy mdio-mux at address 0\n[   18.175450] mdio_bus stmmac-0: scan phy mdio-mux at address 1\n[   18.175482] mdio_bus stmmac-0: scan phy mdio-mux at address 2\n[   18.175513] mdio_bus stmmac-0: scan phy mdio-mux at address 3\n[   18.175544] mdio_bus stmmac-0: scan phy mdio-mux at address 4\n[   18.175575] mdio_bus stmmac-0: scan phy mdio-mux at address 5\n[   18.175607] mdio_bus stmmac-0: scan phy mdio-mux at address 6\n[   18.175638] mdio_bus stmmac-0: scan phy mdio-mux at address 7\n[   18.175669] mdio_bus stmmac-0: scan phy mdio-mux at address 8\n[   18.175700] mdio_bus stmmac-0: scan phy mdio-mux at address 9\n[   18.175731] mdio_bus stmmac-0: scan phy mdio-mux at address 10\n[   18.175762] mdio_bus stmmac-0: scan phy mdio-mux at address 11\n[   18.175795] mdio_bus stmmac-0: scan phy mdio-mux at address 12\n[   18.175827] mdio_bus stmmac-0: scan phy mdio-mux at address 13\n[   18.175858] mdio_bus stmmac-0: scan phy mdio-mux at address 14\n[   18.175889] mdio_bus stmmac-0: scan phy mdio-mux at address 15\n[   18.175919] mdio_bus stmmac-0: scan phy mdio-mux at address 16\n[   18.175951] mdio_bus stmmac-0: scan phy mdio-mux at address 17\n[   18.175982] mdio_bus stmmac-0: scan phy mdio-mux at address 18\n[   18.176014] mdio_bus stmmac-0: scan phy mdio-mux at address 19\n[   18.176045] mdio_bus stmmac-0: scan phy mdio-mux at address 20\n[   18.176076] mdio_bus stmmac-0: scan phy mdio-mux at address 21\n[   18.176107] mdio_bus stmmac-0: scan phy mdio-mux at address 22\n[   18.176139] mdio_bus stmmac-0: scan phy mdio-mux at address 23\n[   18.176170] mdio_bus stmmac-0: scan phy mdio-mux at address 24\n[   18.176202] mdio_bus stmmac-0: scan phy mdio-mux at address 25\n[   18.176233] mdio_bus stmmac-0: scan phy mdio-mux at address 26\n[   18.176271] mdio_bus stmmac-0: scan phy mdio-mux at address 27\n[   18.176320] mdio_bus stmmac-0: scan phy mdio-mux at address 28\n[   18.176371] mdio_bus stmmac-0: scan phy mdio-mux at address 29\n[   18.176420] mdio_bus stmmac-0: scan phy mdio-mux at address 30\n[   18.176452] mdio_bus stmmac-0: scan phy mdio-mux at address 31\n\nAdding a fake <reg> to mdio-mux remove it, but I found that a bit ugly.\nOr perhaps patching of_mdiobus_register() to not scan node with compatible \"mdio-mux\".\n\nWhat do you think ?\n\nRegards","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"jXdEkt8f\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"gxzn16sy\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy7SJ0PxRz9s7g\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 04:24:31 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dujfg-00009x-14; Wed, 20 Sep 2017 18:24:28 +0000","from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dujfb-00006D-Rk for linux-arm-kernel@lists.infradead.org;\n\tWed, 20 Sep 2017 18:24:25 +0000","by mail-wm0-x232.google.com with SMTP id e71so9582633wmg.4\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 20 Sep 2017 11:24:00 -0700 (PDT)","from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6])\n\tby smtp.googlemail.com with ESMTPSA id\n\tw82sm2386753wme.5.2017.09.20.11.23.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 11:23:58 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=44JZWRm6g3cp5KPk7uTBTSjiN0b6d9x8UVq2aKceFXI=;\n\tb=jXdEkt8fzrVrq8\n\tlJUp9SW2HQqP0UCzaPrrN3WnlPNhyRhu9d4eA70L+/1IMPi4x+SMGtZpklN6obBnYgViQ29IRAs8K\n\tw2qEZqeJbD6Q/hYritLJnwbo6yyLwTlGRy46LEKcHW+E3IL3wfkyXXoyyyv5LJiYXlHXkdpKlhMe5\n\tcuX5slISEc5RdrqsPrJXUxk9l2lfcfyckDKKyZ/eS9SNVLP+E3kVftRDUwnysd6tJt9gNOtx+5/Uq\n\tCuVYV6by5l5Na1gaSRTL8iulcKC5tRKAVGSIaTgFoLvfnDD42QmAeI5RTrm+b8mWbBvKeo6P4rMNo\n\t+rtLL5sjWrrAgmgru5WA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=yrR4NHkMPSYdQw/SNSVyULFAVX5Fz3nGp0HvZzngJzo=;\n\tb=gxzn16syHWjEf0UeNPhZ3MtWSzrjRMV7QnYBZFdfjOTSdj1kwyoOzvdqxnocvzXVPP\n\tov62JhRwFPb2Ge3zGTi+tj6VBiKQQp+AjQ0n2wvvFXfiqopLD0RkyRmrmBlf2yZqqgZ3\n\tonU5d3HbmAWsz1WuS76OwK6OL/eqbl124k2qFOotWM2QQWmWsbtSVd0e6QVUXFxBC5Yv\n\tNRpz+5yLpGZ+x5u5Dr33tD+U4Zj45jtihYYWzAu89UPZ4h3SCfrpLl1WsgZVo1czDk4l\n\tqpLtggsInmo3yUBax4d/LCL18ZqGPjhhnXIjpGVR/W2ihoa7v/KwcoBqsCVokN6FCGtd\n\tW4Jg=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=yrR4NHkMPSYdQw/SNSVyULFAVX5Fz3nGp0HvZzngJzo=;\n\tb=JiYCXahILQoMv+wA3tD+aomRKyDT+sdWG6n8qQ1Wlszs3JgI7oynjUx6E3SlOMD0Je\n\tpwJpf5swV95kaoH+One+Tje27IUgooJ/cy9TOV0g5vdIO9E0DUlr8ypd4eR8+vS3YxLU\n\tmiKmiZpcz2DKymXk2bo5Ojn895rJFs1PC+sm11G6XIfw4y+rZgNxweyK3XRbTToASzKK\n\tyU1zggGT11+5YGpeiSyzx9oxYyIDh4gIJaLlQsfagGDGvFJZY+AxwLJEUj7epk6G44Ly\n\tkn5Ur6/JBgoPy7U0YcoVfNLEJk8iT+tPxpo8gX47rIk4KpL79AM1cKImWM1laMISMG7H\n\txNlA==","X-Gm-Message-State":"AHPjjUjclwi4EBnShU70U1mZqBcn1VUo+oNkdtxBPONd+VPOOHrLNhDF\n\tVh4KBO1nVh2O174xJWkQwK8=","X-Google-Smtp-Source":"AOwi7QBvwHT/BUOh6VdpTUzz/3vxNN0HVHWqnIAxEulb9ySSPs0YcZTWmJAIn+Hl/88lIWOhpGJcmg==","X-Received":"by 10.28.15.198 with SMTP id 189mr4625599wmp.140.1505931839151; \n\tWed, 20 Sep 2017 11:23:59 -0700 (PDT)","Date":"Wed, 20 Sep 2017 20:23:50 +0200","From":"Corentin Labbe <clabbe.montjoie@gmail.com>","To":"Rob Herring <robh@kernel.org>","Subject":"Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update\n\tdocumentation about integrated PHY","Message-ID":"<20170920182350.GA21482@Red>","References":"<20170908071156.5115-1-clabbe.montjoie@gmail.com>\n\t<20170908071156.5115-6-clabbe.montjoie@gmail.com>\n\t<20170908072538.rqsp6dobwsqmzrsr@flea.lan>\n\t<20170908074325.GB29999@Red>\n\t<20170913182004.uniyo5opeilcfk7r@rob-hp-laptop>\n\t<20170914185301.GB4021@Red> <20170914191949.GA3796@lunn.ch>\n\t<CAL_JsqJ2eVA9Zg60Hagqm732ZoOzHWTwVBqOabOhjE5aQ26L+g@mail.gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<CAL_JsqJ2eVA9Zg60Hagqm732ZoOzHWTwVBqOabOhjE5aQ26L+g@mail.gmail.com>","User-Agent":"Mutt/1.7.2 (2016-11-26)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170920_112424_060239_322C5289 ","X-CRM114-Status":"GOOD (  18.22  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2a00:1450:400c:c09:0:0:0:232 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (clabbe.montjoie[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, Andrew Lunn <andrew@lunn.ch>,\n\tFlorian Fainelli <f.fainelli@gmail.com>,\n\tAlexandre Torgue <alexandre.torgue@st.com>,\n\t\"devicetree@vger.kernel.org\" <devicetree@vger.kernel.org>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>,\n\t\"linux-kernel@vger.kernel.org\" <linux-kernel@vger.kernel.org>,\n\tChen-Yu Tsai <wens@csie.org>, netdev <netdev@vger.kernel.org>,\n\tGiuseppe CAVALLARO <peppe.cavallaro@st.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]