Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdGFN4E (ORCPT ); Thu, 6 Jul 2017 09:56:04 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:46867 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbdGFN4C (ORCPT ); Thu, 6 Jul 2017 09:56:02 -0400 Date: Thu, 6 Jul 2017 15:55:57 +0200 From: Andrew Lunn To: Richard Leitner Cc: fugang.duan@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dev@g0hl1n.net Subject: Re: [PATCH 2/2] net: ethernet: fsl: add phy reset after clk enable option Message-ID: <20170706135557.GC8810@lunn.ch> References: <1499346330-12166-1-git-send-email-richard.leitner@skidata.com> <1499346330-12166-2-git-send-email-richard.leitner@skidata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499346330-12166-2-git-send-email-richard.leitner@skidata.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 23 Hi Richard > diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt > index 6f55bdd..1766579 100644 > --- a/Documentation/devicetree/bindings/net/fsl-fec.txt > +++ b/Documentation/devicetree/bindings/net/fsl-fec.txt > @@ -23,6 +23,9 @@ Optional properties: > - phy-handle : phandle to the PHY device connected to this device. > - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory. > Use instead of phy-handle. > +- phy-reset-after-clk-enable : If present then a phy reset and configuration > + will be performed everytime after the clocks are enabled. This is required > + for some PHYs to work properly. It sounds like this issue will apply to any LAN8710 which has its clock fiddled with. So this should be a centrally documented property, which any MAC driver can implement. Please move the above text to ethernet.txt, and instead have: - phy-reset-after-clk-enable : See ethernet.txt Thanks Andrew