Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932170AbdLOWSC (ORCPT ); Fri, 15 Dec 2017 17:18:02 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34176 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756608AbdLOWRy (ORCPT ); Fri, 15 Dec 2017 17:17:54 -0500 X-Google-Smtp-Source: ACJfBouAMZhNLJP7vJRuH4Zn1Xe0h0uhIDf52OtbLMAxl9AJMdnRDIMgv67AvFuLoijZl7otkjqCNA== Date: Fri, 15 Dec 2017 16:17:52 -0600 From: Rob Herring To: Richard Leitner Cc: mark.rutland@arm.com, fugang.duan@nxp.com, andrew@lunn.ch, f.fainelli@gmail.com, frowand.list@gmail.com, davem@davemloft.net, geert+renesas@glider.be, sergei.shtylyov@cogentembedded.com, baruch@tkos.co.il, david.wu@rock-chips.com, lukma@denx.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, richard.leitner@skidata.com Subject: Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support Message-ID: <20171215221752.42sz53izxeebkfuq@rob-hp-laptop> References: <20171211121700.10200-1-dev@g0hl1n.net> <20171211121700.10200-2-dev@g0hl1n.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171211121700.10200-2-dev@g0hl1n.net> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1729 Lines: 38 On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: > From: Richard Leitner > > Some PHYs need a minimum time after the reset gpio was asserted and/or > deasserted. To ensure we meet these timing requirements add two new > optional devicetree parameters for the phy: reset-delay-us and > reset-post-delay-us. > > Signed-off-by: Richard Leitner > Reviewed-by: Geert Uytterhoeven > --- > Documentation/devicetree/bindings/net/phy.txt | 10 ++++++++++ > drivers/net/phy/mdio_device.c | 13 +++++++++++-- > drivers/of/of_mdio.c | 4 ++++ > include/linux/mdio.h | 2 ++ > 4 files changed, 27 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/devicetree/bindings/net/phy.txt > index c05479f5ac7c..72860ce7f610 100644 > --- a/Documentation/devicetree/bindings/net/phy.txt > +++ b/Documentation/devicetree/bindings/net/phy.txt > @@ -55,6 +55,12 @@ Optional Properties: > > - reset-gpios: The GPIO phandle and specifier for the PHY reset signal. > > +- reset-delay-us: Delay after the reset was asserted in microseconds. > + If this property is missing the delay will be skipped. > + > +- reset-post-delay-us: Delay after the reset was deasserted in microseconds. > + If this property is missing the delay will be skipped. I think these names could be clearer as to exactly what they mean. Looking at existing properties with "reset-delay" there's a mixture of definitions whether it is the assert time or the time after deassert. So I'd call these "reset-assert-us" and "reset-deassert-us". Rob