Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4903067rwb; Tue, 17 Jan 2023 06:59:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZl2ofg/adI9vAZUR9YDHZA8HM/rM5UTqJdeBcfWkx8lipxPq4UXmT5bpf9Unt98G+4/ke X-Received: by 2002:a17:906:6bc6:b0:7c0:f684:9092 with SMTP id t6-20020a1709066bc600b007c0f6849092mr3141329ejs.37.1673967566853; Tue, 17 Jan 2023 06:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673967566; cv=none; d=google.com; s=arc-20160816; b=WW08POVowkFyThPSzKYA+63nvMRhxnEuScB8czJKRTAvLQheNbrQf9CvRYnpKMBqEm mvFtFD2wl6fCtjmZEBI3r4koiPrvXnNC8C9zZ54rLRWy4pukizSh/QxRPlW5kld82vA4 a833dwvrkHVZsXcbfzNksIpAZzKJGOqpwjxmVB2wiUFMo8sYfzFP2jvwwxrzxpJFqhj8 EWfXFGy6H6ka74R5Dh/mZWt1Cng5HgweP4gcfQEv26o2NaLvsBKL7L2/PUTpjcaHnAD9 bVllTjKx0vJwxnWGyqrIcpTRHpDcBO9pMzSmIRJeKSTI4EmnnBeWG0zFyxPIcCXf9J8X dCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iSq1n6fp+pgT1otyTi5I8F7lSDNIWrwaaMFHeTyn+qU=; b=Aui+1t1nvFZbxDDF3ZE6IIXsCV9laMAPRIk1uKdrJD2Q7GlnLvCL50/Oxeg23MpChd fW5q9lfZJYHY/3PSR13E/7FUPvEg6fmazghIRqCXznaPuztGLvhqlITuj6vi1Y9JAL7C AlZbrC4FtZYJUtJz0kNVy7j0IYH1twbxsOTpOS6XxeIETSeh/ZCRC9Je1arD8412tP9Y /gWPnSIWe29MItgKEWrOx0EVF8zTJKAjX82TRyfzEYwVQth6ZF9ExfXF+1ulyCmkPTn5 BWN7oIVPtJFYXcZNPGtLZfcXWUIqkK3S8r8Fo6/H2fyn+bNT30SPW3FNU45sWaId2b74 JDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="1zA/3Nsy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne1-20020a1709077b8100b0086ffb73ac3asi8311453ejc.634.2023.01.17.06.59.15; Tue, 17 Jan 2023 06:59:26 -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=@lunn.ch header.s=20171124 header.b="1zA/3Nsy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbjAQOCK (ORCPT + 48 others); Tue, 17 Jan 2023 09:02:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbjAQOCC (ORCPT ); Tue, 17 Jan 2023 09:02:02 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B9538EAB; Tue, 17 Jan 2023 06:02:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=iSq1n6fp+pgT1otyTi5I8F7lSDNIWrwaaMFHeTyn+qU=; b=1zA/3Nsyc+B66S/JfzShWC0dPM 6BYykR2G0bL45VrfcDV1kscfdJfvgFWxfLyN7eXcE6OYcNMUkF2z0DUugdVRQHEyuDAYo0mOLd4jI zBlm+H+W2e9gCJxoNge2ZPu1vavnmiUnpzSilCsal/AHGPEDNCrVqVhKc2ffZnphN0K0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pHmX6-002KQU-Aa; Tue, 17 Jan 2023 15:01:48 +0100 Date: Tue, 17 Jan 2023 15:01:48 +0100 From: Andrew Lunn To: Pierluigi Passaro Cc: Pierluigi Passaro , Lars-Peter Clausen , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Eran Matityahu , Nate Drude , Francesco Ferraro Subject: Re: [PATCH] net: mdio: force deassert MDIO reset signal Message-ID: References: <20230115161006.16431-1-pierluigi.p@variscite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 On Mon, Jan 16, 2023 at 09:44:01AM +0000, Pierluigi Passaro wrote: > On Mon, Jan 16, 2023 at 1:11 AM Andrew Lunn wrote: > > > IMHO, since the framework allows defining the reset GPIO, it does not sound > > > reasonable to manage it only after checking if the PHY can communicate: > > > if the reset is asserted, the PHY cannot communicate at all. > > > This patch just ensures that, if the reset GPIO is defined, it's not asserted > > > while checking the communication. > > > > The problem is, you are only solving 1/4 of the problem. What about > > the clock the PHY needs? And the regulator, and the linux reset > > controller? And what order to do enable these, and how long do you > > wait between each one? > > > Interesting point of view: I was thinking about solving one of 4 problems ;) Lots of small incremental 'improvements' sometimes get you into a real mess because you loose track of the big picture. And i do think we are now in a mess. But i also think we have a better understanding of the problem space. We know there can be arbitrate number of resources which need to be enabled before you can enumerate the bus. We need a generic solution to that problem. And Linux is good at solving a problem once and reusing it other places. So the generic solution should be applicable to other bus types. We also have a well understood workaround, put the IDs in DT. So as far as i'm concerned we don't need to add more incremental 'improvements', we can wait for somebody to put in the effort to solve this properly with generic code. So i don't want to merge this change. Sorry. Andrew