Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp644762pxu; Tue, 6 Oct 2020 15:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjYoefyHgCfTnJPHelk9AodOnejjd/qdCAsNppyHDSk8VF2aAmBDmDRYvjXJy1zJbazUyX X-Received: by 2002:aa7:de97:: with SMTP id j23mr374933edv.45.1602024049684; Tue, 06 Oct 2020 15:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602024049; cv=none; d=google.com; s=arc-20160816; b=U+2CEL04lSimsx3UZwWQkRKXfetYZPst15bbaYLRPqCKHxluyKQwD8covFIbyYqNJ7 OVqDK+/YDNFxy5EHj4LpweiH4RKCMD98ej5lUYgRmkayOVj/ZLbxtHCzWXg1106OdbMm JKx4qS8aE25vhjiIFCbc642zaEYeNPbhioLBi3pkRBhueWE8I/6nNbUXPh4qhJLXI4eD V1oXkrMKtvmIz55tsFGRNNWp/Z5i2HHxjkO+MG2R04bGg3Pvlvh2I63CyE8JzbWt78uO BEpSuEzUr54jl1vJOtDk1W8l64fmfLPmZOW/sazJT7/MbK0BR57l5Ftk8yVpbBXW1CbK PhRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ByEWTUMS25RsHdoxvyrwJm7v+8ziZJ1VmMd81RCgQFA=; b=PZ6rJgyM2QyCZobW7IAtN8Me0YtpaP4bw9fROv/lVpURNLkrwCE+ccpqnOELB7lNr4 ka0JLkQ47g83U7KZPFJOQgTi8ydXChF7nmwW71Qcmbmfkv5sFbOszgE056M6LaC+IE+j W3lgyAZkFNVoIXxf63h3kuIWYGmlNh7OxTER4Afc86QA8gHfuYKAXko2206IqXRCTCZN QPpMGCITLZOrvRYyeJaCKlaWu84uDLe5B+Osj3zp5o6ka5ev06Wrpe4qbrFmDMhfbfsc +2iKzWAPAgVN8pyP5QhRBkiLrEeisjj59aZTXBmr0nqlRXEUL6sbO50nTdtkb+3BcYFV XILw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv16si100356ejb.305.2020.10.06.15.40.26; Tue, 06 Oct 2020 15:40:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbgJFUYq (ORCPT + 99 others); Tue, 6 Oct 2020 16:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgJFUYq (ORCPT ); Tue, 6 Oct 2020 16:24:46 -0400 Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D576AC061755 for ; Tue, 6 Oct 2020 13:24:45 -0700 (PDT) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C5TTg0rfQz1sFh8; Tue, 6 Oct 2020 22:24:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C5TTf09dkz1qs0b; Tue, 6 Oct 2020 22:24:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 6uiGA06vKZ4Z; Tue, 6 Oct 2020 22:24:36 +0200 (CEST) X-Auth-Info: 9erhqb+3Z1Fo9R5IYhOj9VKQ6gfK1E0/LG3P3DPkjPE= Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 22:24:35 +0200 (CEST) Subject: Re: PHY reset question To: Florian Fainelli , Oleksij Rempel , Andrew Lunn Cc: David Jander , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King , mkl@pengutronix.de References: <20201006080424.GA6988@pengutronix.de> <2cc5ea02-707e-dbb5-c081-4c5202bd5815@gmail.com> From: Marek Vasut Message-ID: <42d4c4b2-d3ea-9130-ef7f-3d1955116fdc@denx.de> Date: Tue, 6 Oct 2020 22:24:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <2cc5ea02-707e-dbb5-c081-4c5202bd5815@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/6/20 9:36 PM, Florian Fainelli wrote: [...] >> - Use compatible ("compatible = "ethernet-phy-id0022.1560") in the >> devicetree, >>    so that reading the PHYID is not needed >>    - easy to solve. >>    Disadvantage: >>    - losing PHY auto-detection capability >>    - need a new devicetree if different PHY is used (for example in >> different >>      board revision) > > Or you can punt that to the boot loader to be able to tell the > difference and populate different compatible, or even manage the PHY > reset to be able to read the actual PHY OUI. To me that is still the > best solution around. Wasn't there some requirement for Linux to be bootloader-independent ? Some systems cannot replace their bootloaders, e.g. if the bootloader is in ROM, so this might not be a solution. >> - modify PHY framework to deassert reset before identifying the PHY. >>    Disadvantages? If this happens on MX6 with FEC, can you please try these two patches? https://patchwork.ozlabs.org/project/netdev/patch/20201006135253.97395-1-marex@denx.de/ https://patchwork.ozlabs.org/project/netdev/patch/20201006202029.254212-1-marex@denx.de/ Thanks!