Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp538620rdf; Fri, 3 Nov 2023 07:56:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELFFZGgWopJLTHuV2ZRy7CyF0qcosWPJUIP9qCCvzNLEG/iQEiHHIOb/u/5eeNGUtK8qx8 X-Received: by 2002:a17:902:e1cd:b0:1c9:9e33:3a7d with SMTP id t13-20020a170902e1cd00b001c99e333a7dmr16401574pla.20.1699023411522; Fri, 03 Nov 2023 07:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699023411; cv=none; d=google.com; s=arc-20160816; b=WubHUfIsHfhfsTfV+yOQogGlpH/FrI+5Gv0qClJndkOZCDsryhmSW2iEJY/zoV1M1Y eRS+r0bsJT94pA8EjooEQ+hAuJ4UMAtRz4GMTOkbdFU5ZHfxcHaCN/FepMti5t+dw9K5 lnPmXg1w5yWmSnls2Dnb3OznFhQ7eexdx2LlziBHTmBhG9STFujF/OVXMOFoeK/ITj2h n//tbqTabdWnphpsNnpjqTFspaMx3e6xYlTfd+F9SCz1K6TIhgDJBoxFwD9dd7Xr/L4T /Ls7rijWyjE17+qviWkPEgRy64iheZykQi26829GIMfIbzEYEVTWpCEfZRbvdCHhEyYG KOIg== 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=YzRav2ZfuBCwiXlPtdX/9u8isJFM6SrzAhyoI7wYWQE=; fh=GLb72EYdiW3FwHzx0Gy5aIdC+ap45kL3nHMg6w6Vljs=; b=XuX/gDF31HA2uz3JcWukhIK1mwxSUDNKV6VT941u56bGePVtqrQqGKKaEq08zXn7Pr NtSKM+rXjDdf8/DBxOPHQ9bI9sTbtcslONLxs6+MkcN5twMuV6r0oTdjmIq4MGAKdGPD AtEhJSlvE5LY9jLyvT/IctY+u8SNhgHnc4eRF0b9pNUSIaNGUY6emTHHv3G2y1KOuzu6 mLaTvcjJDSTBlWIFjHfZCW1FMHWPvdtvSn2VYqy2Nxcq0/vax0vd17jEbnHd8Y7QTmdq pblUS1TTnaDiTvBZPOAvEBEqFn9ekblveBUThnvS8BZhRGP1FQBdX7uKvAo8YKADp887 bVmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pn24tQiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v7-20020a170903238700b001bb9375b349si1554869plh.536.2023.11.03.07.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 07:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pn24tQiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 620288350FC8; Fri, 3 Nov 2023 07:56:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbjKCO4u (ORCPT + 99 others); Fri, 3 Nov 2023 10:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjKCO4s (ORCPT ); Fri, 3 Nov 2023 10:56:48 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B15ACD47 for ; Fri, 3 Nov 2023 07:56:42 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c515527310so30358331fa.2 for ; Fri, 03 Nov 2023 07:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699023401; x=1699628201; 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=YzRav2ZfuBCwiXlPtdX/9u8isJFM6SrzAhyoI7wYWQE=; b=Pn24tQiUjPLyBLkG3Qe2NpyvS10i7qITQ7YbnU1hGUUdtW+034F7pXZ27hmtaeVd2Y +BB2M18gEOq+1Xfg+CnuPGz8iuBUijfEYPWJ4cP3PqM3/gsL2wMd8ozxgYWyP92FFOU3 NlJbDtSKDEWzNd3yaqN9ec9AAxIncQH+aOmP508WeqgYr/COzepVlf49nZcES5y+wQxF t1Jf/UGUWv6gX/h6iM81V8NULbY2LpEpYhqI7Iyoj+88NdDEb4DYJJmwUT8pmb18tDOJ gICf859WcxLFEmPgonKhOTgepAo4r8IaXzPTEFssBF8/ltxbZzxjKlJl+TrAa6Acp5N8 f7Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699023401; x=1699628201; 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=YzRav2ZfuBCwiXlPtdX/9u8isJFM6SrzAhyoI7wYWQE=; b=X1zPldJqHkbXv0YfiiGEI8HADUFpcses9QaNdUJH0hZPXnxVxi+GSePPdf+LJzwP4w jMVDeuF6pab9hvU1naWI52EmOX2u5oen/ng0maPTY4NmyaXpg9Cr203wN3jF/IHm6/VV Zp8lsCTNARylDnq/+PIobyj0v83zloXRBaJglR46gK7TJoxXZYgxoX/NSX/23OrzbBlm V9LtoqmHWi39FGb+ieSPZAccXWMSWPnuO05mh6CJXRd+YLFO3GdHJnPYGBw9uG+gTkGt NnesnvzEbPxYoM9Xf5wIsthKypSeh4t7y02bPVkV74FQOpsu4/2WOChtMy1Co+jmOqXB iPOQ== X-Gm-Message-State: AOJu0YxLdp5bSAh34LZ8+3Q1LXcWlCmBdBSDyYb0dNatdQVWMUf2Vbzf u+vrzZHnNHRMSxQCntGFDmRSrQPbGZde6lKBr0bHdQ== X-Received: by 2002:a2e:be0c:0:b0:2c5:1bd9:f95c with SMTP id z12-20020a2ebe0c000000b002c51bd9f95cmr20995596ljq.53.1699023400703; Fri, 03 Nov 2023 07:56:40 -0700 (PDT) Received: from [192.168.1.7] (host-92-25-138-185.as13285.net. [92.25.138.185]) by smtp.gmail.com with ESMTPSA id er14-20020a05600c84ce00b0040472ad9a3dsm2656519wmb.14.2023.11.03.07.56.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Nov 2023 07:56:40 -0700 (PDT) Message-ID: <96b3ebe5-781a-432a-9a73-2217a2a674f4@linaro.org> Date: Fri, 3 Nov 2023 14:56:39 +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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 07:56:50 -0700 (PDT) On 03/11/2023 05:34, Krishna Kurapati PSSNV wrote: > > > On 11/3/2023 12:10 AM, Caleb Connolly wrote: >>> 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? >>> > > So we would register vendor hooks when usb-role-switch is present but > don't do runtime allow, and leave that option to user space right ? > I think it would work and we can do away with the binding completely. Can we still enable runtime suspend? Maybe someone else wants to chime in here, but I'd guess that it's preferable to have it enabled by default, particularly for devices like phones. Or are there side effects from this? > > Will wait for comments from other folks as well on this approach. Sounds good, thanks! > > Thanks for the review, > Krishna, -- // Caleb (they/them)