Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2217362pxb; Mon, 23 Aug 2021 15:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpbq0VmXCBwI1nDi0UzITe0xA2WJAcHfVxH2V09NXXkYMChl7qVgNnW2IfJAusxZAb4nwY X-Received: by 2002:a17:906:dc5:: with SMTP id p5mr37990971eji.213.1629756243887; Mon, 23 Aug 2021 15:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629756243; cv=none; d=google.com; s=arc-20160816; b=Jh+x3ibiZPshXP4nKEOvb62NxyJfIXh32Wk/4aNaGY+wtfcyWQlLTpyCQA0T7D0Oux vfLPMJ6Twue2pHVs0XMVSDRHnP6nCDqUSTG7oq05i0kVOxtn5+/rOeWtmCJ2wOSftGT8 +GHQtgk7v4Afma/HQwa3u7J/4/YBqFJJyxwhbdqYdKz/PM1k0s618KLi4FilC3AiwTtM mZJBiFMvnC9CyhOHKkDlmPgy1nHROdCcIMWb9DfojI6jLgLtVVoJHIT45cx2uRqLzAXX EFH5EMOkxQgn9xgQSqpqSgGEDu7/Kan76Cm3Cit7+wCY7fH8fkb7Jpbl6pTTYTI1zwoj sGPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MlJCiy5HfG8+LBY7t6BSnHFgiD/Uog0xgn9jINZ9n+o=; b=sIqFLgaRJshm6vXHqCY/nl+5k2lx9LNpxG6H1u7il10GrwBvJ4q7VD3eP+kY3WCkbL ofti1wuSjND9WdRA6vq5WD5cfiFTtMvRkqyTgUn1e+K6fGyJ1FhLRFcJc8PJN7KtP3hi CSNwE/Qgryr1LWV0B6tGERbzzWDPxkwU3WUBDlcFTjpOxu5bQeW4vBu/vvQIUMguaXs9 9Uww64WmDvDgq/lxrtFlxoR03CxxBt+1sQ0utkF9GHepeSfBwSBEIKppe25HbVSqtneM 4rFvN02c2cSdYlBj9KKERywL1UPz1kB1L3a6kv+lJ6y8UFoDgaddIjW4b565xGOWfpVH jNZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VqdGDrzn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z27si15092551ejf.565.2021.08.23.15.03.38; Mon, 23 Aug 2021 15:04:03 -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=pass header.i=@lunn.ch header.s=20171124 header.b=VqdGDrzn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233002AbhHWWCt (ORCPT + 99 others); Mon, 23 Aug 2021 18:02:49 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:37566 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbhHWWCr (ORCPT ); Mon, 23 Aug 2021 18:02:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=MlJCiy5HfG8+LBY7t6BSnHFgiD/Uog0xgn9jINZ9n+o=; b=VqdGDrznCoCR6TPSXUwHHwEEVY uMe9AAcYiwlTkroL3Z45iSRs7PxAV4SZLMTbDtr1qS7B6+pFb0qGCqRD9Z1encObrMAhnqtjdIdoc ScHoyZsUoYpZttDRNIoE54L/nRModIfTGDepl+q0EJidAHKAiIiGYlTF8jnj6gfA3Aew=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mII0y-003WP2-D8; Tue, 24 Aug 2021 00:01:56 +0200 Date: Tue, 24 Aug 2021 00:01:56 +0200 From: Andrew Lunn To: Saravana Kannan Cc: Marek Szyprowski , Rob Herring , Frank Rowand , netdev@vger.kernel.org, kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , linux-amlogic@lists.infradead.org Subject: Re: [PATCH v2] of: property: fw_devlink: Add support for "phy-handle" property Message-ID: References: <20210818021717.3268255-1-saravanak@google.com> <0a2c4106-7f48-2bb5-048e-8c001a7c3fda@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 23, 2021 at 01:48:23PM -0700, Saravana Kannan wrote: > On Mon, Aug 23, 2021 at 12:58 PM Andrew Lunn wrote: > > > > > PHY seems to be one of those cases where it's okay to have the > > > compatible property but also okay to not have it. > > > > Correct. They are like PCI or USB devices. You can ask it, what are > > you? There are two registers in standard locations which give you a > > vendor and product ID. We use that to find the correct driver. > > For all the cases of PHYs that currently don't need any compatible > string, requiring a compatible string of type "ethernet-phy-standard" > would have been nice. How does this help you? You cannot match that against anything? How do you handle PCI and USB devices? e.g. arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pcie>; reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>; status = "okay"; host@0 { reg = <0 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; i210: i210@0 { reg = <0 0 0 0 0>; }; }; }; There is an intel i210 Ethernet control on the PCIe bus. There is no compatible string, none is needed. This is no different to a PHY. Andrew