Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197AbdGFOdx (ORCPT ); Thu, 6 Jul 2017 10:33:53 -0400 Received: from mail1.skidata.com ([91.230.2.99]:32016 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbdGFOdv (ORCPT ); Thu, 6 Jul 2017 10:33:51 -0400 X-IronPort-AV: E=Sophos;i="5.40,317,1496095200"; d="scan'208";a="4923808" Subject: Re: [PATCH 2/2] net: ethernet: fsl: add phy reset after clk enable option To: Andrew Lunn CC: , , , , , , References: <1499346330-12166-1-git-send-email-richard.leitner@skidata.com> <1499346330-12166-2-git-send-email-richard.leitner@skidata.com> <20170706135557.GC8810@lunn.ch> From: Richard Leitner Message-ID: <109f44aa-87ed-6a9c-b557-8dabb2958c8c@skidata.com> Date: Thu, 6 Jul 2017 16:33:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170706135557.GC8810@lunn.ch> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [172.16.60.30] X-ClientProxiedBy: sdex1srv.skidata.net (172.16.10.92) To sdex1srv.skidata.net (172.16.10.92) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1342 Lines: 34 On 07/06/2017 03:55 PM, Andrew Lunn wrote: >> 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 I haven't tested it on any other platform than an i.MX6, but IMHO you're right. It sounds reasonable that it affects any SoC which is messing around with the clock and not performing a reset by default. Thanks for that hint! I'll include that in the v2. > Thanks > Andrew > regards, Richard.L