From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755094AbdBGNPC (ORCPT ); Tue, 7 Feb 2017 08:15:02 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:58213 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755053AbdBGNO6 (ORCPT ); Tue, 7 Feb 2017 08:14:58 -0500 Date: Tue, 7 Feb 2017 14:14:40 +0100 From: Andrew Lunn To: David Laight Cc: Florian Fainelli , "netdev@vger.kernel.org" , "zefir.kurtisi@neratec.com" , Sebastian Hesselbarth , Wingman Kwok , Murali Karicheri , Vivien Didelot , "David S. Miller" , Philippe Reynes , Sergei Shtylyov , Jisheng Zhang , Jarod Wilson , open list Subject: Re: [PATCH net-next 4/4] net: dsa: Do not clobber PHY link outside of state machine Message-ID: <20170207131440.GF31560@lunn.ch> References: <20170206235523.23216-1-f.fainelli@gmail.com> <20170206235523.23216-5-f.fainelli@gmail.com> <20170207001132.GB30169@lunn.ch> <063D6719AE5E284EB5DD2968C1650D6DB027DB40@AcuExch.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DB027DB40@AcuExch.aculab.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 > Related is that polling the phy status every second can be bad news for > system latency. > Typically it involves bit-bashing an interface with spin-delays to > meet the slow timings (with extra delays to allow for posted writes). > An alternative would be to do a very slow bit-bang on each timer tick, > this would need to be sped up and finished before any other actions. Or just use PHY interrupts. That completely stops the MDIO polling. Andrew