Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1009288rwi; Mon, 10 Oct 2022 09:58:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6a2cDbVeruVd7Wwd+DGBBGpAohWxCj2apEU8OY0rWtBGAPAk0z55FTQExEFz0vf8sTvTva X-Received: by 2002:a17:902:e9d4:b0:181:75fc:e58a with SMTP id 20-20020a170902e9d400b0018175fce58amr10990173plk.145.1665421125758; Mon, 10 Oct 2022 09:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665421125; cv=none; d=google.com; s=arc-20160816; b=N9AXNq1Z61NpvnbC/5J3250FmE8mDZEabzOzLoyf2Pwg4Y6qo/M/ECxaPrBrg/8SKY ohk6tsGrukjZmXAr6JkymjsmAjAG90/JE3oW2iQ3Gh/69tzlyyWPTBZKzBi1mBB61YTg nVTFDgIvjYGNmAS2C7HozHLopYXaj/jZUzOKvSf1i69maxMsM6oViOk5f3TIP5zRcQ6B 4LXdhWPDhSu5s2eemgDTOvZ7Br/qW84vg2i1kUlMog6Uj7ta78KHnSkwBXttH9qDVPMs dCHIzeeTse7gJZLLvnEzAGlzKkorh+5hMmKY6q0Qn5ZDXJASW8lnXK+Eys3mnhyMRGM2 ghzQ== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cGEQmAa8ji6opcjFIYfT1uk+V/cyOC7gsmXvKvJSS/E=; b=ur8WD5GubmqqiDK1gUKM8dqTMr4kBTA7ozb8PuClBopFs32bCtp8YJL29FCWHJtBFw Vbi65ovUhKzpltmPltlKBqrTUEO9niATcSnKZviFw5rEhm2yZkKvAxKl27e9FE+4FrAq 8OY9pbNj3/DYy9et28JdS2rQZHz5K2f4Nb0e0JEfeotkobSyFu3Bf6PCeqObHE5YL0ez lMZauEJapCpfctgHvGVYvU/1mjDaGLELY4e3D2sllZw/VYihDVfykoA7mkzhbB+6F7xD 6QKtFmXPuNQH7IAHPtEEMPnzoZNMrvLcWf/VwFLB5yqCUZrXS+phuwZQ2q3WFzHXIY47 aPQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Ms2m7gAB; 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 ij14-20020a170902ab4e00b00179cbd4ebbasi11429498plb.210.2022.10.10.09.58.34; Mon, 10 Oct 2022 09:58:45 -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=Ms2m7gAB; 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 S229815AbiJJQn3 (ORCPT + 99 others); Mon, 10 Oct 2022 12:43:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiJJQn1 (ORCPT ); Mon, 10 Oct 2022 12:43:27 -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 6A2CE6DFA2; Mon, 10 Oct 2022 09:43:26 -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-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=cGEQmAa8ji6opcjFIYfT1uk+V/cyOC7gsmXvKvJSS/E=; b=Ms2m7gABBRShFZYFT08LjwGRcb wz48iA3GsfiiooqEY5jwTxP1Na/X+8/4xw8EkoRm8Sjfnq6cob4RqCk80weLS3AOy/wnqOxgPg7lf AaRb20y0HKFivWHXH4gO+uDAvCnDec/7P1DNb4P8Eje1k12u66QUnqG+0ivzFk6bFJnlK4sqET34b mxIctOB52ruTkbsoezvOVMx2sO8Wl5kiSDOz1g/T1wK0xYd9jfdTZZcqbZiMNNPSIgrEVkENzKjz5 XC2mxihjuJ5cdeKfvTHVuUJ1TIbootCoRfo/8oD7p3A7FDiESvml4IHxET9W0GBZAPvtQHzd+rn9k lPklXtvA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34674) 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 1ohvs0-0004u8-UT; Mon, 10 Oct 2022 17:43:12 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1ohvrv-00020K-HH; Mon, 10 Oct 2022 17:43:07 +0100 Date: Mon, 10 Oct 2022 17:43:07 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Soha Jin , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: mdiobus: add fwnode_phy_is_fixed_link() Message-ID: References: <20221009162006.1289-1-soha@lohu.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 Mon, Oct 10, 2022 at 05:03:27PM +0200, Andrew Lunn wrote: > On Mon, Oct 10, 2022 at 12:20:06AM +0800, Soha Jin wrote: > > A helper function to check if PHY is fixed link with fwnode properties. > > This is similar to of_phy_is_fixed_link. > > You need to include a user of this new function. > > Also, not that ACPI only defines the 'new binding' for fixed-link. If > this is being called on a device which is ACPI underneath, it should > only return true for the 'new binding', not the old binding. Do we want to support the "managed" property in the fwnode variant, or persuade people to switch to phylink if they want that? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!