Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp579860rdb; Thu, 2 Nov 2023 11:41:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIVUraGVoFM19ObomTfksXzGbHPSWB5th0TXzckPPCTxFJs+qavHW5jvqh3Z3/XI83o4xi X-Received: by 2002:a05:6a20:9151:b0:17b:a34d:5b56 with SMTP id x17-20020a056a20915100b0017ba34d5b56mr686419pzc.19.1698950484069; Thu, 02 Nov 2023 11:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698950484; cv=none; d=google.com; s=arc-20160816; b=f0EfEkO/RQhbrvqQJ1oe2lSjR+ce2bzI/ME6DFho25UTP1P4szTsLCi4+n4URX+QhH cYx+8rcgMR3aNdCTvAVToZ/gAtc2H3ZYU3l3Qf/4ionJcEa49C1O99qJezqrGE4em6Fb xAcKy0vzUemsP/YEnR+56DIDYRN0MAtx0hdNZSts5OKya+EfiXPkweXWx0bDoKfhAAQE /9qL1hYtDCLppTyQXIEvlncl1vFNCa7cBIFZi5zB3AXcbhLN7ktJVtSQUusXBWlYEIlF s/BmiSM02d1RUpM9sAPK29T+B7ztFYF/26dSaHhXIVesPAuvOmsqq6Hwd5DlgVJ6GWhv zydQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IEpZhe0N2sN6GVcRg3szCztdEpMXAkzbYdbkv3mYVKg=; fh=GLb72EYdiW3FwHzx0Gy5aIdC+ap45kL3nHMg6w6Vljs=; b=pJdaZzQgI0kz5yPrmkR5qe/EVKcVyu8Ld7ZrKznkDErMNjOEPeUR5mOG7R9/TzE6PS zOBThQ44NAz+mGrmAJN+7DPjU3+g8VCrFok5yBH4lyvXFmjp5pOD9XfP2bkLBorMwDc9 6GeOjr5yt3roMD7rcaUkOQzVUcBOMKNkeQ/DMYckOGCODD67PRlvFWPw4ODsOHCAH6+U W8s2uemAPoPeWEdzR5cxPrOYLwhQcN3KbSL4/mVG0wOe+qsI/l08zlRV8hwOKoFAnbIX e2avqy2JFE99Y3VuCBWTxR0HFItm52dSi+0jLpNt2x7f1mqTs93fceK/HWCGYwNWrLeT LkBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ulnjtFJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h189-20020a6383c6000000b0056fbf85c743si92708pge.790.2023.11.02.11.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 11:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ulnjtFJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id BD42A8134992; Thu, 2 Nov 2023 11:41:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377214AbjKBSlL (ORCPT + 99 others); Thu, 2 Nov 2023 14:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234422AbjKBSlJ (ORCPT ); Thu, 2 Nov 2023 14:41:09 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC5E4134 for ; Thu, 2 Nov 2023 11:41:01 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c50305c5c4so18014081fa.1 for ; Thu, 02 Nov 2023 11:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698950460; x=1699555260; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IEpZhe0N2sN6GVcRg3szCztdEpMXAkzbYdbkv3mYVKg=; b=ulnjtFJnhHlwKCyC1/AZ1zSE6jmTjNnGl+1gPQ9y5WwhoY2j3Zz9bYXPidm0rIx7QQ nW8jd00MIhV0SCLK5tPh33JCTPsPEgqkXjhZ/k+iAKRGweTzwac/BhJhrLKrXLcJnXqB AMekWuvy9ntZniv+v6b/i1k8kcwUQYbR6ri1CCeiqeTVlLoQWTJDVasEWqot/hEZVKzp Eh0OdoOqIm3YkU5E6efCiE2W5FNKctZZEiE/0nFPrBDUoiAhShEwLIZGubrQ2Ab7WVXX +Hd7GS+j688NSzCG6Quf2788tdHucq+L1mofbLXSx/z//aDwpgPTmKMzwj5iBWNMHI6E HiTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698950460; x=1699555260; h=content-transfer-encoding:in-reply-to: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=IEpZhe0N2sN6GVcRg3szCztdEpMXAkzbYdbkv3mYVKg=; b=MiKUh1Rux/yobPooNXbG8irSVeya/PKu5DRqgCJp89FUYjTLhnkWxuzgx+Br1/vsFY lgQIj9JKAdyCyUSKeQRCs0tbN9d1fDcQ21bjZXSNT8zGZ+SOY+t/eDARlKkelLI5MBOl bsSJQ1p/wr2BakjC6Kl00JoZQOfdd2dKEAPfU6HDLImv6aXRXHCjUcP3jepZ3VGG9wev +Cy5MKQq8NvUqTVi7QvnN+fw4pQQsHxA1pe6MDVWs/qG/Sqj7KCxjfzZMd35Lvou2Qce YVzK0dL3wyfN34HVC5vTXLfIgvgos1Prdp1C7R/L1W19Xlhu3pNagy6fFYuxBFInkUiF QQTA== X-Gm-Message-State: AOJu0YxP8K/gdAt5W2oRgSVVmTgTS7JUXc/7upSqqfqIyICO03C6SAnW iEkqME4vuGdmcF3whyFvKnIGXg== X-Received: by 2002:a05:651c:336:b0:2c5:15dc:ba99 with SMTP id b22-20020a05651c033600b002c515dcba99mr12946673ljp.51.1698950460025; Thu, 02 Nov 2023 11:41:00 -0700 (PDT) Received: from [192.168.67.140] (92.40.204.37.threembb.co.uk. [92.40.204.37]) by smtp.gmail.com with ESMTPSA id a11-20020a05600c2d4b00b00405c33a9a12sm1481939wmg.0.2023.11.02.11.40.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Nov 2023 11:40:59 -0700 (PDT) Message-ID: Date: Thu, 2 Nov 2023 18:40:57 +0000 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 , Thinh Nguyen , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Cc: quic_wcheng@quicinc.com, linux-usb@vger.kernel.org, Conor Dooley , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Philipp Zabel , Rob Herring , Greg Kroah-Hartman , devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com References: <20231017131851.8299-1-quic_kriskura@quicinc.com> <20231017131851.8299-2-quic_kriskura@quicinc.com> <272a9764-1cae-4d86-88b1-00175de83333@linaro.org> <960101cc-78c0-49cf-ab62-90614eeb9ee2@quicinc.com> From: Caleb Connolly In-Reply-To: <960101cc-78c0-49cf-ab62-90614eeb9ee2@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 11:41:21 -0700 (PDT) > Hi Caleb, > >   There are two types of platforms, some use extcon and some use > role-switch to deliver vbus/id notifications. Extcon targets already > have this qscratch modifications present today in vbus and id handlers. > But for role-switch based targets we don't have any way to get this > notification to dwc3-qcom. In this implementation, I wanted to get those > notications from core to glue and for this we implenented vendor hooks. > > The property added has been used to do two things: > > 1. Register glue's vendor hooks to core driver > 2. Do runtime_allow for glue (and by default for core as the dt is not > flattened) > > In case of extcon, we don't want to register vendor hooks as > notifications are not necessary. Could it just be enabled when role_switch is present then? > > For xhci, we opted to enable runtime from userspace. >>>         HS/FS/LS modes are supported. >>>       type: boolean >>> +  qcom,enable-rt: >>> +    description: >>> +      If present, register vendor hooks to facilitate runtime >>> suspend/resume >>> +    type: boolean >> >> A Krzysztof pointed out, properties should define the hardware >> behaviour, not tot the implementation details. For this case the >> hardware isn't wired up to vbus, so maybe something like "qcom,no-vbus"? >>> + > > On all targets, vbus is not routed to hardware. This vbus toggle > indication is given to controller via qscratch only. > > Regards, > Krishna, -- // Caleb (they/them)