Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3651045iog; Tue, 21 Jun 2022 03:10:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vk92a1tQwDd6jd0+y1jmlfvlc+VULCRWn+0Wz15XEawoV8YB6LeEeKt49er7G8WVzSmoTk X-Received: by 2002:a05:6402:3907:b0:431:6776:64e7 with SMTP id fe7-20020a056402390700b00431677664e7mr34456079edb.0.1655806244101; Tue, 21 Jun 2022 03:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655806244; cv=none; d=google.com; s=arc-20160816; b=NgrU618FFMCLZZL6xjNDoqj5qOwADKzCC0WfJN5XpnPKYV28Jios1/ANelgk4YWYO8 2rYBGqJ4EQfoR2EmDevHEE2xqf8dOCf1rRWR7DhI7tyE4dhIpCwerL+wLoNGHxU2sDeQ w6arhTE1INpoERhPEfmiVlJWWChaYmtyS5yZRaKcKP2cJHZM9n0g7dwnWWWXzHiLthr+ UoRk3M5VTa4VLYXplWO9OEwYkQu8ybZ8JEgesEdARN+GqiwEWydKbKxGRhL5kVlU7CyT enkd7zMD4p3esEWAXFISFRFRogqk4cH4dmmk/Wl5EujzRNH0aZ5DFHN7QpFV0cbKJLE9 RNjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CebAnGs2I4e+XopgqgMPynRsVklLyL9H2XvsgpMCH3A=; b=jd5IN9+To/Z4wDRdDtFJJxnVc/mvIlg3OEy13WYA46glT3+4PFko+ohwmVg/c2rs45 c43rxw4XBXpLe9ttflJ9petbFqEORpLmumOkmhKHhckq1lpMtDrdPoDqs3M7T5b3qOA1 Cwtg/Qu7Troajhn94W6YncxuT0/2wOBPqujl3Xs5yhUBl8qScm2AIRQkt81cbqsEU/4X fBhhIxEGjtdNe5r7QI0Ui9Up5WOSxRqv7g5Fg/i7U8STZkItiC+3i1D0da7ImeMOwka5 45tfPhkeB+fW/TNNDCrth7w2eI4y0jdk0t7H90K6BFPuW0EjdbEyR6ukg2k0OgUUhZLj D08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="1XHoW/tB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a17090672d600b0070b60b92455si7325885ejl.240.2022.06.21.03.10.18; Tue, 21 Jun 2022 03:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="1XHoW/tB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiFUKCE (ORCPT + 99 others); Tue, 21 Jun 2022 06:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiFUKCD (ORCPT ); Tue, 21 Jun 2022 06:02:03 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78911275D7; Tue, 21 Jun 2022 03:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CebAnGs2I4e+XopgqgMPynRsVklLyL9H2XvsgpMCH3A=; b=1XHoW/tBFaJiaNKU4sevkeQHAT wzUfAxdFftsUy5g5L9/JF4dxs7GL+VOQbvh9kbNbOhX+4Z0Dk6MK1XuRFVV1Uc0nCTbXndIkQJc/V fwbyHU2KTxvyHKNGA6gBBeuO/455fTuUXYM0dFbEg37zaZG+VPpP0SeJqJzdnrOQTlpbRRBOoeaYA up/T//k0ritMvyTsQS6847SkS55N2B0Yi/8FucBKE+t4PaP6z2/awQDssBq7Mb7g/DRmvLmZ4y6By WWSgQ9hM3rgxBf1g95BU/wLA2wFBAsd+pJb2t6V6Fh5HJnn9mr0xVhiiVqxFEFhhmMrzguYTPIPpo TNbTmF3Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:32960) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o3ahq-0002AF-2D; Tue, 21 Jun 2022 11:01:57 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o3ahl-0005w5-HX; Tue, 21 Jun 2022 11:01:53 +0100 Date: Tue, 21 Jun 2022 11:01:53 +0100 From: "Russell King (Oracle)" To: Marcin Wojtas Cc: Andrew Lunn , Linux Kernel Mailing List , ACPI Devel Maling List , netdev , "Rafael J. Wysocki" , Andy Shevchenko , Len Brown , vivien.didelot@gmail.com, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , pabeni@redhat.com, Heiner Kallweit , Grzegorz Bernacki , Grzegorz Jaszczyk , Tomasz Nowicki , Samer El-Haj-Mahmoud , upstream@semihalf.com Subject: Re: [net-next: PATCH 01/12] net: phy: fixed_phy: switch to fwnode_ API Message-ID: References: <20220620150225.1307946-1-mw@semihalf.com> <20220620150225.1307946-2-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 21, 2022 at 11:56:06AM +0200, Marcin Wojtas wrote: > pon., 20 cze 2022 o 19:59 Andrew Lunn napisaƂ(a): > > > > On Mon, Jun 20, 2022 at 05:02:14PM +0200, Marcin Wojtas wrote: > > > This patch allows to use fixed_phy driver and its helper > > > functions without Device Tree dependency, by swtiching from > > > of_ to fwnode_ API. > > > > Do you actually need this? phylink does not use this code, it has its > > own fixed link implementation. And that implementation is not limited > > to 1G. > > > > Yes, phylink has its own fixed-link handling, however the > net/dsa/port.c relies on fixed_phy helpers these are not 1:1 > equivalents. I assumed this migration (fixed_phy -> phylink) is not > straightforward and IMO should be handled separately. Do you recall > justification for not using phylink in this part of net/dsa/*? All modern DSA drivers use phylink and not fixed-phy as far as I'm aware - there are a number that still implement the .adjust_link callback, but note in dsa_port_link_register_of(): if (!ds->ops->adjust_link) { ... return 0; } dev_warn(ds->dev, "Using legacy PHYLIB callbacks. Please migrate to PHYLINK!\n"); It's really just that they haven't been migrated. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!