Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1647689rdb; Thu, 7 Dec 2023 05:21:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmb0Yg8MLSYBgasvq+aVY2I7LVmSL4El+TQLSh5k8eNbiin+7x5BpR2HDLnc+gUauMj/HF X-Received: by 2002:a05:6a00:84b:b0:6cd:faa6:fc44 with SMTP id q11-20020a056a00084b00b006cdfaa6fc44mr2229881pfk.25.1701955265673; Thu, 07 Dec 2023 05:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701955265; cv=none; d=google.com; s=arc-20160816; b=x1x14sKtcqNpY/6IKMjpdRs+Ut3zVGKLtuZTGlRf9kJrx5+4qhEjSCbRgmU7HR78yE s1+TKoAIX93mv3AJ+hC21wsi2RRzFyzdfMVYCCTDc7McZaow+vdu9YmXzjyvXZHxXVPx 4DsMRKUp8myybxCRWpLBxDdO2IKMlhFQrsa0pob39tkATR2rEQsz1odnnM8dJ4+V/BBa ZILCTdl+ad+xrkPkDFyFHE/+raKJ8R2VZEouXTTs5RYqsh0vJjcxISNI3mMEvdqAuL6+ Z95+nhBCieTH50fAM5D17S2uxqezMKkNdWrnplVyEVkebNEsWxKZcixSL96X1vEpjR01 +QQQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DYFq85X/BIHTHq7kGtptVxvPwKJGLk6dGCvTwIzJ+dU=; fh=q/e2rLo5AeYfYSkfWVd6SIJl2UhzygzTRmIhKaHaUuk=; b=VyWfUbK7hMZsjGK7V63Sbo5lW/rhUh5yRSMUjKwI/H8RRL0vtA9iaj62STlDoA2ngt FpbJbvS4EWg4hN+iYkmnzTshvIKk/J2gU1q9PXVrVUMvEJ9231BkyxF+lDtA7lfI5Fc+ oM0noWJIm6CGJxfkZxu8kf4mmbLWdtwvPtAMcX8S2XnxlwyFf3fe8OtXfAYaMAoLRCG2 O3tHK+jTbrS8RCPyXS98nosjZ+66/g54SpwKvo6Huv29oa6sYUGAAxSM9xp65N4euHrY Bhuuo8op3DiEN5QB0vAfZikSR42756hbsaD6NjSB2jz3t1ozmqwq2ZNfJghduZN0gAj/ Rw9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NL7gs/wZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bx22-20020a056a02051600b005bdff97f97bsi1279594pgb.92.2023.12.07.05.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NL7gs/wZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E34BF80A28E0; Thu, 7 Dec 2023 05:21:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232728AbjLGNUk (ORCPT + 99 others); Thu, 7 Dec 2023 08:20:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbjLGNUi (ORCPT ); Thu, 7 Dec 2023 08:20:38 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFB08D5E for ; Thu, 7 Dec 2023 05:20:43 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2851a2b30a2so742065a91.3 for ; Thu, 07 Dec 2023 05:20:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701955243; x=1702560043; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=DYFq85X/BIHTHq7kGtptVxvPwKJGLk6dGCvTwIzJ+dU=; b=NL7gs/wZCgPM0rqMWLJdFyls4wCWZyBQQyfjvMC84YG2Bkhasgj2+Q03bPxaH+1M9p Kx4ETM2drEN9Mg71FE3bB1yA2MNOqE0oqKKAUPCEgBbgY2xC3E8naCQo+NyOHKuB5cuk SBitel0hghhFR9AVCngoF/UTJh8rgyYdZBGBwCFnk5Onn4vNCShyPz2byXL/AVLjp/+K I/HMbkQS/yt5Ib3RGawC3cuYKjyYfU7TaMmbQT0b1iv1IFR2xD9KsesDkPRiBWXrcB0F xr/igbZNYdeLtJUBQuL3so5LmJXxpgzeiygD3umPbyDc4K2CdT40DCQo1r4CcfONg2QD 2ZnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701955243; x=1702560043; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DYFq85X/BIHTHq7kGtptVxvPwKJGLk6dGCvTwIzJ+dU=; b=b6SuR7hfpHx2QnroUx9yVyQduIRvQkagjLRfEuMwUbQpBV+zrGEChic063WOj3oNvc P8Dsw8ZNoKAKUZPmjIvzqvCP+O5fC6noipC7BRtjUTNFz63Sn5P4r+EqdPa4PgIu+a7A EujfZ2e2hKJ4C6/y2uVzIVeHLTbq5WQTMuM94+9mh/KDSHhBNn/ABAXJsfKHnbTdCEUW 8R/APAhSa/kyU68ZYruLLI5n6rVJ4HFX0GFga+fSq+BJJp3Od2HyTDDCBKhxm+fXIzsT BrFfisSPJwHziYp3ruzoHWOVMNQ0fOrrBqWAVhMQizOwbh36+f6fP3Wi53duIT7WKiUS yQCw== X-Gm-Message-State: AOJu0Ywv6b36Bbrz81pzWZgWCZPlDObpmuPDl7+dTcRQxCBCEKoTTxIB 4gJJuidiJ28ij69kFfKqPJV1 X-Received: by 2002:a17:90a:8c0b:b0:286:f5f1:309a with SMTP id a11-20020a17090a8c0b00b00286f5f1309amr2090274pjo.81.1701955243349; Thu, 07 Dec 2023 05:20:43 -0800 (PST) Received: from thinkpad ([117.248.6.133]) by smtp.gmail.com with ESMTPSA id ju1-20020a170903428100b001cfc030da6bsm1359638plb.253.2023.12.07.05.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:20:42 -0800 (PST) Date: Thu, 7 Dec 2023 18:50:32 +0530 From: Manivannan Sadhasivam To: Johan Hovold 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: <20231207132032.GL2932@thinkpad> References: <20231201060716.GJ4009@thinkpad> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 05:21:02 -0800 (PST) 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: > > > On Wed, Dec 06, 2023 at 06:40:09PM +0530, Manivannan Sadhasivam wrote: > > > > > > > OK. How about, "qcom,broken-refclk"? This reflects the fact that the default > > > > refclk operation is broken on this platform, so the OS should be prepared for > > > > it (by keeping it always on). > > > > > > 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? > 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. - Mani > Having a property that maps directly to that behaviour has rightly been > rejected, but it seems that simply renaming the flag but keeping it in > the PHY may still not be the right thing to do here. > > Johan -- மணிவண்ணன் சதாசிவம்