Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1635928rdb; Thu, 7 Dec 2023 05:04:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAmAmwuQ+9ZoA9kPcIqJoYvGLh3nB/3YkUYnHtx0RqvLCz9GNYVOhb2xBRDTm8Xav6tXD2 X-Received: by 2002:a17:90b:3911:b0:283:a71:63be with SMTP id ob17-20020a17090b391100b002830a7163bemr2537879pjb.0.1701954275753; Thu, 07 Dec 2023 05:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701954275; cv=none; d=google.com; s=arc-20160816; b=NGGmKEjcZN2/sab3UjmRhpReKeNOwIYORhWruudqzHVMlMVMXGVY5XixSy2IzNBRMw p0nJDSKCDSbIti7JlYc/aQ/0pY0lPW8vVQiHZrMXwa2Kub90L/ybTAFyqM34hSvNifnq BRUJXEZ2q9/Mf7JJYoEGN7SZs/R7+Etpw3q4O/W4RXdiudm4XnNaZNlujeToHnehqo5l pcjzSrc43ZX/Z9yPKrR9DXlK0FX1SNJOdwASM2DaAh7SQDh1VHXRAV3kIrHp7RrJfyvw hEyXVbxA1P3ewmtLfWou8eKtLVOMhf9MJF9mBh3bgRieCT4DC8wGykLwMeZXiSvPz/kB UBtw== 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=bQxFA3O+zzXnl8T8zNygDNmIOYW33hJCrZnThgX2VCg=; fh=QxchCpXs76t0djDMATACCI9NzotprBKaW85cwkWhNv8=; b=Kss01v9LR7ctVQovUpUHOvXP6xWLHGm5VjleavNl7zsg2IbnbpXICQUU3hgu1ioVQP i9ytAy8WDc0MpbUi4NxkaLFcAWh+OXEmxxG5lvJ/pD2L2Ce6OEdBo638hFt9Ltd+Y8mn vhkhFp1qS1Lwb9OUsZYYY7Hj5OV4T1cCXzqkSS3uo653L/K1wol11Kg1MZzOHHXo1zHP +7EmoxVnVDFv2bIUuvJrUcJSBQJAxVUdN7ATcOyfnMYFkQzqvguWmpLoGlS2s2FC+hy6 O3J0mlKc5YE72Cjb+FwRhrnllDAclsdNySQXOgoYdAq2FuBeaFpXXu06QnNx02OEVUFz CPZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e01Eyt0r; 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=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t5-20020a17090ad14500b00285b7529e7asi889913pjw.103.2023.12.07.05.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:04:35 -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=@kernel.org header.s=k20201202 header.b=e01Eyt0r; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0AFA78088A99; Thu, 7 Dec 2023 05:04:33 -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 S232730AbjLGNET (ORCPT + 99 others); Thu, 7 Dec 2023 08:04:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232728AbjLGNER (ORCPT ); Thu, 7 Dec 2023 08:04:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32D310CA for ; Thu, 7 Dec 2023 05:04:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D67BC433C7; Thu, 7 Dec 2023 13:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701954263; bh=4jBaR1qmNEDVE39mC30/eFVzEXe5bQ1xUwFeHyj0RXY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e01Eyt0rpcM1Ytp27Vi/5Ux5jIZUUg3qNyVEgLwye46M3zTNK5v/AhaEytBZ4LHRj BPtpM4DFz6IHzU1/ql9R7G78du7TsHXIPrhm8VN+4RsUrHks32ZqIjv0yWEMIaFqNB jOd3IVBrVb9tKtDTZulik5qo9s57vl4bxKLhS/RSV1gmsVUAREBJnf/BImCYnPvMGK d1z96fqnY6a1WjT9XfmIt+ou7UN8pd+TQrHhALYpDyKHW1CkCwBzxdPJxH6g9QhFSx D83TwKDW42u9M/tS8nbeKhFC9yXF4/YbUPkVLUdlp112U3z+4NmNtoKzbviQHDoMQk qBfWp47EIJBJQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rBE40-0000IF-2r; Thu, 07 Dec 2023 14:05:12 +0100 Date: Thu, 7 Dec 2023 14:05:12 +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: <24fae40a-453b-b14c-923f-88758a246aa7@quicinc.com> <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=us-ascii Content-Disposition: inline In-Reply-To: <20231207101252.GJ2932@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 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:04:33 -0800 (PST) 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? 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. 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