From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C594C433E0 for ; Thu, 14 Jan 2021 13:54:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FC8A23A5F for ; Thu, 14 Jan 2021 13:54:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728875AbhANNyy (ORCPT ); Thu, 14 Jan 2021 08:54:54 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:40502 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbhANNyy (ORCPT ); Thu, 14 Jan 2021 08:54:54 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l034l-000Yvz-TJ; Thu, 14 Jan 2021 14:54:11 +0100 Date: Thu, 14 Jan 2021 14:54:11 +0100 From: Andrew Lunn To: Marek Vasut Cc: netdev@vger.kernel.org, Heiner Kallweit , Lukas Wunner Subject: Re: [PATCH net-next] net: ks8851: Connect and start/stop the internal PHY Message-ID: References: <20210111125337.36513-1-marex@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jan 12, 2021 at 11:28:00PM +0100, Marek Vasut wrote: > On 1/11/21 3:47 PM, Andrew Lunn wrote: > > On Mon, Jan 11, 2021 at 01:53:37PM +0100, Marek Vasut wrote: > > > Unless the internal PHY is connected and started, the phylib will not > > > poll the PHY for state and produce state updates. Connect the PHY and > > > start/stop it. > > > > Hi Marek > > > > Please continue the conversion and remove all mii_calls. > > > > ks8851_set_link_ksettings() calling mii_ethtool_set_link_ksettings() > > is not good, phylib will not know about changes which we made to the > > PHY etc. > > Hi, > > I noticed a couple of drivers implement both the mii and mdiobus options. Which ones? Simply getting the link status might be safe, but if set_link_ksettings() or get_link_ksettings() is used, phylib is going to get confused when the PHY is changed without it knowing.. So please do remove all the mii calls as part of the patchset. Andrew