Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp789515rwl; Wed, 5 Apr 2023 07:46:07 -0700 (PDT) X-Google-Smtp-Source: AKy350aI2Yem/+JfQKdRe5SKaN3x8/+dWDoO7URdNTjm409k/CSDi0Dbe05RQdAbb9c7htDaB7yP X-Received: by 2002:a17:902:ced2:b0:1a1:80ea:4364 with SMTP id d18-20020a170902ced200b001a180ea4364mr8424482plg.31.1680705967244; Wed, 05 Apr 2023 07:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680705967; cv=none; d=google.com; s=arc-20160816; b=xXmy6Lila0klKq8k0/TXxDVoI/RDBE9+CX9YaeWd2K2vkGF/Z4dLBTdRtfBKGm8c3b L2tIfebpLEE0kP/jKMP+VVznl7Ko8EwwIrcCqSWDqnS+CNXtGOsWIJVEurZ/uIk26itv UqxyPcuEbGqvlyqKE+wbWvG2CV+7xPPS3Z9BDQpj3RdY5+MBpwKXLSG0tjRNAylN/5RD xnz8DtZHMXAuyCL/VJeUqpjVqaJYhTZ9U2+W5fPRoBlq/ioybw8KUkjugJ5vR9SN21Fv LqeFtpdTcvOnzn0TfN/Bc46jbrD8ShVI+gc4wTJG1BVmhOniZNDLBioOUSbfxjMPxQzN GaHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OJsl8L7J6Gbz8CJGFSvfusixWWLMDHgUYOGFryM+2AI=; b=EiztYFB6adfwG3mDaWfXVzGWt/GJ0nztrXQOZJ3Bju3Y0Kh6AFx3pRqqothBNSs8+F FgJsWuO+W9ccMUA7VdBjYN6LM04mWU0q3y2QYJugHh0VcdsPTtFAY2nPsOWLFbEjQxqE cJAbm86ZNc4JHPZ0FUA2G22DeOeoxqY40BHszym0D9EJOERtmj9tipTMsYJp1ls5gBQl KfiabpO+vBKZ7ow8w/DiDtnz32oMl8dnzvXqwVvqOIAtwetM9AEKXLleR8V5vDYoFKbf g5PbOokOWd5EqUTvylj23cX8aQGMpIbPfc/GsiFZTKZsWUJg6QfTtakOeGqxCTJwcNOA jPHA== 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 bi9-20020a170902bf0900b0019c9999f4dcsi11970462plb.230.2023.04.05.07.45.55; Wed, 05 Apr 2023 07:46:07 -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 S238363AbjDEOnD (ORCPT + 99 others); Wed, 5 Apr 2023 10:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238137AbjDEOnB (ORCPT ); Wed, 5 Apr 2023 10:43:01 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3E610CE for ; Wed, 5 Apr 2023 07:43:00 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pk4L8-0000GF-Oh; Wed, 05 Apr 2023 16:42:22 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pk4L4-0007Dh-7f; Wed, 05 Apr 2023 16:42:18 +0200 Date: Wed, 5 Apr 2023 16:42:18 +0200 From: Marco Felsch To: Florian Fainelli Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Broadcom internal kernel review list , Richard Cochran , Radu Pirea , Shyam Sundar S K , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 00/12] Rework PHY reset handling Message-ID: <20230405144218.kl7dqtms4x534jvi@pengutronix.de> References: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> <03ed8642-e521-f079-05b8-de9ffa97237a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03ed8642-e521-f079-05b8-de9ffa97237a@gmail.com> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Florian, On 23-04-05, Florian Fainelli wrote: > Hi Marco, > > On 4/5/2023 2:26 AM, Marco Felsch wrote: > > The current phy reset handling is broken in a way that it needs > > pre-running firmware to setup the phy initially. Since the very first > > step is to readout the PHYID1/2 registers before doing anything else. > > > > The whole dection logic will fall apart if the pre-running firmware > > don't setup the phy accordingly or the kernel boot resets GPIOs states > > or disables clocks. In such cases the PHYID1/2 read access will fail and > > so the whole detection will fail. > > PHY reset is a bit too broad and should need some clarifications between: > > - external reset to the PHY whereby a hardware pin on the PHY IC may be used > > - internal reset to the PHY whereby we call into the PHY driver soft_reset > function to have the PHY software reset itself > > You are changing the way the former happens, not the latter, at least not > changing the latter intentionally if at all. Yes. > This is important because your cover letter will be in the merge commit in > the networking tree. Ah okay, I didn't know that. I will adapt the cover letter accordingly. > Will do a more thorough review on a patch by patch basis. Thanks. Thanks a lot, looking forward to it. Regards, Marco