Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3685499pxb; Fri, 4 Feb 2022 14:07:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQudNSqjDSMldFVKPiO/GWcs/h8BI1CBAKhs2F756k74Mef/UD2ga+QlWHn3cxWrmB+Hjz X-Received: by 2002:a17:906:3b9a:: with SMTP id u26mr828658ejf.125.1644012430639; Fri, 04 Feb 2022 14:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644012430; cv=none; d=google.com; s=arc-20160816; b=r/APyVRloaI7uQwsNJlWSdJsKlja4y6iPJaRMpH67aFm47aiDw1EjlIOaJRyNQP33h Iq0/UOW/P1nk3aS6xufc5L80tvXPZ3eERvJNCqvjvjWppomaoz+aL4/CgnHsl2alkfsE Qr3UdjitcNaompTgGUADIubcNBqh8dIj5ORGtW6wA1L3wvmPieJuOdyMR1ZuDaPDuALS oPS5dyVD11kvesPhcS1GMxjJIAqfWI8WpnvjlWQOHUF7J941QCj7Skt3QPhRy0L/emq+ pFGQyHMefxZ/nh+lXoAOh3GT9cKZ7NCy7LECJhfX3Qh1xsW21RdHIjnMTr8lz9K+JGoS x2EQ== 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=yY2bzUZwNMPnhcHR5z5MDI7i8ZyrF+lUHnqiNuxus8c=; b=C7NNvbPQOXC+MjnEdfLmcxQCU+anf8qM8nq7BxUuFbCgAthzYnSvu/qOZF/7E/yqc3 KeR4jExw9zr8ShmIlrnWADYyGgo5AGAGB7Ra5tWyrba/jp3CcfA+ZmsBZileTxIIvwV/ yQo8NnFk1lr9JsnxQzaxK8xtZZqi04s+BWl0KfyGT/LU7fllbBMb9pK11tUdKMwiNNRq xuvICq3XajtO3ZqN4knTN8m8gckSh0CQL7jTsvoOM1ljEMFw/acvPhgD5D4z5NMC7Zq1 qpdWpoLnR9blOez4MmYQ8owpp9TI9I3p8yCTuFL/vIJUZ6sdoeychPcsqOHI/8RMeNxn GODA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=rBrEb5yF; 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 r25si640905edp.85.2022.02.04.14.06.45; Fri, 04 Feb 2022 14:07:10 -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=rBrEb5yF; 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 S1352113AbiBCQDH (ORCPT + 99 others); Thu, 3 Feb 2022 11:03:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239458AbiBCQDB (ORCPT ); Thu, 3 Feb 2022 11:03:01 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD8BC06173B for ; Thu, 3 Feb 2022 08:03:01 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id z14-20020a17090ab10e00b001b6175d4040so10489993pjq.0 for ; Thu, 03 Feb 2022 08:03:01 -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=yY2bzUZwNMPnhcHR5z5MDI7i8ZyrF+lUHnqiNuxus8c=; b=rBrEb5yFwDlLbCMeQHwcMbA5BugUu4J0lSxvTjnezQM5GlT60pVaRMvYto2/kU6ylX 0mfrW41j4MDoEJ3RygMmvcXlI+XXxDE7ZSHfQFBcr3V/8ld08Oetk2lHB4a+8dJzNHVb RD68p3HHU5qnrrgdTnP7bUwHGcYlPsp48c0Tzf9tot8yr8Bd81+7nNPRxRUeOx9TxS0l TGdMwOljRECCoyVe251txOzmx2z0CbRa5jrXuObXsZP9HPaqhyNLsZWtIn4TZUqjjvkd YCaAyAOLzGXWkkIo7kEdM+wd16a6IlvER8M9IH7KHq9xRso0n2Nxo54mdzQVMTYRhbTG Rcww== 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=yY2bzUZwNMPnhcHR5z5MDI7i8ZyrF+lUHnqiNuxus8c=; b=a1mamNhnjzBW7Kxs1SUESbKRCfQYeieMPnbZ7JU00bsdVkKJkmtXRzeCinKoVNNaVO GmJ0jHM7xIji6DMj41FJIjBJ5mTrcv3gWP8aF/xqMMZ83iRdAITzs6WWC7MlH8GH3fag 3t4JkIE05pf4zfc5TsYJl1iO1iKUJjQhb3h1yupc4jJkxrOm+HKzDb40kDGIAam/L+bM gXouHd5bOTCcAhIpgNgJuYPE8RYrCcgIbV9zhTncqMtL6183ejMnirkxr2yNv43lUgg5 48k2AYGjLuEgvEIvrsVb7PdGUaRTDRm6o3SIpZxkAk1nL1xNnAWry6XgLZXs7C2LzPPe S6ew== X-Gm-Message-State: AOAM530oSmh1vtlvDbRQVmrO3hV1KES3NuAJYDFduQKGreqWJx4o41bJ Ricn+J25mkHDYMkGwWBmpaQAxZFwQgQPY8q+qaoLjsHOrdQ= X-Received: by 2002:a17:90b:380f:: with SMTP id mq15mr14643628pjb.66.1643904181104; Thu, 03 Feb 2022 08:03:01 -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 08:02:49 -0800 Message-ID: Subject: Re: [PATCH net v3] net: phy: intel-xway: enable integrated led functions To: Florian Fainelli Cc: Andrew Lunn , Martin Schiller , Hauke Mehrtens , martin.blumenstingl@googlemail.com, 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 7:12 PM Florian Fainelli wrote: > > > > On 2/2/2022 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. > > This is really trying to take advantage of the boot loader setting > things up in a way that Linux can play dumb by using the Generic PHY > driver and being done with it. This works... until it stops, which > happens very very quickly in general. The perfect counter argument to > using the Generic PHY driver is when your system implements a low power > mode where the PHY loses its power/settings, comes up from suspend and > the strap configuration is insufficient and the boot loader is not part > of the resume path *prior* to Linux. In that case Linux needs to restore > the settings, but it needs a PHY driver for that. Florian, That makes sense - I'm always trying to figure out what the advantage of using some of these PHY drivers really is vs disabling them. > > If your concern Tim is with minimizing the amount of time the link gets > dropped and re-established, then there is not really much that can be > done that is compatible with Linux setting things up, short of > minimizing the amount of register writes that do need the "commit phase" > via BMCR.RESET. No, my reasoning has nothing to do with link time - I have just run into several cases where some new change in a PHY driver blatantly either resets the PHY reverting to pin-strapping config which is wrong (happend to me with DP83867 but replacing the 'reset' to a 'restart' solved that) or imposes some settings without dt bindings to guide it (this case with the LEDs) or imposes some settings based on 'new' dt-bindings which I was simply not aware of (a lesser issue as dt bindings can be added to resolve it). > > I do agree that blindly imposing LED settings that are different than > those you want is not great, and should be remedied. Maybe you can > comment this part out in your downstream tree for a while until the LED > binding shows up (we have never been so close I am told). or disable the driver in defconfig, or blacklist the module if I want to do it via rootfs. Can you point me to something I can look at for these new LED bindings that are being worked on? Best Regards, Tim