From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754014AbdH1Iil (ORCPT ); Mon, 28 Aug 2017 04:38:41 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:35252 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbdH1Iii (ORCPT ); Mon, 28 Aug 2017 04:38:38 -0400 MIME-Version: 1.0 In-Reply-To: <20170828065545.GC2568@kwain> References: <20170825144821.31129-1-antoine.tenart@free-electrons.com> <20170825144821.31129-6-antoine.tenart@free-electrons.com> <20170825224312.GD20805@n2100.armlinux.org.uk> <20170828065545.GC2568@kwain> From: Marcin Wojtas Date: Mon, 28 Aug 2017 10:38:37 +0200 Message-ID: Subject: Re: [PATCH net-next v2 05/14] net: mvpp2: do not force the link mode To: Antoine Tenart Cc: Russell King - ARM Linux , "David S. Miller" , kishon@ti.com, Andrew Lunn , Jason Cooper , Sebastian Hesselbarth , =?UTF-8?Q?Gregory_Cl=C3=A9ment?= , Thomas Petazzoni , nadavh@marvell.com, linux-kernel@vger.kernel.org, Stefan Chulski , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , netdev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Antoine, 2017-08-28 8:55 GMT+02:00 Antoine Tenart : > Hi Russell, > > On Fri, Aug 25, 2017 at 11:43:13PM +0100, Russell King - ARM Linux wrote: >> On Fri, Aug 25, 2017 at 04:48:12PM +0200, Antoine Tenart wrote: >> > The link mode (speed, duplex) was forced based on what the phylib >> > returns. This should not be the case, and only forced by ethtool >> > functions manually. This patch removes the link mode enforcement from >> > the phylib link_event callback. >> >> So how does RGMII work (which has no in-band signalling between the PHY >> and MAC)? >> >> phylib expects the network driver to configure it according to the PHY >> state at link_event time - I think you need to explain more why you >> think that this is not necessary. > > Good catch, this won't work properly with RGMII. This could be done > out-of-band according to the spec, but that would use PHY polling and we > do not want that (the same concern was raised by Andrew on another > patch). > > I'll keep this mode enforcement for RGMII then. > Can you be 100% sure that when using SGMII with PHY's (like Marvell Alaska 88E1xxx series), is in-band link information always available? I'd be very cautious with such assumption and use in-band management only when set in the DT, like mvneta. I think phylib can properly can do its work when MDIO connection is provided on the board. Did you check the change also on A375? Best regards, Marcin