Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753589AbdLMCWL (ORCPT ); Tue, 12 Dec 2017 21:22:11 -0500 Received: from mail-eopbgr50079.outbound.protection.outlook.com ([40.107.5.79]:7440 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753623AbdLMCVJ (ORCPT ); Tue, 12 Dec 2017 21:21:09 -0500 From: Andy Duan To: Richard Leitner , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , "frowand.list@gmail.com" CC: "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 0/4] net: fec: fix refclk enable for SMSC LAN8710/20 Thread-Topic: [PATCH net-next v5 0/4] net: fec: fix refclk enable for SMSC LAN8710/20 Thread-Index: AQHTcnoCh/ANle8fLU6X5RG5FzH/gKNAjMkQ Date: Wed, 13 Dec 2017 02:21:04 +0000 Message-ID: References: <20171211121700.10200-1-dev@g0hl1n.net> In-Reply-To: <20171211121700.10200-1-dev@g0hl1n.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=fugang.duan@nxp.com; x-originating-ip: [192.158.241.86] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2269;6:JDCeyUubHItCUIbZV72h6/ejRSyMWnJeXaB3cPqeuenMUH7S1wtk0102QqFx0sHIDBeBh1gfBFtfN2mBTa3Yz72TD7Sn5C15SBHxHK9tGBCOByO9pypfqgUcPOC2DilCF8Ru/4hUBkh+4bud6RZrBK6X1hlne9VMyzr8NdnVY9qTv2KmofiAIeBnFntI2uGRnRMe8OmfOHfTe5H/WoBOSTVGXSFLyvpnhlD7gn1VDACH4hao5OZTX6KjYZ1YNMuQE8pnnLhBRXdYeWpD2DUVPp+jMcQyDaZ1nd76ymSZ7ZKE/+zHGs1GMe4bEA7Uq2MTZb6RJQSx0QmFcM6d8A2Rl7G0kXVXRAcaqOtLI/effZ8=;5:EOIAjfz3StQdoXfTU+HlqWmVxjZny4KGXFHSFlKZmBYj4St6Oe3zcmmNzy3Hn8nSlY7fwYwBKnmuPlc6kqj+m1If+xWiY7iCXTfq1vhnlVDNVV/jVS2LB2CHbzFIndbE6n65BunWvfYJY/OFTRrZyL31pUd9LAglniAu2P8ZnQo=;24:aSwglFq2YY+qevrMHgvZJ4f2cSghKCmuGgDSIrslIa/7aKEzLjn8qZmOlY3qPhqDoOuAo+/RssI7XZIUhn6kmIgz/AAXotB2ivXmhIXi0Ww=;7:giiQnuoIJfrifUmA8zAOx9yZglnAWt206I15KpkJKLilPfX3KiyhmyLXBpFLtF7yKdXLry0FssXym5tX9onHaOjGxb5y7mlZM1Jf3DYEcCiMadgg0t/nwstyRI+Jh03cruiEuS1F0nAhZ8+4/kyB1VI8QkPyvRPNdRQSmWW/x10e1l7biC0Tze+2jv8jveD2qUWZPwOnaBGRMpHNLjp6ZbbSKLUbQsp6Ds6Oz796ga3V72tklN+PA8bYzDPOasLm x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 5d4cb728-8d2e-4684-7d75-08d541d02970 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307);SRVR:VI1PR0401MB2269; x-ms-traffictypediagnostic: VI1PR0401MB2269: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231023)(6055026)(6041248)(20161123555025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(6072148)(201708071742011);SRVR:VI1PR0401MB2269;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0401MB2269; x-forefront-prvs: 052017CAF1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(346002)(189003)(199004)(7416002)(305945005)(229853002)(7736002)(81166006)(74316002)(66066001)(39060400002)(53936002)(6246003)(3846002)(9686003)(102836003)(4326008)(8676002)(81156014)(25786009)(2950100002)(110136005)(6436002)(6506007)(97736004)(76176011)(68736007)(6116002)(14454004)(54906003)(106356001)(33656002)(2906002)(316002)(55016002)(2501003)(7696005)(478600001)(3280700002)(5660300001)(3660700001)(86362001)(105586002)(99286004)(2201001)(5250100002)(2900100001)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2269;H:VI1PR0401MB2271.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d4cb728-8d2e-4684-7d75-08d541d02970 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2017 02:21:04.5627 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2269 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vBD2MGi3017998 Content-Length: 2046 Lines: 52 From: Richard Leitner Sent: Monday, December 11, 2017 8:17 PM >This patch series fixes the use of the SMSC LAN8710/20 with a Freescale ETH >when the refclk is generated by the FSL. > >This patchset depends on the "phylib: Add device reset GPIO support" patch >submitted by Geert Uytterhoeven/Sergei Shtylyov, which was merged to net- >next as commit bafbdd527d56 ("phylib: Add device reset GPIO support"). > >Changes v5: > - fix reset delay calculation (max_t instead of min_t) > >Changes v4: > - simplify dts parsing > - simplify reset delay evaluation and execution > - fec: ensure to only reset once during fec_enet_open() > - remove dependency notes from commit message > - add reviews and acks > >Changes v3: > - use phylib to hard-reset the PHY > - implement reset delays in phylib > - add new phylib API & flag (PHY_RST_AFTER_CLK_EN) to determine if > a PHY is affected > >Changes v2: > - simplify and fix fec_reset_phy function to support multiple calls > - include: linux: phy: harmonize phy_id{,_mask} type > - reset the phy instead of not turning the clock on and off > (which would have caused a power consumption regression) > >Richard Leitner (4): > phylib: Add device reset delay support > phylib: add reset after clk enable support > net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag > net: fec: add phy_reset_after_clk_enable() support > > Documentation/devicetree/bindings/net/phy.txt | 10 ++++++++++ > drivers/net/ethernet/freescale/fec_main.c | 20 ++++++++++++++++++++ > drivers/net/phy/mdio_device.c | 13 +++++++++++-- > drivers/net/phy/phy_device.c | 24 ++++++++++++++++++++++++ > drivers/net/phy/smsc.c | 2 +- > drivers/of/of_mdio.c | 4 ++++ > include/linux/mdio.h | 2 ++ > include/linux/phy.h | 2 ++ > 8 files changed, 74 insertions(+), 3 deletions(-) > >-- >2.11.0 The series look fine better. Thanks. Acked-by: Fugang Duan