Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1879353ybk; Mon, 11 May 2020 06:37:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJf9uho23TB6Nc1+08w5Kz+iLEdKGBFBEr93Ngclss6U4Azpd6qGRVJ5th7W+XhxkmgxYHL X-Received: by 2002:a17:907:4063:: with SMTP id nl3mr13955662ejb.237.1589204261402; Mon, 11 May 2020 06:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589204261; cv=none; d=google.com; s=arc-20160816; b=HUwkFiOamthU5fBzG5Udp489+wb7AsfXKEI02LKUQ4qhBuWFtH9ULL6GfKjt0i3TD2 4Xb5dNCLRS5xFK7EtddZnGJDoyZiCIGZzWboq0GppDP53eMV+sodtJZSTsomSUtSqnFw BiEQXUk63MyeCA1aZ376+OSHuL3uxcRS1slFvlKK3EQ0iJCroCOv+WHveNgUYi/HK9kf gNFPu4maZTTAxV9tFsBclsQu0jfjJmQVgX9J46GazYiC+Tbh748it0aEIpLr5PLrE189 ADo+Pa2sHDiWX0QgdxzL/JZNLelsmrjDp7Y9wqx+VT5c8WZJOoeIlE2OdYXEyybFAUrD Cezg== 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=4r+3UAkxZun2GiEMEOdSxRL5WY7cG+OdzqGyDerOpxs=; b=TcOViwm0co6VGCgQUzLGCWrbdLrn7IZX+slHF+wAlEJwbzRcmAzhnd28rtzv82z2Qi AScAXXVMlYp/1QPVstjvXVVxtweAe0DtBq4c12V7xe0VoTrb9NXLuWMTtaqo9MK/7pz6 w0P96b6ircZHZYDB7z73bvO5p+yACtIjROC8hloS0X+amxcDswpJmVmREMd3Si3EvukS blthpB5xb8tPFbZtqxn9xhWa8skOxteiY4bzlGd3gF4AMKzQwmPHtzHN7vXRKJoiFCnJ kzwNkiUaUQkULBppqjMzNV+MoF4ySqQ6ApNlE+DuXKcKWQ8IqHOyJfDxPC6C+Y/sGeiP v7xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=rxIjZM08; 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 y6si5947483edo.175.2020.05.11.06.37.15; Mon, 11 May 2020 06:37:41 -0700 (PDT) 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=rxIjZM08; 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 S1729556AbgEKNff (ORCPT + 99 others); Mon, 11 May 2020 09:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726115AbgEKNfe (ORCPT ); Mon, 11 May 2020 09:35:34 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A43EC061A0C; Mon, 11 May 2020 06:35:34 -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=4r+3UAkxZun2GiEMEOdSxRL5WY7cG+OdzqGyDerOpxs=; b=rxIjZM08c15yrjKydWo5gBieZ ySQUQOnMJlYsIf5Kp02hErUicie51HCjpj3Pw0SVcviXsOUWnCNUrIbvJNhl7dUgL09jkzTlUvjbS 86BmIvqFuruH/3PMBC4Az62cloBykP2F59HdGpnPG13bR+pPFXc9Dupb/yHHa4RSb17z4XI9fZuNW bLv1xp6gg9tyySLU34eY8OhYA4tJfeQlTokGFPwxoewoulLOuyjJIZKFgG8E4WK91R9PuotF94K/T 7EOSuNwnmduOJa9t1Zk5Pl7s0+B3AQL+5B3JXz6wWkzRLTroJlxm+77EEv/IFvgqPU7jMQB+d5gMF U8SLAF0OA==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:56642) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY8aO-0006Mz-4y; Mon, 11 May 2020 14:35:12 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jY8aK-0005iI-Ji; Mon, 11 May 2020 14:35:08 +0100 Date: Mon, 11 May 2020 14:35:08 +0100 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Calvin Johnson , Jeremy Linton , Andy Shevchenko , "Rafael J . Wysocki" , linux.cj@gmail.com, Florian Fainelli , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Greg Kroah-Hartman , Heikki Krogerus , Varun Sethi , "Rajesh V . Bikkina" , ACPI Devel Maling List , Linux Kernel Mailing List , Diana Madalina Craciun , netdev , Marcin Wojtas , Laurentiu Tudor , Makarand Pawagi , linux-arm Mailing List , Pankaj Bansal , "David S. Miller" , Heiner Kallweit Subject: Re: [net-next PATCH v3 4/5] net: phy: Introduce fwnode_get_phy_id() Message-ID: <20200511133508.GU1551@shell.armlinux.org.uk> References: <83ab4ca4-9c34-4cdd-4413-3b4cdf96727d@arm.com> <20200508160755.GB10296@lsv03152.swis.in-blr01.nxp.com> <20200508181301.GF298574@lunn.ch> <1e33605e-42fd-baf8-7584-e8fcd5ca6fd3@arm.com> <20200508202722.GI298574@lunn.ch> <97a9e145-bbaa-efb8-6215-dc3109ee7290@arm.com> <20200508234257.GA338317@lunn.ch> <20200511080040.GC12725@lsv03152.swis.in-blr01.nxp.com> <20200511130457.GC409897@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200511130457.GC409897@lunn.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 03:04:57PM +0200, Andrew Lunn wrote: > > NXP's LX2160ARDB platform currently has the following MDIO-PHY connection. > > > > MDIO-1 ==> one 40G PHY, two 1G PHYs(C45), two 10G PHYs(C22) > > MDIO-2 ==> one 25G PHY > > It has been suggested that ACPI only support a one to one > mapping. Each MAC has one MDIO bus, with one PHY on it. KISS. > > This clearly does not work for your hardware. So not only do we need > to solve how PHY properties are described, we also need an equivalent > of phy-handle, so a MAC can indicate which PHY it is connected to. I'd suggest that doesn't work for a lot of hardware. It won't work for the Macchiatobin for example, where there are two Clause 45 NBASE-T PHYs on one MDIO bus. The same is likely true on the LX2160A - there can be multiple ethernet interfaces, but IIRC only two external MDIO buses that one can hang PHYs off of. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up