Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3548976rwb; Mon, 7 Aug 2023 15:49:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXaVdMHoxZQm81QSGJOHmBuNqXDhCv46fOdIhxKg3OP/fri/TX1DsF4sk8ToKsOYq4zTrV X-Received: by 2002:a17:906:3111:b0:99b:bc51:8ca3 with SMTP id 17-20020a170906311100b0099bbc518ca3mr9131832ejx.1.1691448595157; Mon, 07 Aug 2023 15:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691448595; cv=none; d=google.com; s=arc-20160816; b=R7AGdyexfoqai1/Gq02646bH1r3dals85gSk3qmoG85pCaRlb7Z3mo4u+tP855CFxE p380weH9xXUxDIjy6yaF1ukMmmVb6twD/YBzO2SF7ujDSEI1Qc+0tNqfe2Slcoa4YGpb CEYbdjOhzYOTNY+zfscYxWYeQiNt0r8GJQoh14G29wRC/cbkagQTleAToloua6vFokED hBsooNVrmY85W3EHG2gXefEUXPcERQQtnRhmZ9bnVQgryP9snxS4nLem2FJUEOtUJZXl PJlkXE+6nW9DYcPs8gkHBIek8NdRc5m3PMcjVlelENo8LSRkfmD2mMaeZzjVxK4AO/O1 CYuQ== 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=L3WTIB/awWgDjyotc8J5DHGHymrJa2fQmukIdroZlpU=; fh=ZABeg1rBd27ThyGvZipokl/XbyUnIjV5yj+qdOen/xk=; b=fdkJn1yt9lmBobJxj5XT0oGFAkXr+ritFhru/ICfBerGzEtPcfMwmGdek7o7teuhdY olMFKePQhv1oZO4uYShLLpmOksKB5Kjs8D7FSXwX+DgMoKD3SyGCGZO+mfIRxkZVbiXQ iuj7pKo2CFCO5JU4GaAfMe+usaBCjhH73TtnA9YFPjQRqBEZveVrq6jUzEZlPjNs2dRM EFqzIi3DXN1cEeK+lZIo47qFkmn+aNUlwjEbJ5fU6Td4E8zVWkp2MMQJUhM0vBSsGJCH /9j6yK+xDzS3d8nN6blryf9sToAwLAdRZGGGQhtGZL7F9sTuZ9NJUwRgt02MrTCK6fhY ckWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="P/y+fEF3"; 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 lf20-20020a170906ae5400b0099cc030dc66si3781749ejb.19.2023.08.07.15.49.28; Mon, 07 Aug 2023 15:49:55 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="P/y+fEF3"; 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 S229799AbjHGVvp (ORCPT + 99 others); Mon, 7 Aug 2023 17:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbjHGVvo (ORCPT ); Mon, 7 Aug 2023 17:51:44 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A391283; Mon, 7 Aug 2023 14:51:43 -0700 (PDT) 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=L3WTIB/awWgDjyotc8J5DHGHymrJa2fQmukIdroZlpU=; b=P/y+fEF3RJwZcKnhkqLO5jFbGr 89jLVQmlTsAIa7X8UCZv3K6L/NWwU6FkxXbtAlkRsCDr0ir+x/uDnbJSSJeJbUPwVpRFJIyJRQhsS BPaH6MFgkGEn961aivqzU9gb40kcpCeRihozkHTkPlxK84HgCQCT56KLuq6xBUbGGapU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qT88a-003Oif-3d; Mon, 07 Aug 2023 23:51:40 +0200 Date: Mon, 7 Aug 2023 23:51:40 +0200 From: Andrew Lunn To: Andrew Halaney Cc: Bartosz Golaszewski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 5/9] arm64: dts: qcom: sa8775p-ride: move the reset-gpios property of the PHY Message-ID: References: <20230807193507.6488-1-brgl@bgdev.pl> <20230807193507.6488-6-brgl@bgdev.pl> 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,RCVD_IN_DNSWL_BLOCKED, 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 > > I have proposed a solution for this problem in 2020 but it never got > > upstream. Now we have a workaround in place which allows us to hard-code > > the PHY id in the compatible property, thus skipping the ID scanning). > > nitpicky, but I think that already existed at that time :D Yes, it has been there are long long time. It is however only in the last 5 years of so has it been seen as a solution to the chicken egg problem. > > sgmii_phy: phy@8 { > > + compatible = "ethernet-phy-id0141.0dd4"; > > reg = <0x8>; > > device_type = "ethernet-phy"; > > + reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>; > > + reset-deassert-us = <70000>; > > Doesn't this need reset-assert-us? If i remember correctly, there is a default value if DT does not provide one. Andrew