Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1397781ybi; Wed, 3 Jul 2019 15:09:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkn605nr48kloAVjBnvj7fuEZivDJ9JLkzVJ17PMY82t0Sr1xeDsznl7MyG5HJQuLHxFF4 X-Received: by 2002:a17:902:e707:: with SMTP id co7mr18139240plb.136.1562191762739; Wed, 03 Jul 2019 15:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562191762; cv=none; d=google.com; s=arc-20160816; b=MLy+7L4zO6KRFHn4CTA+IWkE0A24x8FOEqkvtiDqAVjfeEQih4RcgAROXY8f4BFwz5 QnpWWaeBlb9XgOlemCNGQ9dZPZ7OiC0mIP2P74L0F/wAXscHIIJ54Lwtu4ECTjnRTE64 iiNLWtl709gyeGYms1DC846PS2+npI3iRt6Z1HabYXx9uhkGEWajbyIHie5GeO+0ebGw oOePcutjNuSE4GgYtHAGMzHciihgheNehQh+9P8D3KHRJiCrZdyJ5BeNlppnza6njomn TkG6X+WUxU/A1RGn8I1+nucKiKGFRtt59YSe+lCZPppqYYe9Ksxh1AS63KnXGt3EeMMy Zn5Q== 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=WjjWRdXySZkjpj26g1Pm4rzHQ2nCZawoM/TZfTFAezI=; b=DZYGDvks3AunFnrWBW/tgYr1Y86578phQgAClp2CgKyDkHUlBKiTzvOs/pyw8k+25h 0yZRO9KeBUwPUuhxI+t8xwtMCgqKVBCbVkVw/mlxcPtNM1TBQcgt5CPtOgHm8GvAMP8o SjlYUCJ1nLds2ufoD6WShmqpSEn+0lqEe/9gw+AMjnWI0XguiS5AuXDAB3SA+NlqcHwy 40pTzNPFCAp7WxurqT2tZiRIX+5ud4Mv1hBFarQ5OnWLSg7wPuYa9Qc8HU6yD9B6sXYL ScQpeInylxx7TbtusEtleT/XwNUmvwBhAxfiYiQXZ2X0BTxZGdA95T6Oc/VOVEGMRfIy KvpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UxSjmshB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si3151983pll.343.2019.07.03.15.09.07; Wed, 03 Jul 2019 15:09:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UxSjmshB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbfGCWIr (ORCPT + 99 others); Wed, 3 Jul 2019 18:08:47 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43017 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbfGCWIq (ORCPT ); Wed, 3 Jul 2019 18:08:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id i189so1915131pfg.10 for ; Wed, 03 Jul 2019 15:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WjjWRdXySZkjpj26g1Pm4rzHQ2nCZawoM/TZfTFAezI=; b=UxSjmshB/efA5VRE78aPgnfuO/Sq/XiYw8vG5chnT45W8s9eIhSvPBCC/mGRdhQRAM aPD+zvMYLU6QJzAWBsTOmtbTqcGwnfwfDl1uFLrkBkjO6z7a5yH1SyE3GJ6Y5hBtDN+d XZAsuPc8zy95h9yxwn1SR3uls7dO9xvIAB3do= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WjjWRdXySZkjpj26g1Pm4rzHQ2nCZawoM/TZfTFAezI=; b=hlaVP1OeUfNyic6JKxnnqPDkZvguDCWcpHQIvM70d1ooKHfXYNI57hpXR1FZyqN0bR N5I7FJgCWZNPsWaJ404XTUJgdssqoBMrUxFzg+lYwnAwb4MqXn90BK0bspY0hQIoL6nt GwoZ/TvpFI8MJAQDCrJ9lvhf839ixTzJ41ftyKBmBSCzXQAiQlaTcNyfYiNb4FbUBahZ YTj7mNSHd0rcVktaIFIHOeG+AnHdVEJCKEICiO+kCIxDobJrdlYYloqrDrKgzwOa7yD6 VmyHkiUIFehSpp21RJ06DCcgx5r8E37dtQffM/rbGdqQ4wfLnLpSRvcDdKQYSgXhHN2y P5DA== X-Gm-Message-State: APjAAAWzX1OkDn65RoeuIwO2bLXwt63DMNvUDXtwtuIM760x5/dz3Zvh jGth/bpHNonmCkjc+v4Isy1AtQ== X-Received: by 2002:a17:90b:8d8:: with SMTP id ds24mr15201077pjb.135.1562191725828; Wed, 03 Jul 2019 15:08:45 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id m16sm3360862pfd.127.2019.07.03.15.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 15:08:45 -0700 (PDT) Date: Wed, 3 Jul 2019 15:08:43 -0700 From: Matthias Kaehlcke To: Andrew Lunn Cc: Rob Herring , "David S . Miller" , Mark Rutland , Florian Fainelli , Heiner Kallweit , netdev , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Douglas Anderson Subject: Re: [PATCH v2 1/7] dt-bindings: net: Add bindings for Realtek PHYs Message-ID: <20190703220843.GJ250418@google.com> References: <20190703193724.246854-1-mka@chromium.org> <20190703213327.GH18473@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190703213327.GH18473@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 Wed, Jul 03, 2019 at 11:33:27PM +0200, Andrew Lunn wrote: > > I think if we're going to have custom properties for phys, we should > > have a compatible string to at least validate whether the custom > > properties are even valid for the node. > > Hi Rob > > What happens with other enumerable busses where a compatible string is > not used? > > The Ethernet PHY subsystem will ignore the compatible string and load > the driver which fits the enumeration data. Using the compatible > string only to get the right YAML validator seems wrong. I would > prefer adding some other property with a clear name indicates its is > selecting the validator, and has nothing to do with loading the > correct driver. And it can then be used as well for USB and PCI > devices etc. I also have doubts whether a compatible string is the right answer here. It's not needed/used by the subsystem, but would it be a required property because it's needed for validation?