Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4716520pxb; Sun, 14 Feb 2021 22:05:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPvDwo9BBz7aiV1u42kF+yM3qMfSaoAr78fPEGuT8wpu1svbttnQXLo5gmppMujuuHt6j7 X-Received: by 2002:a17:906:7689:: with SMTP id o9mr14194915ejm.324.1613369147470; Sun, 14 Feb 2021 22:05:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613369147; cv=pass; d=google.com; s=arc-20160816; b=MXyO5wI9gtgjyC8SLuGaisaWhxoGdgSILkKDEanYr2zMM3kVPLqpFAdKxn6IFyi1Zv bYWGHzHvUbbSnMTuyyDZIP9G+n58eJTb0mGws3MnosaODtmodUrJMkZQUsdDK/92qE7H Nu93Scxe0UUTn/18SM+soStK+8HHWv2tOEaaB8PDQQbZvetKo01/iQrb1++XAsS2Ko5i QncnfDc8BxnKFcwL7xO8oq6ed8i651lNmw3XQkfDiuMthYN8EBGIbPZODpmH7NtBS0Kw 2vN4Md736GNFZGpqSbqfGwiLJyFXmTWgOK/JxICD76qF61fTn0vfdhB/WZn8iuIllB+U nx6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Gt0ZHm4qI06up/RdJ9rfzS2K5ODNGkSd6b2kj90ZkTU=; b=ol2XoEH3REhGU7DG4MOI2Mq3/ByYuhu6n7JdoR2KR5ZIsdfQOYIGCcoZkOFapRZJhL j7ca1/33IjEtUC+FQBtEPqjK0UFD0rq011ETB4fl3iWNX2U0rbeNnrOBszqDjEmOsuke PQIpLR29dAv+txAupw5FM/su/CD0VHMCurt3uieZ3PBd1HFQwLJWFFRHpbrPK7qdH5g+ aWaMldD1RiIq8mQKci31J0KCyi3qhQD1tilFBE0xZbHzxBmYHcDR1PkuRI4CG9bWfO3n LmGNtdSkFVPqyucZGaqgBa6zfwNMYq6A1QSfYvcScMVczw5OlHQQimKQ+UQiNXTKmaZ4 xW0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=T+YBvb2U; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si11788836edv.110.2021.02.14.22.05.24; Sun, 14 Feb 2021 22:05:47 -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=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=T+YBvb2U; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbhBOGCy (ORCPT + 99 others); Mon, 15 Feb 2021 01:02:54 -0500 Received: from mail-eopbgr80049.outbound.protection.outlook.com ([40.107.8.49]:64580 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229569AbhBOGCx (ORCPT ); Mon, 15 Feb 2021 01:02:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3aQ9GKOyCOxAKKaePrFUjkLnUo2FAOoIEsU1LiPwyb0bGBsQ2Iqpjpgl7gUAv7CQM3gY1pmrx+/Np0xB/tIBFYZVhZqqn88O5yEIOIn2gPD3bdwROKeUN1eopjWURVeQ7EwHVKE2SqJaieCcMWJ23SBROyL/rdy6yUo0NVXBsn96LIfYNBAYygVND31jExA84lVozlWUXwkYdP/o8QhFcQIaNntVKyewNf2VeiVePGpLwHv1r5Im5qP89upgFqjatgeFYyfFjhmsVvttrG3aAZ+S98AZA+GDkc+NC3T94hYbM673kXBjyDRcT+RREUWSsodhr0sKssxJRe+oosayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gt0ZHm4qI06up/RdJ9rfzS2K5ODNGkSd6b2kj90ZkTU=; b=nQbh9BnCSUD4xS9mrRbOw4OzWf35Bxy/Ee0YesQ7B3wc8+Md/1v6Se4ZXUGHNrM/SimFIlxBuoLO9heq+yDosf9ZEnO8QUdn4MunvryXoc031pOxgqm/vd54mtz4PfSmS/oCWCo4UrxNKDnjHqaUiD76Wj9Hmn3aYAU2tr7rLq61fwozQd9CRoO06h7+9QEYItXBzfMzEkJmuUxlaNE75ZPBJ/I2Lb6CaJZTKu24SLiSQZtoycpJIMyObWc+amQcwLJewqEPVYzVTgP+o1erndRhnblv1k33gXqlQ5M6IRsgIddXxleZCAy02jLMWE7B28KZkOEtu4QDCMwB4gMF4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gt0ZHm4qI06up/RdJ9rfzS2K5ODNGkSd6b2kj90ZkTU=; b=T+YBvb2U9yzW+GVb/2ZM84aSsP+aOrWrV/RMyJAMXlwF6rA8PC+lXJG9ueCXA412ascmrrv4HnAMFxrmBTPrtGWzaVFYVqeqECoraO4L7jTJ5pnlS9j6rYHZZlBctQDIAutH/VN9ulM7LdUR5iXA34Rnyqto0xwOdngbFcKLA6c= Authentication-Results: armlinux.org.uk; dkim=none (message not signed) header.d=none;armlinux.org.uk; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) by AM0PR04MB3953.eurprd04.prod.outlook.com (2603:10a6:208:5b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Mon, 15 Feb 2021 06:02:03 +0000 Received: from AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::e90e:b1d6:18a2:2d42]) by AM0PR04MB5636.eurprd04.prod.outlook.com ([fe80::e90e:b1d6:18a2:2d42%6]) with mapi id 15.20.3846.042; Mon, 15 Feb 2021 06:02:03 +0000 Date: Mon, 15 Feb 2021 11:31:42 +0530 From: Calvin Johnson To: Russell King - ARM Linux admin 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: <20210215060142.GA21977@lsv03152.swis.in-blr01.nxp.com> References: <20210208151244.16338-1-calvin.johnson@oss.nxp.com> <20210208151244.16338-14-calvin.johnson@oss.nxp.com> <20210208153111.GK1463@shell.armlinux.org.uk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208153111.GK1463@shell.armlinux.org.uk> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [14.142.151.118] X-ClientProxiedBy: SG2PR01CA0132.apcprd01.prod.exchangelabs.com (2603:1096:4:40::36) To AM0PR04MB5636.eurprd04.prod.outlook.com (2603:10a6:208:130::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03152.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR01CA0132.apcprd01.prod.exchangelabs.com (2603:1096:4:40::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27 via Frontend Transport; Mon, 15 Feb 2021 06:01:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6fd2010a-b121-4446-3074-08d8d177377f X-MS-TrafficTypeDiagnostic: AM0PR04MB3953: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1751; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GVvqvKKqVywAN1sbXTB2uhbhZWEGdpXHeTwVZ8uQbBBJATGNSSY0UbWoY/fjo3HvkODHMTZ6WkgLTsPJCqwpCV7bVLBWmnBgdpiYw1Wdw03k7jOD47rd94m8LBNK3j4roti+QCzcTz+r4GWvf+p3jWPGIz4GFk6sPy3ejj4mKQW/YbV3KmbX5orv72VXb5WZ1ZPVNJgy1+Qdx4XKjBFRRiLE+nFh8xVm5u9qT1xOBf9BuNXKrEZoMB5EXvz1tZq+alUuUGwoIPHPbd19arV6rmjz/3g19wzo4P4vBJ5ekdJTTXbJ26JZP8bNTTJ6RmtrKIngA7lH117fVG4kmcAQkmBnghs+WqiXrXxyFVaBWNH9sBHT+tjPORTJh4Cw15Q34xNywndXYKhvqZoBoA5F42ywXAbJ+44iHZsFY3go8ZsrugH3DFe6Sh24jz8oOj3XYR2afcftyGEYk1XtneGuVBLcx+ifFujDnp90QPuK2doHkzaiFi7XV4TSiZgWchj9C8ShRkAYW5ZW+sERNN+rfLMLAayINUNZixtnnxFjjhFP9vseoAaE9LBe9LAe4N9l X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB5636.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(136003)(366004)(376002)(39860400002)(33656002)(83380400001)(4326008)(54906003)(2906002)(55236004)(8936002)(55016002)(956004)(86362001)(6506007)(9686003)(316002)(16526019)(26005)(186003)(66476007)(66946007)(6916009)(7416002)(478600001)(66556008)(7696005)(6666004)(52116002)(44832011)(1006002)(1076003)(8676002)(5660300002)(110426009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?iVW0A35bTumNExxwm5qtZeA5MBqxLA0NGjBBRgoQu3rd68HqSARSOMV40eMq?= =?us-ascii?Q?TPyzwg7sca0b3Yxkgk6JLjFDhG4QrCdohLg2ZK/uYpwLqtYUHpDyGq0POebd?= =?us-ascii?Q?783djvtE7rrUL//F2bHEiejS9/fTtJUUoHnoUCb76R11CjeQ5D7njcDU9ken?= =?us-ascii?Q?Z5Wp39lUaWwG+PnDR4pTKWAJNyCB6HUfZYKj2WgiFSHUhyLU17z4KF+gmUZP?= =?us-ascii?Q?IkcwyMK08/NIX+8lkz7HPVx3+H9n4IromyLNXf5bPrDZMb924QPL/yELzicJ?= =?us-ascii?Q?7PsNAnIKOOZXKv5pu5/KyRgSNNQ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q?4jii1YTM7SiDHwtxsQcwagRXybPYEoxQT/p1KSVNl35XhE2WcWJufQsE37K7?= =?us-ascii?Q?7gA/QnhorUtSz09jNU2q8s+Z1gTW/SMW0Tdd8wDBn+cfXAQSnz+TnbFn+3BB?= =?us-ascii?Q?zptVyc5/ZDrLxG8UiORGt82OqF+0cGuRW0gGar197Ky9sQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fd2010a-b121-4446-3074-08d8d177377f X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5636.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 06:02:03.7829 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: A0X/i7LfB4i7qu0WS/NcrUQRlEvSAfWzWYYtj4o/bDNWLOvAPex9P6bxsfFpoNBB4cWOVEkS6dLinE4soR/gbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB3953 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 03:31:11PM +0000, Russell King - ARM Linux admin wrote: > 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? DT and ACPI should handle fixed-link in similar manner. I'll remove the OF check. Thanks Calvin