Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4186723pxb; Mon, 8 Feb 2021 09:56:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoOXcwlZkYjxXdiNFKnjgVU5qf54PLGdEah/oDPTkK7cn8T0FJQyC3ihjHre8TywAGMAF9 X-Received: by 2002:a50:d4c5:: with SMTP id e5mr18822447edj.32.1612806975492; Mon, 08 Feb 2021 09:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612806975; cv=none; d=google.com; s=arc-20160816; b=ZBCnrhV7ocIHMWZyLRxICwMkwDIDKOo9OZr8moi8ny/kk37v9XAf6YbA0yQGyRkdOp IANsodIPhah6fPXxXwhSSsnadFQZcx6s8+xJ9tHncAyaq3N/DuKSjM9EBE17SX9ZIlvk jLYL2g3zRi5x2Glc3wRio+zNP7hFhsBu5xnmPyQSbWr/zGJOM/CjEY/XBaWCihEUTs3t umJz3Db/LR10ad11Z1RI4rviOMbrP7E+zixoGg/hYujb0CG8T6OxbpBcgRCrwtjnolwS P8oMcaWpdogO/Ep8UuIOn/D032fVnULlMiGw7xbwNWmv70f0e2qFviU4dfIqLqwxgDdi 4fUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tdwCgKoyLdHxRuD+Ock+CY1gFHQqJYRvjdWG9ShjOkY=; b=SqkeyDzBiJCAkLULa+r/5j8jTGkFrArbO2+9+NF0q8tyWjZpABKVBOx4qBO1qgaQAV rTS/eTOV3u0qWEURKR5LvbU6x4DfZlLS+GCEzlS2VUbWX7IRS0KqPCzpaFM6W3gDFGn8 cWJpTrZFlYgMYeJ2toC9DSXwUKwCWvD4OGybd7vYpLi/7IlJ7Qmr8cu93wznDxpy4qjy rIf4/K0dnx1iCDsMy336heMefAcZuaXsKGhL/KL0Y9EJgBcUkHfQipKu0d3F8Wr/v13b yQHkaqc/rqn+RqjkmZFdSL3RhSVzrVxQvNLZKC5MT1PcjzYENekxmgLkF7HdB7BwEmsE S9WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="zU/66JgR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb11si10948785ejb.0.2021.02.08.09.55.49; Mon, 08 Feb 2021 09:56:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="zU/66JgR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233981AbhBHRxn (ORCPT + 99 others); Mon, 8 Feb 2021 12:53:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbhBHPcc (ORCPT ); Mon, 8 Feb 2021 10:32:32 -0500 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 6DB13C061793; Mon, 8 Feb 2021 07:31:35 -0800 (PST) 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=tdwCgKoyLdHxRuD+Ock+CY1gFHQqJYRvjdWG9ShjOkY=; b=zU/66JgRfM3qSDf+yVQGplFKy 365CNDWp7LAaZkjasaEkkS9zdxY9mFrU7lvKhaut2GV1Ldn4/Fij0JXoLSfivEaHY9RLDom9KJ3dD MA3nRv/2W6bgJRVSxydYqGIjiNQR5Q23I0A91aNIdjgp8TcdQwsFxmWf2l7PMpgPZ0YqZaoAgXA2B cpr8PNOGalTRQrkS5nsYuJTuPJDt/PcJoLAx42ZUSBpyVY9im2aHU4b3wjeCPzzcCZpNB2rxJBFfg jCTsl0+X7RuBRskZz01elt+0+w3Ww0lp+GfXzhiyDE4wGLYeIYG6LiS6mmEdUv13JUT9xjeSpFtSn LnmJIFeXQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:40812) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l98VN-0002Bx-JF; Mon, 08 Feb 2021 15:31:13 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1l98VL-00039T-3P; Mon, 08 Feb 2021 15:31:11 +0000 Date: Mon, 8 Feb 2021 15:31:11 +0000 From: Russell King - ARM Linux admin To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Andy Shevchenko , Florian Fainelli , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , Laurentiu Tudor , linux-kernel@vger.kernel.org, linux.cj@gmail.com, Diana Madalina Craciun , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, "David S. Miller" , Heiner Kallweit , Jakub Kicinski Subject: Re: [net-next PATCH v5 13/15] phylink: introduce phylink_fwnode_phy_connect() Message-ID: <20210208153111.GK1463@shell.armlinux.org.uk> References: <20210208151244.16338-1-calvin.johnson@oss.nxp.com> <20210208151244.16338-14-calvin.johnson@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208151244.16338-14-calvin.johnson@oss.nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 08:42:42PM +0530, Calvin Johnson wrote: > +int phylink_fwnode_phy_connect(struct phylink *pl, > + struct fwnode_handle *fwnode, > + u32 flags) > +{ > + struct fwnode_handle *phy_fwnode; > + struct phy_device *phy_dev; > + int ret; > + > + if (is_of_node(fwnode)) { > + /* Fixed links and 802.3z are handled without needing a PHY */ > + if (pl->cfg_link_an_mode == MLO_AN_FIXED || > + (pl->cfg_link_an_mode == MLO_AN_INBAND && > + phy_interface_mode_is_8023z(pl->link_interface))) > + return 0; This difference between ACPI and DT really needs to be described in the commit description. For example, why is it acceptable to have a PHY in fixed-link mode if we're using ACPI, and not DT? If we look at the phylink code, accepting a PHY when in fixed-link mode is basically not supported... so why should ACPI allow this? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!