Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp675641rdf; Fri, 3 Nov 2023 11:27:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVkAjYcUSBJS2AwxmCQePPO9wOUZ97XZF7Mn7+RYGr1A2uEYYgJ0aSCP4zGIyGZFXk6rqh X-Received: by 2002:a05:6870:814:b0:1e9:bfe7:e842 with SMTP id fw20-20020a056870081400b001e9bfe7e842mr31146591oab.32.1699036054703; Fri, 03 Nov 2023 11:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699036054; cv=none; d=google.com; s=arc-20160816; b=SYNgez6DzK0S8GY0kWGJbErN8kwJib0iD6YRVFONkwURYJvC5z6cudaWNCsvzcOG+C 4qzMCSALx/B3JG6RcD2KPUOgaAabMbN5KNMQEPjsIDeGsO5AktiM4clZCdLcuvZWoGvW CsTnJtd1ulzK5CI/d/hqlx28y4pjnhDUP8n7OaasPGdXXqLr4k5vmjr+jC2552NWpVyF 45nGzH7TFQvsrv2H6/NtCSDdniNda5mx7GmSvIrChTp1fYZ6YGkF2RSKgnjbbjFFd6nM xGTCArCiSLz4EoLGIAPUFp3xpkokZYtU/udd7vM6dBW1bILbUNnRgUQcVkMhuLvUxVjd zfhw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q4A1/ShYumvFEKJwseEisL4WJre6JGG+MXAB1DSfkCM=; fh=gV8wHdNE4LBNvPJRiOGyzQacX+c2iSf1WwEP3THgZM0=; b=E4K4apsfoup+T2eevPE01HXcRV3YHWX9qSUQikHohD/4Q14+rL5J81KA/pCpRWiorZ wNYRF/gQFx4G6pZ7oUSr9NtkOal3+5fRrIezcM/WGNzI7qDTitzh0gcY/GZV8Hdgy5UG ll5v+Kgz/nKiwxFoMD3dqpkzkM0w7ZvO87xqnhWH2M5Py8Cwjz0qGY6k5WbMpfezSzR0 lWVGOhUYL8UYCGNjDBTZi5nCEbE4puYwQhxlhvXWSwdl36e3sOE9WcabAEf+CnFXRU9S xcyQccIaJ0wBVQrBqVf/qhanSzDz67lm6llKm9awMeAxw68yNEglN4XQZCVtRLhjMrYW Maog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="LTd6P5L/"; 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=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k190-20020a633dc7000000b0056357813fc2si1942683pga.183.2023.11.03.11.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 11:27:34 -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=@quicinc.com header.s=qcppdkim1 header.b="LTd6P5L/"; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DC70B82369E2; Fri, 3 Nov 2023 11:27:02 -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 S233971AbjKCSZG (ORCPT + 99 others); Fri, 3 Nov 2023 14:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjKCSZF (ORCPT ); Fri, 3 Nov 2023 14:25:05 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA91FCF; Fri, 3 Nov 2023 11:24:59 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A3Dm83J004645; Fri, 3 Nov 2023 18:24:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Q4A1/ShYumvFEKJwseEisL4WJre6JGG+MXAB1DSfkCM=; b=LTd6P5L/52RMaij4t6W3kKSwp6G300cKxSV5Euc6Kd5hISCTHHNlAsaKFPcyLp29yVtk 9C9sckItG0A0yfRvYZGfYGnL58D0mJsDYogGjO/ebvDulDHFh1HvJIS/3cFnljWVl6MO qWpZwDjuaZSbUxLgyggxeP1FZTkfn3aP9ySZI+QDQs34hBW3rECFLfvpimn1Vinr33ON dB/V2R1pvyfFInjPgEVYiiHK4YkpO13NOOe22BmuVE04030gu52N9DzevWrJslfXLTRL zc7FhF6ujtWeQx43HzUT45e8n5f8hNTlUzBBeTJ38FZOCVVyXCbbWuxZ9RJNiMw6tCcS Rg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u4wmjh95a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Nov 2023 18:24:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A3IOTqx008092 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Nov 2023 18:24:29 GMT Received: from [10.249.21.155] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 3 Nov 2023 11:24:22 -0700 Message-ID: <29752cbf-9fe4-48ce-bf21-0bb3daf7d691@quicinc.com> Date: Fri, 3 Nov 2023 23:54:16 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 1/8] dt-bindings: usb: qcom,dwc3: Add bindings to enable runtime To: Caleb Connolly , Thinh Nguyen , Bjorn Andersson , "Konrad Dybcio" , Krzysztof Kozlowski CC: , , Conor Dooley , , , Andy Gross , "Philipp Zabel" , Rob Herring , "Greg Kroah-Hartman" , , , 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> <96b3ebe5-781a-432a-9a73-2217a2a674f4@linaro.org> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: <96b3ebe5-781a-432a-9a73-2217a2a674f4@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: LFkoDZoWy75NbMtvUKFsJCg-alEyYpK7 X-Proofpoint-GUID: LFkoDZoWy75NbMtvUKFsJCg-alEyYpK7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-03_17,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxlogscore=582 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311030153 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 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]); Fri, 03 Nov 2023 11:27:03 -0700 (PDT) On 11/3/2023 8:26 PM, Caleb Connolly wrote: > > > 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? >> AFAIK, I don't see any side effects whether we enable runtime from user space or do runtime_allow() here in kernel itself and leave qscratch config to vendor hooks. But leaving it enabled by default, we do this for almost all targets in downstream today. So I guess there would be no side effects. Regards, Krishna,