From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f66.google.com ([209.85.160.66]:35012 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbeCXRMX (ORCPT ); Sat, 24 Mar 2018 13:12:23 -0400 Date: Sat, 24 Mar 2018 10:12:19 -0700 From: Richard Cochran To: Andrew Lunn Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, David Miller , Florian Fainelli , Mark Rutland , Miroslav Lichvar , Rob Herring , Willem de Bruijn Subject: Re: [PATCH net-next RFC V1 5/5] net: mdio: Add a driver for InES time stamping IP core. Message-ID: <20180324171219.vh6wcxbem3hyhkuu@localhost> References: <20180321193315.GR24516@lunn.ch> <20180321213636.2mmfveu2vg5qbwpp@localhost> <20180321214436.GX24516@lunn.ch> <20180321215729.engnoxpaympvvdc5@localhost> <20180321221652.GZ24516@lunn.ch> <20180321224702.cbcq3wckmojsrgjf@localhost> <20180321235007.GA28402@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180321235007.GA28402@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Mar 22, 2018 at 12:50:07AM +0100, Andrew Lunn wrote: > How clever is this device? Can it tell the difference between > 1000Base-X and SGMII? Can it figure out that the MAC is repeating > every bit 100 times and so has dropped to 10Mbits? Does it understand > EEE? Does it need to know if RGMII or RGMII-ID is being used? This device isn't configurable at run time for any of those AFAICT. Those decisions are made when the IP core is synthesized as part of the HW design. > Can such a device really operation without the MAC being involved? My > feeling is it needs to understand how the MII bus is being used. It > might also be that the device is less capable than the MAC, so you > need to turn off some of the MAC features. I think you are going to > need the MAC actively involved in this. You are right in that this particular device *does* need to know the link speed. I have neglected that part for this RFC. I'm looking for a notification based method of informing the device of link speed changes, but without hacking any MAC driver. In general, we might see devices one day that care about things like EEE for example, but let's cross that bridge when we come to it. In the case of EEE, when the user enables it via ethtool we can tell the time stamping device directly without hacking the MAC driver. Thanks, Richard