Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1657050rdb; Thu, 7 Dec 2023 05:36:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEM9Q6VsUJ3k2ePD5K1kRn8PoXL3mvQC8am+xT03gqAla/FSMGCrVHg56SV3hEzokY0mZA6 X-Received: by 2002:a05:6a20:1444:b0:18b:ca68:4e9a with SMTP id a4-20020a056a20144400b0018bca684e9amr6502614pzi.28.1701956177898; Thu, 07 Dec 2023 05:36:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701956177; cv=none; d=google.com; s=arc-20160816; b=iDe8zzxHFgBqu1EaT43blqvsP8+uCZ8G7zQpXF1reHDbWDeeowXix/BBJhCx2buWoT quFEZaTuF/N9mQwUS01/dlVWoIS5pRzvlAft9tjDP14HZdh1PWmUJfjzkxjbnO/PDmn8 CzUuk+26b17g0FqdTDJk8cjUz0+bOwr+UV5zom+EuPcGEDt2J4kLy0Dc9cQPGkGY86IN JfQFcVwvr4R4j4fazb2zNyZHrAAFeXZIA2YoBTwA1hQTMV1lum8eG8Q6AiYe3KEJCVe1 r9m60x0XVJHS10Qq2wSnJqUFb1ptfss60QPKq02jzC5stAVQiUZ7qJfqIwYeBKSf5WCY I3Aw== 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=t6IEAL9i0H0mxFZWbhX0bngfxk5v0tW+rYV4xYIT6co=; fh=QxchCpXs76t0djDMATACCI9NzotprBKaW85cwkWhNv8=; b=HdIURdN4lPeTc1Zc9l/qFjjI2NQq61gVwZ9FN/upacQsHRHyMkOsxoUcNEcuR0D51V NbA9S73+LJuFPMnBe2APKQpaOMivSIO8VUDLFfBXPieJDlWVd90aFciNWenSVTx3ybQI VDxHCDjrH44sWpr6NhpyBg1iCUW7ZavcdPQjc34orWPsBSJ08PtdicSlSw/IF718OLRn mK9028V32G+ypkUUEANzJ1XF1N+09IsQ4k6r+ofRuSmkdZF6DFxLExvNtI1vZ6JeQezs 6aL/s1PE+z/5wr5hFr1nVOO36L7yOEVe5mP7K+6LacFAg5hNz64dveH7y9m7ElBPIIMO 0Czw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NnYaHdj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q9-20020a63f949000000b005b96d038729si1169042pgk.728.2023.12.07.05.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:36:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NnYaHdj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B5F7A80B122D; Thu, 7 Dec 2023 05:36:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441940AbjLGNfz (ORCPT + 99 others); Thu, 7 Dec 2023 08:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441968AbjLGNfy (ORCPT ); Thu, 7 Dec 2023 08:35:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BF9910E9 for ; Thu, 7 Dec 2023 05:36:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 093C0C433C8; Thu, 7 Dec 2023 13:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701956160; bh=mFp8ParZIu7BFVIzOTUQQcSiCU1gOg9JVYkNdX0stLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NnYaHdj6Pmizr43mxvzX8DdtfGzQbuNgm01szEtBlMZEwikYTje4vBkFBRMeo/0M0 hy4Ij2Kh5sCnscX9Dzkc4YVPr3I3ZZxRHFRoO3DoecbSQt0L4YU9KODGQNWynZ+Itn J3QbXMd3C7yzkXMFQRHYxUsyjI+BEvzNzqQtUf7BThkUrk5ZoM0svG+nSG3B1RWBhL MS06NU+56eWf1rdzFOzV9mcUfOqPnrOKN1JVqaGHSFPkPhNXVD55iDCDpTMosZS9lz SbKy5wtY3PYRa+ybl+c78d+a4y+1T51ofkdLP1fdrNN9/lHWyYHeMrpqcKNfXmp7WU OHx7NNGxvVrfA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rBEYb-0000T6-0T; Thu, 07 Dec 2023 14:36:49 +0100 Date: Thu, 7 Dec 2023 14:36:49 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: Krzysztof Kozlowski , Krishna Chaitanya Chundru , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_vbadigan@quicinc.com, quic_ramkri@quicinc.com, quic_nitegupt@quicinc.com, quic_skananth@quicinc.com, quic_vpernami@quicinc.com, quic_parass@quicinc.com Subject: Re: [PATCH v3 1/3] dt-bindings: phy: qcom,qmp: Add PCIe qcom,refclk-always-on property Message-ID: References: <166d307e-7d1b-48b5-90db-9b6df01d87c2@linaro.org> <20231201111033.GL4009@thinkpad> <20231201123054.GM4009@thinkpad> <3a7376aa-18a2-41cb-a4c9-680e735ce75b@linaro.org> <20231206131009.GD12802@thinkpad> <20231207101252.GJ2932@thinkpad> <20231207132032.GL2932@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207132032.GL2932@thinkpad> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 05:36:14 -0800 (PST) On Thu, Dec 07, 2023 at 06:50:32PM +0530, Manivannan Sadhasivam wrote: > On Thu, Dec 07, 2023 at 02:05:12PM +0100, Johan Hovold wrote: > > On Thu, Dec 07, 2023 at 03:42:52PM +0530, Manivannan Sadhasivam wrote: > > > On Thu, Dec 07, 2023 at 10:51:09AM +0100, Johan Hovold wrote: > > > > Shouldn't that be > > > > > > > > qcom,broken-clkreq > > > > > > > > since its the CLKREQ# signal used to request REFCLK that is broken, not > > > > the REFCLK itself? > > > > > > > > > > Darn... You are right. I got carried away by the initial property name. Thanks > > > for spotting! > > > > Thinking some more on this after hitting send: It may still be wrong > > with a 'broken-clkreq' property in the PHY instead of in the controller > > (or endpoint). > > > > Could there not be other ways to handle a broken clkreq signal so that > > this really should be a decision made by the OS, for example, to disable > > L1 substates and clock PM? > > One has to weigh the power consumption between keeping refclk always on and > disabling L1SS. Chaitanya, can you measure power consumption in both cases? Sure, my point was just that that's a policy decision and not something that should be encoded in the devicetree (as was initially proposed). And that the right place for the renamed property is not necessarily in the PHY node either. > > Simply leaving the refclk always on in the PHY seems like a bit of a > > hack and I'm not even sure that can be considered correct. > > I wouldn't agree it is a hack, even though it may sound like one. The option to > keep refclk always on in the PHY is precisely there for usecase like this. I just skimmed the spec so perhaps I'm missing something, but there's definitely wordings in there that explicitly says that L1 PM substates must not be enabling unless you have a functioning CLKREQ# signal. Johan