Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3596735rdg; Tue, 17 Oct 2023 23:10:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFuVv3y7ngx6WDwM+3N7j+DTfQp1F1FwsADHl62ByUPV++EY1Q15OSfRxJlDZvrPvgTbwKX X-Received: by 2002:a17:90a:19cb:b0:27d:2abc:f9c1 with SMTP id 11-20020a17090a19cb00b0027d2abcf9c1mr4088109pjj.20.1697609415495; Tue, 17 Oct 2023 23:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697609415; cv=none; d=google.com; s=arc-20160816; b=N4Z4kWQ1Stqr+un6Lr9NwzZgqCeDP9hdnwzRpTzJYDK0wXlbW7QPsWCnZbKTTgSs0H kumJ5htmDTCKzKiHwOq2+ieWhsqvYL1w8QnVsiKZpdjVWeTP0AH7eJf7JRFqsKWk7e6R xkrUVVCJyvgjsLBPTutM6jQ9DgEU/b8E6sN+l7uL8osKz4y8qEFdS64DUPLSa3VkdtZV 8YBG8ivRr10ajY3vCk1b+PV5ekLU/B3ZHsuEPJioIkTg803mminwPrvoCl6nwF2HaLxK M/yBDPVKqVcDwqIZtmtYk3C46Ppj9WIVtT+A2vi/0WoHtkRToUjCswjp3zookxxd7yVI MZAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=TOSDdTKHQ6Zn18zXh4dBj8ZhMSb7NfUjm1rV0GFHp+0=; fh=d8pWc6S8BxnS2ACC0tAetsyIYy1mc2dtjcda6YJAOpk=; b=E1mkhGlSXSV6iYp1P+RGT78S0jo8LkN6qaJ5ZD2IaQbi8rdD7ECylSBzWQaOc+ejSG TZSpfISCX77Gi0V5fHjvhfq9RNdbN61q8B/Qvyjq6h0xFSOIjc7zsvnaOfCINMp2Pnuo 3LVAUizgLSbdQbTKOx58GhFai48FBKZy3hxjhIb1WyNEbEXMCQuiPyN0fy56ew27749J iZd15h9FshDMLRuriiZgPT+25eotAbHUsaSrhaKqiTv7zQNru7lPt2yf7FIGxq1ZWd8b Dcm69rakK0+rCFP62Xg3lkUV9pzKFwGknvZ9wKwg4CPv35YKN79S2K5YLhWcrLJPzQ1P VNeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q8ec2Xev; 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 gn23-20020a17090ac79700b0027d0adde858si784044pjb.48.2023.10.17.23.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:10:15 -0700 (PDT) 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=q8ec2Xev; 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 76DBA80FE2B2; Tue, 17 Oct 2023 23:10:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjJRGKC (ORCPT + 99 others); Wed, 18 Oct 2023 02:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjJRGKB (ORCPT ); Wed, 18 Oct 2023 02:10:01 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF5AC4 for ; Tue, 17 Oct 2023 23:09:58 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9ba081173a3so1053573066b.1 for ; Tue, 17 Oct 2023 23:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697609397; x=1698214197; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TOSDdTKHQ6Zn18zXh4dBj8ZhMSb7NfUjm1rV0GFHp+0=; b=q8ec2Xev+rEuYa9JVBFAJ6mUanuZnt94sHGayOVXF0Hmjhto0zaka3XQlq0q0Z4bAi i98smxaZHMy/snHypaaoQdLCW6aczp4Bhz2Yj/WwCX47IeEzfYFvULIZsfeRu0uyNalA 8L7mO3NC2HFgX/ccMfmoL4VL4ufldWfGGUQKDraDvyiHdHn61/j1AJfcyExZSVl8rz+T 4n0oT/X6zbkq/iByV5A01SNKqh0tbfQKw/ww2U6nQIdT5I0JUwYChl1/jtYEisx3mdOV e/yXUgHb+TNHeLfBVAlvkjBmAPsYfHcyxt4L4OqKJEiCzE7ay38E3Pagz9xkC4+qoFz8 r3pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697609397; x=1698214197; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TOSDdTKHQ6Zn18zXh4dBj8ZhMSb7NfUjm1rV0GFHp+0=; b=wjTQZEqICdIo2++I/PfIb9uGmH8oQO9caoV2TVS8mZzXWyqhLkZyaN8eEUm3hKzmer 9LQSdXDYw4AANVnm85Jm1s04nxQUhO3ZNGCUa835kUZs5ujSnROeCvmZkh9e/tSsFX3l wvPjlzu35siROZPNKQmv7uSQWW/P4Fb5aclu13uR6MYX57igEJRRjldeVwZJngMg7EPn v+LhiXwevnuhDf2CLDfh+Cjwlm8dVWbgVvFOLlI2KuNxYtXHkg6oCU3uhnmj1QXv4+9K /kCr4Do9JkmpE4/QOL9PwKFXXy2QWfz5HNEoo9D9h+WLnEXr0jJpD8sIqbRSxt6GOp0P fsEQ== X-Gm-Message-State: AOJu0Yy4cdE+kDjZMtCdn0ZigALBRrJicyzIvPOtiH57fZfZOJI3juo0 gdQdQzQNPi0w30d+hMJrNTeE4w== X-Received: by 2002:a17:907:2688:b0:9c5:2806:72e2 with SMTP id bn8-20020a170907268800b009c5280672e2mr3026227ejc.34.1697609397120; Tue, 17 Oct 2023 23:09:57 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.154]) by smtp.gmail.com with ESMTPSA id j8-20020a1709064b4800b009a1a653770bsm933348ejv.87.2023.10.17.23.09.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Oct 2023 23:09:56 -0700 (PDT) Message-ID: <8059e5ab-672a-4808-9159-d67309625ef0@linaro.org> Date: Wed, 18 Oct 2023 08:09:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 1/8] dt-bindings: usb: qcom,dwc3: Add bindings to enable runtime Content-Language: en-US To: Krishna Kurapati PSSNV , Rob Herring , Krzysztof Kozlowski Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Conor Dooley , quic_wcheng@quicinc.com, Andy Gross , Konrad Dybcio , Thinh Nguyen , Philipp Zabel , Greg Kroah-Hartman , Bjorn Andersson References: <20231017131851.8299-1-quic_kriskura@quicinc.com> <20231017131851.8299-2-quic_kriskura@quicinc.com> <189be124-efb1-4843-9a47-db84942838c9@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC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h+/Q== In-Reply-To: <189be124-efb1-4843-9a47-db84942838c9@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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]); Tue, 17 Oct 2023 23:10:12 -0700 (PDT) On 17/10/2023 19:46, Krishna Kurapati PSSNV wrote: > > > On 10/17/2023 10:49 PM, Krzysztof Kozlowski wrote: >> On 17/10/2023 15:18, Krishna Kurapati wrote: >>> Add enable-rt binding to let the device register vendor hooks to >>> core and facilitate runtime suspend and resume. >>> >>> Signed-off-by: Krishna Kurapati >>> --- >>> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> index cb50261c6a36..788d9c510abc 100644 >>> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> @@ -151,6 +151,11 @@ properties: >>> HS/FS/LS modes are supported. >>> type: boolean >>> >>> + qcom,enable-rt: >>> + description: >>> + If present, register vendor hooks to facilitate runtime suspend/resume >> >> You described the desired Linux feature or behavior, not the actual >> hardware. The bindings are about the latter, so instead you need to >> rephrase the property and its description to match actual hardware >> capabilities/features/configuration etc. >> > > Hi Krzysztof, > > Thanks for the review. Although it sounds like its a Linux property, > internally what it does is configuring qscratch registers properly when > (dr_mode == OTG) That's not what you wrote. You wrote "register vendor hooks". Really, this is nothing to do with hardware. > > Would it be fine to rephrase the property name to > "qcom,config-qscratch" and to make it dependent on dr_mode and > usb-role-switch properties ? Would it be possible to make such a > dependency in bindings ? Examples are in: example-schema or my talk. Best regards, Krzysztof