Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8521283rwr; Thu, 11 May 2023 02:24:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5deC9O0boHm18EGW5Eou5DKzWLAOnPlZ9YifGkMc53JPdN8uGdqqZop2IA27q8l/0vBZ/V X-Received: by 2002:a17:902:70c9:b0:1ad:d1ab:9cc9 with SMTP id l9-20020a17090270c900b001add1ab9cc9mr458358plt.12.1683797043559; Thu, 11 May 2023 02:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683797043; cv=none; d=google.com; s=arc-20160816; b=ekDCHqjHCSvR3PZ22UTuZswTb2t5MDGBer4MRfkak15tys6AVgw/g9Z4ORHJdUIwy3 DIMhrSHGlCwbKQNYWH6Rz2iiv+VPyy/dXCBvV4VZHZDO5o3t2bO51ajOc6i7wbHKyKsR gVzrn8UwbvpqV+++HAsVzK4KPMzsK6Udaaufl9mfA0AG/H9fzQg51LJi7movAChtkVow A8ovVZv3P++WmRmNaHplQsKV+C3ZW/AvvIzgqkv+u5yZhymVmEr7Z2/3KzAhc3Fv1oW8 InUI609ngdX18ItN44WlKZSFdMylOIPreZncK8FR/y3As44YmQGqg9AjjPK3ZNE/uXDd /lDw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ilXOf5A1FxpPaSV3WyN2D3XRF7ZQGnMGyFgPABGXpkc=; b=AXPolZ+Fcv+WUb2InmFebOMXP8c1BuigT+reYAhXenWZANBzX4JIH10KQ2HDwsqQKS jODlGSGhQM5Qz0vpb2HUk51Z63lJI6mge7ORQYiZheWflYg5daklQ26wOLZkgHxSD5KM rvg6QJi70mg29NuVYF0cgkZl75AxVN0g9bRI/G+XyVFk0LkXH9pCwvejTB9nNHMOArs2 fNQwI4TLyHYn4vCrObSOoLUWP5eH5ef7vWP9i2g1hYxn6CBX3O8XRLGKKNKn96jqeFM9 E9ibLJKowm8I6D5rnuLy22GKXnyWW9GqapYNjc4uLArlsJdt/Xoq9S9XSl54qVWhzALf YItw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a17090a199400b00250bbca6fdfsi5489744pji.105.2023.05.11.02.23.49; Thu, 11 May 2023 02:24:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231391AbjEKJHf (ORCPT + 99 others); Thu, 11 May 2023 05:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233814AbjEKJHd (ORCPT ); Thu, 11 May 2023 05:07:33 -0400 Received: from smtp.dudau.co.uk (dliviu.plus.com [80.229.23.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCD7555A2; Thu, 11 May 2023 02:07:29 -0700 (PDT) Received: from mail.dudau.co.uk (bart.dudau.co.uk [192.168.14.2]) by smtp.dudau.co.uk (Postfix) with SMTP id D614A41D13BF; Thu, 11 May 2023 10:07:27 +0100 (BST) Received: by mail.dudau.co.uk (sSMTP sendmail emulation); Thu, 11 May 2023 10:07:27 +0100 Date: Thu, 11 May 2023 10:07:27 +0100 From: Liviu Dudau To: Sergio Paracuellos Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Thomas Bogendoerfer , Paul Burton , Rob Herring , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] mips: dts: ralink: Clarify usage of MT7621 ethernet phy arguments Message-ID: References: <20230509200032.308934-1-liviu@dudau.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 11, 2023 at 06:13:41AM +0200, Sergio Paracuellos wrote: > Hi Liviu, Hi Sergio, > > On Wed, May 10, 2023 at 7:56 PM Liviu Dudau wrote: > > > > Hi Arınç, > > > > On Wed, May 10, 2023 at 02:59:44PM +0200, Arınç ÜNAL wrote: > > > On 9.05.2023 22:00, Liviu Dudau wrote: > > > > The device tree uses numbers as arguments to the phys property that are > > > > confusing for newcomers. Define names for the values and use them in the > > > > device tree. > > > > > > > > Signed-off-by: Liviu Dudau > > > > > > You should document this on > > > instead of > > > doing this. Under the phys property, add 'description:' and explain this. > > > > There is already some sort of explanation under > > Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.yaml, so I'm > > not sure what I'm improving by adding new text in the /pci/ section. > > > > Maybe I haven't explained properly in the commit message, this is meant to > > give a name to the 1 and 0 values used in the device tree, not to clarify > > any perceived missing documentation. > > What is that useful for if the bindings are well documented? The > description in the > 'Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml' file > for the '#phy-cells' > property is already telling you what that cell is used for. It is > obvious that zero means not dual ported and one means dual ported. > So for me there is no need to add anything extra but in case you want > to clarify anything you should modify binding documentation not the > device tree file at all. Understood. Then please feel free to ignore this patch. Best regards, Liviu > > Thanks, > Sergio Paracuellos > > > > > > > > Arınç > > > > Best regards, > > Liviu -- Everyone who uses computers frequently has had, from time to time, a mad desire to attack the precocious abacus with an axe. -- John D. Clark, Ignition!