Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2717710pxb; Thu, 3 Feb 2022 12:39:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6GzNe+sKx7IuqVQ0XUTQWVhOLG4cvva6vAvTs9rjCJouvWG1Z5wHcCVGK0SES+dGteI1w X-Received: by 2002:a17:903:124f:: with SMTP id u15mr37494076plh.15.1643920740567; Thu, 03 Feb 2022 12:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643920740; cv=none; d=google.com; s=arc-20160816; b=HREefYCgh9fspdHgrqz8OiqCnxzD6Lz5MsKvjfC/wIBxCwoIAwYuLqBnWgF97EY/v6 YPBXrwwG1k1BfGYKktJd/RfNYMiBuQOLkECjvaJlNSIsWGj3ROz1aEZ+woQKVHvkhBne rg8rOcCyXhcVSkntOPtDWVf5Uh0utqwmFfwkre/YROWIM2PgKzZzAKKbJ4eUB6K52PRn NKS5/hHsOoLQjXfQEkT28tshONYONmaZ2iW1Bypg1b6Rg+3Qz/ss1A15wNlma8rOauI5 u5QSZzGw2BYlLedbSlJx/s2DNwgjcSihoV0CZEzUPYZiodJ1pGPQySZxlgyba+z5frge hE1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HoSzVnw2BnmdPeyLBLFwLkiFu/WEUrSX1fW/APCKZOY=; b=CnmXDTG4iz7rmqVzpDT05xU3IJ+NAPtzruoc7kJ+UAT2tb6H6TCeTAN9zz3b7jcqQb W6j+kwCLhI9dlKm3vqwS5ueyNZC3KjslgXOn2lKD/mzVGuD/5v42PLdprbI71AcF9ZEB gpV1FIzxc0C2IFq6Ix77hMOYDgAkLSOac28Ut+ept0GWW2DrlvBEqFGULtnjAiR5ZoiK 9K7CoQ+FG9R4F5+zmCT10mjWajHH1dNcPRy30v6O2WflgAOsxzV3MLgqHchCyldIyA8S kI4UViKPuQZ6mdz48JNG8lyrorAp0zbxaXogl9COUoB5T1mVO18yT6IO6aEGvlbMTK3d khWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=cd2BV91+; 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 p7si25006188plf.530.2022.02.03.12.38.49; Thu, 03 Feb 2022 12:39:00 -0800 (PST) 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; dkim=pass header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=cd2BV91+; 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 S1352056AbiBCP6G (ORCPT + 99 others); Thu, 3 Feb 2022 10:58:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352046AbiBCP6E (ORCPT ); Thu, 3 Feb 2022 10:58:04 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 614DDC06173B for ; Thu, 3 Feb 2022 07:58:04 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id z131so2583169pgz.12 for ; Thu, 03 Feb 2022 07:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HoSzVnw2BnmdPeyLBLFwLkiFu/WEUrSX1fW/APCKZOY=; b=cd2BV91+mMMbRvTFi52N/AXl2Le0Z0r6nq7Hwm0XkcwA/V+wvhI3IYR4r9pu3PZhNx znnMByx9ZZbC3Ow7+Y1R1QaXxxrZpP2xutoU8bqJV+vh2zmxqkDT8fS21QPjbRb9ZqIs sXilpaCWjpil5pQ4l3CMpRhXlSz172P/vWX3nUKtkIAlzXMQHLnNH4EX/M6FPCDRA6lz trMymVwtJFAzZwduDXkWVWY2dnGBPrmtj50N2d5a/xHs8f4kcyqk/0r4R0gB0WPxnS+T gnL/71n2sSn6OBuXhbiRmvT5ZFlzFhILAdGGf3j3j4SUHp6ljLoGOzgRPHDTWLo6souz uVmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HoSzVnw2BnmdPeyLBLFwLkiFu/WEUrSX1fW/APCKZOY=; b=3JpsZr4/RPthw318fllpOvh9geskrO+OTBF+5qeNhpzlOEYim223IPGet8dJSbDrSd 30qZ7qnOqUrU+mB212zGZ8fIAtT80UuDIC3iHDUGBsU2UBhRBF7QbmmrcLEyi60Gof6S tmO9B12V1/OrT2GNwfsli2z8JT3KOx18aKfWm5BICXmMOOz5+WLR5uiqgKuX39B6CZHa tgCFP+CpM3qcfiymEH+rMJQ8zi7cp4YnBrrrFL6qbo4P1bDD/8/SVkcAY0SET2v5KRFl Gcw8XKa6XDqqXJIp1OrT2iPUAwvgcvPCCPuzyNJkisYYLs6Of9qljY0Mm143aeZ3rMUP oyPA== X-Gm-Message-State: AOAM532XmwrbTlTDCAZBxFM/P9/5Qr98GflF5daTdQV3qdJ4osOG6eXU IC/o9dfFwys5jZaP5iDpAIC74TaWlMQ1FZqYCmeqeg== X-Received: by 2002:a05:6a00:728:: with SMTP id 8mr34691382pfm.27.1643903883627; Thu, 03 Feb 2022 07:58:03 -0800 (PST) MIME-Version: 1.0 References: <20210421055047.22858-1-ms@dev.tdt.de> In-Reply-To: From: Tim Harvey Date: Thu, 3 Feb 2022 07:57:52 -0800 Message-ID: Subject: Re: [PATCH net v3] net: phy: intel-xway: enable integrated led functions To: Andrew Lunn Cc: Martin Schiller , Hauke Mehrtens , martin.blumenstingl@googlemail.com, Florian Fainelli , hkallweit1@gmail.com, Russell King - ARM Linux , David Miller , kuba@kernel.org, netdev , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 2, 2022 at 5:01 PM Andrew Lunn wrote: > > > As a person responsible for boot firmware through kernel for a set of > > boards I continue to do the following to keep Linux from mucking with > > various PHY configurations: > > - remove PHY reset pins from Linux DT's to keep Linux from hard resetting PHY's > > - disabling PHY drivers > > > > What are your thoughts about this? > > Hi Tim > > I don't like the idea that the bootloader is controlling the hardware, > not linux. > > There are well defined ways for telling Linux how RGMII delays should > be set, and most PHY drivers do this. Any which don't should be > extended to actually set the delay as configured. Andrew, I agree with the goal of having PHY drivers and dt-bindings in Linux to configure everything but in the case I mention in the other thread adding rgmii delay configuration which sets a default if a new dt binding is missing is wrong in my opinion as it breaks backward compatibility. If a new dt binding is missing then I feel that the register fields those bindings act on should not be changed. > > LEDs are trickier. There is a slow on going effort to allow PHY LEDs > to be configured as standard Linux LEDs. That should result in a DT > binding which can be used to configure LEDs from DT. Can you point me to something I can look at? PHY LED bindings don't at all behave like normal LED's as they are blinked internally depending on a large set of rules that differ per PHY. > > You probably are going to have more and more issues if you think the > bootloader is controlling the hardware, so you really should stop > trying to do that. > Trust me, I would love to stop trying to hide PHY config from Linux. It's painful to bump to a new kernel and find something broken. In this case I found that my LED configuration broke and in the other patch I found that my RGMII delays broke. Completely off topic, but due to the chip shortage we have had to redesign many of our boards with different PHY's that now have different bindings for RGMII delays so I have to add multiple PHY configurations to DT's if I am going to support the use of PHY drivers. What is your suggestion there? Using DT overlays I suppose is the right approach. Tim