Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1496111pxb; Tue, 8 Feb 2022 20:06:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKIX7gXXNpzwui0NyqGTXRMm7MPDfWGXvUJeeQZ46h0m1a0KG1YEbaIwWcVoNHapYoWd8Y X-Received: by 2002:a17:902:e801:: with SMTP id u1mr346531plg.124.1644379585114; Tue, 08 Feb 2022 20:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644379585; cv=none; d=google.com; s=arc-20160816; b=GrBqtaPEs5evIcUoLAuP4zs8LZlmWT9JeODY+YOicRLzt4QOVG1DBCxcb5c0IbeT4S p6ttPlJRJlP0tPp/Vc2X0cIxB4PRqnKTt+JxuZQS4r8DD9QVvM4s0AupR9QBG2ofV+Os xbjSSt+Wp1coxxwEyx9tBleTyiH971aF0wU9gVGiat32J8jwn1q51R8Y7FXqw0BY0QBb 99WIWZXNay5izhGNBhsF/VlcJ1WXgrAV8s4oTERAURtlrALYczdnmYJPBYKIcjCsfDyw F6wvHzXbV0HsCGrCxl0e0FSqNEKLFdOM7ngMxlfhlBot1tDL+sCTEVEpF3kB0jodB1Ho KLsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FCJqphnrhYpXz/JFE4AkQNtVQmZZt8NjKZRV3W24Djg=; b=s5F09fPnyIUPJooQJ1HiHHdzQPzY+veGww+F3LNgXw8Z6eUXSzYqh8rpelKr46guYI 1FD5JfYeJcxwjcQefLmkfVMAZv0QqwHfBl1MJFG0MBENtZ8qeo1WLALnKqDXgtwrZNFj NcYM4a4zVLilJj8eUEqCOt9l+DWx43VcOkBpdivlLIjueLWVKaNTQTn/AmyUAL4soUYN AygyesyE1pQJYQBKb1ha3tAW6P4nR1vXioZYCvi55j0tRZiCi11ykPQuV0xd5KzXv70I He08dS+U5aYD/sblDK6yveb+Sb3kWKCtrNRVeGZzxA4rYfXo2/JZOo+3vpkkWiFqq9yv XaWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gd2i++FD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si16817360pgu.129.2022.02.08.20.05.47; Tue, 08 Feb 2022 20:06:25 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Gd2i++FD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376755AbiBDRG7 (ORCPT + 99 others); Fri, 4 Feb 2022 12:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234538AbiBDRG7 (ORCPT ); Fri, 4 Feb 2022 12:06:59 -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 40051C061714; Fri, 4 Feb 2022 09:06:59 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id s2-20020a17090ad48200b001b501977b23so13665030pju.2; Fri, 04 Feb 2022 09:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=FCJqphnrhYpXz/JFE4AkQNtVQmZZt8NjKZRV3W24Djg=; b=Gd2i++FD63/D2XyQ30o5iAnrXBBh6iaFgJbsDQFwRT6Jwul6zaUqKEY6xXUIIho/qy ujalZi/4IXnzr6Umn3jGvktxmgu9sKWD7bU4ffIH4ASAhIzozqnQlwEeABDAcwRCK2Si p6rTY0Rj7nFylg/FqnPLrGbYwKTvrJIdcCLokxQuYQ2XtXwzOcvXsM1blPRhsLD6N8ql NhbIp6Ku7JOCFiFwLOTi9hdH8uCOJrEQmIvV+DUeQaR4TBDa880x1y7iTpqFOREyXn5U RNj6ANdN8cGZsEB4laW4LKaUbpiW716wnEZmccOagqCZ+N4W1SGBShcQ2gTrcTJYYXuj 6Msw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=FCJqphnrhYpXz/JFE4AkQNtVQmZZt8NjKZRV3W24Djg=; b=OBA3A8sfMjGSDfPD/3NyTffRKCln8JOvXvAxwAadp9/UiUfSD3Gy/3aJT5xgyA9Nmz qS8u+CIc1dXhgiYAneru39920XCOriaszRS37kDYGlyuo8NfyUC7/q+/oaYVPmrTGjQ/ hiG9NN56QgbUEsnTdL+YwPDLGYfIRNZH5Ny3Llr0Bz5ObU3g8cEetHs7i2n+7oI3Tq/p uOf/5ACb01wlisBpDNU9xp5HIrE/hkI5VjvabwfI5x6+s8VNgcWe65DIiu3ZkvzsR22d KAbjn44wDe+l7o1xVNHIky/oxECCtblkUwoowH4hX0kmIvHdC7Jkg+xBjgopX+vewc+x 5htg== X-Gm-Message-State: AOAM531T/a2eIifwSER4+reGzO7iNOeVDSqVK7LsFxM2/ZkhC2wDHjRg ZfHjMdtdESfXvIuvwVNx4AA= X-Received: by 2002:a17:902:8641:: with SMTP id y1mr4146731plt.115.1643994418657; Fri, 04 Feb 2022 09:06:58 -0800 (PST) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id ca12sm2700502pjb.11.2022.02.04.09.06.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Feb 2022 09:06:57 -0800 (PST) Message-ID: <5bd30f31-6303-0b1c-b378-6d7b1e4a0928@gmail.com> Date: Fri, 4 Feb 2022 09:06:57 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH net v3] net: phy: intel-xway: enable integrated led functions Content-Language: en-US To: Tim Harvey 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 References: <20210421055047.22858-1-ms@dev.tdt.de> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/2022 8:02 AM, Tim Harvey wrote: > 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? > This is the latest attempt AFAICT: https://lore.kernel.org/netdev/20211112153557.26941-1-ansuelsmth@gmail.com/ -- Florian