Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp951480rdb; Fri, 1 Dec 2023 03:11:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDWMGuYLDNJbOf7pL+rb5FGpVHUMJ+Be2giLiIQ/wRZ3TSsxIIdQXHP0DND/VlVAWCdKez X-Received: by 2002:a05:6870:75c9:b0:1f9:9003:4164 with SMTP id de9-20020a05687075c900b001f990034164mr31157492oab.35.1701429077822; Fri, 01 Dec 2023 03:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701429077; cv=none; d=google.com; s=arc-20160816; b=ozgMyMWmLSW4PftMCE7LgdBIF9eDy3174y88i023ktpVRYjJZ0wqxOaweaX3in4NrF TDy3Hzj19XzdxUVlU5dvzFc9oS/HRI/kTloKF/hhnYcwmbGh1jSrh+1K4pNPVQM+v3I+ hJJ9r2D5grsBkyHmL0CnX3b6CQpSQCYrsa+lwV9W3/8/MHrQszhzmPPmXPhdUsR19Tqk piAPab0P940K8ZgAiQHMzGvKCz5TFTLR4Xkx4Wyz0f67c5A7MWXx++nrh2mKyVqkkWQk KOrMxk5k7ClribKqJmL2tJPoV7SPw0cmrus5uki2UqGZrN5E6b9PG3b3zOU0aeyOWYoV FdaA== 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=edpCM+r4M4/R7CxGMXVYffuZgPSvVTUvgVhnl4+XzgQ=; fh=2OSYmJnZPyncO43zGFdDNcHnWR8Z+qlglMNUkfIM8EM=; b=Zrj2respbWKgEzdjq+3IbZyasG9C5Bc8Sb/+oSGxMtEfEjKNhaaroAg+NSgaJAhRCm pYw1u3hInwLTMTMeJDahjK5txMLbDdZ95AbI4inSb8xzI0zj7BF7LxpJjd0glN13kBBB 3oeqmlQWJf831wgLGxiMtaVxg2gCJgxLtfUyY77NM7YP8KLg4C/shrG2AsMvTBB1Bv15 v032QMAt+YLkwoq2N+E/z/J6LEsj3eFoKhdEvZBxky7w9XYN5iNgLHymjRjalVYU7+ut H4uXx/H3yKsDits8J43sc3jZ0a0v1IUwlLx+7qXxhyPZFU939xrGUbKg1fMDyaXOiwlU 14Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j4hmhtpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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. [23.128.96.38]) by mx.google.com with ESMTPS id g3-20020a6544c3000000b00588fdd9504bsi3074766pgs.858.2023.12.01.03.11.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:11:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j4hmhtpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 C667D8078294; Fri, 1 Dec 2023 03:11: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 S1378492AbjLALKo (ORCPT + 99 others); Fri, 1 Dec 2023 06:10:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378497AbjLALKl (ORCPT ); Fri, 1 Dec 2023 06:10:41 -0500 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 547A910E2 for ; Fri, 1 Dec 2023 03:10:47 -0800 (PST) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-58a7d13b00bso1081873eaf.1 for ; Fri, 01 Dec 2023 03:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701429046; x=1702033846; 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=edpCM+r4M4/R7CxGMXVYffuZgPSvVTUvgVhnl4+XzgQ=; b=j4hmhtpwzmbmJ2NftdTgSWUh+c3zsuS0Lm3pkdDmtCWdsWPmmPwTSZ5EM88HYW7GQi 8HP7B9x2LaRV39PWxMI/OfE4gVwKdzHb3pR4Cl5gr+HSId3SUc9WEb9As/8jbUmgXP0v MQXsm39CmMM67lSS+7LCn0H0eKJLGhzMPWXohQnnUroMTSP1laefoeGuoq8ldn2ptN1V yOBZ8AX7yWoqnAExM6LsBNeUQoEITe6EwBoxJqgqVG+g+EPp9UxUprLKCojt2+miwsTI YCeDSXHFZ64C0gmjBzmAhruNaOqiaGr/fPzkfF7RPyAYvDCSehf1x8SK4XvTRQvy4Dge WHdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701429046; x=1702033846; 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=edpCM+r4M4/R7CxGMXVYffuZgPSvVTUvgVhnl4+XzgQ=; b=qdvUZVkmESyrI9B9p5nIoQE/gqARJk+7U/UscrWlwI8uoHxvzDt8i1ZB95VndJYYh2 enAyNfy6c13w+ojKM5Fq8Z3wGsl4CEuBZFyQjnpNlDQibjQ8N7cbX/HqJppamrtu2eT+ IjsJliCrioyLRnXRLIslnjiIorMjZmTnFT3mYutH8DgHE7UFNPNkNOLwPYAPbUi19YSk gvolU6rlcPu4WCzZinfmpphlzbwp8Bo4Zi8zwUXMsLDMRpMvoe5An9Hvirz8yIyhr77t u4sAJ4yMxZj7sdEOrB1bZWU43lWzwvWQhhtjtEeby14nNURrX7aS5S3nNzPQIYq5zSST pvcw== X-Gm-Message-State: AOJu0Yy5VlfUwIyOlbMqfQvSatFboueJBSAWTRdBaUAG3XqMZ43sOQCI 7tZqrP2sMwW7twBlSpBejjR0 X-Received: by 2002:a05:6870:e0c9:b0:1f5:b5ca:438d with SMTP id a9-20020a056870e0c900b001f5b5ca438dmr27377051oab.16.1701429046585; Fri, 01 Dec 2023 03:10:46 -0800 (PST) Received: from thinkpad ([117.213.102.92]) by smtp.gmail.com with ESMTPSA id s5-20020a0cb305000000b0066d12d1351fsm1385912qve.143.2023.12.01.03.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:10:46 -0800 (PST) Date: Fri, 1 Dec 2023 16:40:33 +0530 From: Manivannan Sadhasivam To: Krzysztof Kozlowski Cc: 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: <20231201111033.GL4009@thinkpad> References: <20231127-refclk_always_on-v3-0-26d969fa8f1d@quicinc.com> <20231127-refclk_always_on-v3-1-26d969fa8f1d@quicinc.com> <78815f1b-7390-40de-8afd-ac71806f4051@linaro.org> <24fae40a-453b-b14c-923f-88758a246aa7@quicinc.com> <20231201060716.GJ4009@thinkpad> <166d307e-7d1b-48b5-90db-9b6df01d87c2@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <166d307e-7d1b-48b5-90db-9b6df01d87c2@linaro.org> 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]); Fri, 01 Dec 2023 03:11:02 -0800 (PST) On Fri, Dec 01, 2023 at 09:01:43AM +0100, Krzysztof Kozlowski wrote: > On 01/12/2023 07:07, Manivannan Sadhasivam wrote: > > On Tue, Nov 28, 2023 at 02:49:18PM +0530, Krishna Chaitanya Chundru wrote: > >> > >> On 11/28/2023 2:26 PM, Krzysztof Kozlowski wrote: > >>> On 27/11/2023 13:13, Krishna chaitanya chundru wrote: > >>>> Document qcom,refclk-always-on property which is needed in some platforms > >>>> to supply refclk even in PCIe low power states. > >>>> > >>>> Signed-off-by: Krishna chaitanya chundru > >>>> --- > >>>> .../devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 7 +++++++ > >>>> 1 file changed, 7 insertions(+) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > >>>> index 2c3d6553a7ba..c747c9f35795 100644 > >>>> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > >>>> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > >>>> @@ -93,6 +93,13 @@ properties: > >>>> "#phy-cells": > >>>> const: 0 > >>>> + qcom,refclk-always-on: > >>>> + type: boolean > >>>> + description: In some platform where PCIe switch is connected, pcie switch due to some design > >>> You received a comment to use proper wrapping: 80. Please implement it. > >> I will update this. > >>>> + limitation fails to propage clkreq signal to the host and due to that host will not send > >>>> + refclk, which results in linkdown in L1.2 or L1.1 exit initiated by EP. > >>>> + This property if set keeps refclk always on even in Low power states. > >>> The property name suggests that's the state of hardware - refclk is > >>> always on. Description suggests you want to instruct OS to do something. > >>> > >>> Again, third time (once from Bjorn, once from Dmitry), rephrase property > >>> name and description to describe the hardware issue. I see description > >>> improved, but not the property name. Again in the end of description you > >> > >> Both bjorn and Dmitry gave comments to change the description only, and not > >> the property name, > >> > >> correct if I am wrong. > >> > >>> say what Linux should do. Bindings do not describe Linux OS. > >> > >> I will remove the last line in the next patch. > >> > > > > You should name the property as, "qcom,keep-refclk-always-on" > > Keep the clock by who? By driver? Then not, property should describe > physical phenomena or hardware issue being fixed here, not what driver > should do. > This property indeed fixes the hardware issue (though in board level) and I see a plenty of properties similar to this one instructing the OS to keep some resource ON to workaround hardware issues. So they are all wrong? - Mani > > Best regards, > Krzysztof > -- மணிவண்ணன் சதாசிவம்