From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 242F830D40A for ; Thu, 16 Jul 2026 04:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784175167; cv=none; b=p+vn5Bm17xOpUuPGbgq2YAu7LWCyYdAHRP/o1XFFqupqcjN1tPb4E/gp8MRnljstAny/OJQXw7WMPBEPqR0EGx3wiQEebddz6ZYcsS6LRWx+Z+qNl1dOF81i6CBCC9xLhr8m1hKUIoMVbERv0Ymm847fguB1PGeCuZiCiOWCTRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784175167; c=relaxed/simple; bh=/dyoMv/UYdVyyF+qnuzKPqZMYCQmEci40zFu3E4B9JM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jWgCdcFFP4RSUUk1++3MxZfr6uogg1iZAVKx1cG4QYzlfigGpDP+Vyniqn4dz7AI6/0FYpJ+bcdT/s9qUVKkzdQzLYSzfD/mc0WtZNoIbxs2o8I0/Qhn++dhTiAy02U0eDChsfa0Uzt6HJthYsbotktYNmH9RHMI8Ol4KKgA2+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jykNlWKB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ir2vz1nh; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="jykNlWKB"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ir2vz1nh" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66G3wWqQ1689726 for ; Thu, 16 Jul 2026 04:12:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kuDvcNYhRq9zIu+xk0S4V0i28EaJt8kIw2n7KS87xsE=; b=jykNlWKB5KbBs7uc 6YQRvf1ywfb02A/rnPVHuhmetYNCkunKhCJzOITXSIjqa2qDgboilF6TgsY4toVK brgEKHaQ5fKs/yS7e9pkcQsGx5RSdNpczTlbJ/mIyANPlZQAS2KFldHcwL4J1tTj pmXxyLba75Bu+SwEJbLt7pnNlmYNVXVnKwEqp6JZqTnqHKuaEVi4hqjveXplY3QC CTSMoiB8EhffslFm/CCNmOT9BRdXFpq8p0MjeotuGTAtgH5LkroUELrRpS2utgpy Fw+UkhW2KLmIKr6Y6oo5IS3hivy/pNETe+KWon5x5LnzsLwOzR00B3d5YeXtZv2h m4Y3vw== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fe7nmkwba-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 16 Jul 2026 04:12:43 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-38dbe39ce62so275939a91.0 for ; Wed, 15 Jul 2026 21:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784175163; x=1784779963; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kuDvcNYhRq9zIu+xk0S4V0i28EaJt8kIw2n7KS87xsE=; b=ir2vz1nh2wm8gpf/0Um9e2wKZxFEafeIszn4xQ0FgvER9miob2swpgRoIuT2mzqb+Q wUJhe2c2e7rpC/z9GWdNT4aKULiQAQcDsFLp1tNSkWfPDvElIHuKdpQF4+WEPOnLXYV4 8aKByVMZ+Sd25TYljy6qLXswRrYvffXHfCudNWjjlAtGjui0Kg9xNn5IF4khfQW6R8AX b9OuheN1ViJAduVFZ6OtB71DI9jD0OOV+n9bvJzAU/U54zqC3oJLUnuE9xyY1AliwVYy NbGY2Xbp9vp7t9qOUbjg5DywX8Uei2FJJG2MXDv+sz5ocC+adzyXaBbhzOkA/N4AvgmW ddQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784175163; x=1784779963; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kuDvcNYhRq9zIu+xk0S4V0i28EaJt8kIw2n7KS87xsE=; b=iYElyqa8Jyt+U1/2/2/bb7IOYSaOedXZym9bdZCqFHBGn99p3+ochCURJtVEtpcbby hCtwzuQkegtosFCFF3hI8Qz5QPMsXJnvBKpYLbfGVIF8mnAiCReog96eftG+DwKHV8mg YurhD1BLaPqy+D6STWMUF7ol9eaz+REWlU3ikG/ijQtIIok74se3lY10yMWdyIJ5RO3q St7wDb3WUH/rhUC+6UlraBN+48TjXA4CFhY7k/q6U/pP+COPBScufVPvAmZ4eJ2jVJiF AWdV4emTben/mmDDBKWlCcRb6xG/Z0Eb5kbBnnDtcywCA3xxJG0FLdduEX+NnDvRGf5v N8rQ== X-Forwarded-Encrypted: i=1; AHgh+RpApNSCu3nLU0gOm2cmclfmxELY7jTfUu/04beKG2jSJRHePtT9jQ2YFkjj1Z9tPxxJvb4rEzITxWCSKrg=@vger.kernel.org X-Gm-Message-State: AOJu0YxochEMWPdZHOwhGSULF+kB1v+RTfxkBMxqZvfneQtS4oiN3SlO Zk/EUf2qs8Ej2dWwN9R6zNzZ1ORe49hw6nlWU8ISvAuXEtBrsnrpm80Z2mEhrjekwkqyT/d9qDS jv6uQPoB9+lH9MzzrRFd/hafn9gEFo07o9NtC8nDT6x0/nzxDOOukgFY8bpXcl5PQ3pc= X-Gm-Gg: AfdE7cmQYAzYpxqC3NgiK6wOsx3HLtxHnbQmywIX1awPGHXLm2ZB3enug+Y+bfyYeK7 a0yBVyhuVMZNCSiPn3syMFf0lFrp6V/UjtoZKz7ppbBSR2LfsU0KJEqFhJ/133tX0Tvyu0ec2Mc NqzwfNxJ8NVGTvUOTd2VSE5QIKE/ce2RFVyAjYAiD6va39FczTOsKm9EdKdixDBolsMO0O+jUw4 pMVGeQ/U8iQTYYYZUHBN585TRGBSY08VvV38/djn7JWMmXj4LqQjeTM+pWMJU0yrm+7FPB7KmLi cWJNZmHYhEGAxNKoEUBFilUu5bafST+F0iyJsJUOx5TwAw6KXDmXV7L6K2iYCpD8l0rWjHkmwbg V6KrnQDANb6BBFo3ImOaZ/rdT2WG07yf0n18MPqH3bQvzg69MEDGfsETCmrIivy4TqBK6 X-Received: by 2002:a17:90b:17ce:b0:38d:9eda:fa04 with SMTP id 98e67ed59e1d1-38e3d134073mr1049434a91.2.1784175162886; Wed, 15 Jul 2026 21:12:42 -0700 (PDT) X-Received: by 2002:a17:90b:17ce:b0:38d:9eda:fa04 with SMTP id 98e67ed59e1d1-38e3d134073mr1049402a91.2.1784175162366; Wed, 15 Jul 2026 21:12:42 -0700 (PDT) Received: from [10.217.219.121] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3140e545bb7sm5558475eec.3.2026.07.15.21.12.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jul 2026 21:12:41 -0700 (PDT) Message-ID: Date: Thu, 16 Jul 2026 09:42:35 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] dt-bindings: qcom,snps-dwc3: Add property indicating presence of eUSB2 phy To: Thinh Nguyen Cc: Peter Chen , Krzysztof Kozlowski , Dmitry Baryshkov , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , "linux-arm-msm@vger.kernel.org" , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20260710-warping-resolute-wasp-e4b8ce@quoll> <7a099224-ea95-40ec-b279-f8834f261e23@kernel.org> Content-Language: en-US From: Krishna Kurapati In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE2MDAzOCBTYWx0ZWRfXzN4LflAeUVMf mYxNgKAJ6TpoMV9L0FIUL+Zms8i7MymbGNayObqf1DC5CUYY4N+tvqcPy7TSbXCrsuel3gayDk6 flNgUFfWeIDkM92zFhrrdY72VINT1pc= X-Authority-Analysis: v=2.4 cv=cuGrVV4i c=1 sm=1 tr=0 ts=6a585a3b cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=08YGO8N92OaCWiTnn_kA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: Xs6UFboUYP57uGgDLBaWxGm9ii97wbhq X-Proofpoint-GUID: Xs6UFboUYP57uGgDLBaWxGm9ii97wbhq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE2MDAzOCBTYWx0ZWRfX7gkh5HVMnWnk fMgvgcQZ95nym6dow4hFFUXdVKOMjTBc/4VgofXuW+Q/T6DmD1bHYFPLtmAiXwoFRirg8JMO8BL pWUML7UXqh4Ry3DBA01i0X9Rp3i/4U6+n5bLISr0QFSfmFPvWOHJDd3GNcjNw9EeV1wX60DXciU D5oTPHuDvbTdmG1wyjTQQWYo+kSEQ9nqdwBdoovrkSewClKiJAu6GzIkpFx5of60MmRDvHeolEI pxKlZ5/5KW4rsr/wwCSC01nYPPELXHayASsBKUYtONz6zRNmfY3qEPZ/ENSFA3LemF0kTWPfNly Em9fJI9HWO/kYN6uz8chpBY+0suyK6XFjiYIG81aQosbOATrnxX/ShJk1IhXFSRWQn+6BZEioYn U4lmbo9jc5VS5zW+dH9Iw2riLLcsIIfFwj3kxohmbhrgM2xoU592QiMZ9U/RZ3Lj9bsLbsbmefh AjODZYMUQzGEUpvK84A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-16_02,2026-07-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 priorityscore=1501 spamscore=0 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607160038 On 7/16/2026 4:49 AM, Thinh Nguyen wrote: > On Wed, Jul 15, 2026, Krishna Kurapati wrote: >> >> >> On 7/15/2026 4:53 AM, Thinh Nguyen wrote: >>> On Mon, Jul 13, 2026, Peter Chen wrote: >>>> On 26-07-13 23:41:14, Thinh Nguyen wrote: >>>>> On Mon, Jul 13, 2026, Peter Chen wrote: >>>>>> On 26-07-13 08:26:59, Krzysztof Kozlowski wrote: >>>>>>>>> And Dmitry already said this at v3. >>>>>>>> >>>>>>>> And I've already responded to his comment in v3: >>>>>>>> https://urldefense.com/v3/__https://lore.kernel.org/linux-usb/ahjYwJtiMsm0BcCh@vbox/__;!!A4F2R9G_pg!YksJ0tPtRth9ez8t0GB_WaxH3ynx3ya8M8aFIyKfYpApRC_79Ig93CqE2MKcrGJ6O6t_Dl3RD1zftrnxhdtcfoW7hgep8w$ >>>>>>> >>>>>>> It does not change the fact that type of phy is implied by compatible, >>>>>>> thus you do not get a new property. >>>>>>> >>>>>>> >>>>>> >>>>>> For USB2 PHY, it has property "phy_type" already, it could extend support >>>>>> list to eUSB2 like below, dwc3 qcom glue layer could call of_usb_get_phy_mode >>>>>> or re-use dwc3->hsphy_mode depends on where it needs to use. >>>>>> >>>>>> diff --git a/drivers/usb/phy/of.c b/drivers/usb/phy/of.c >>>>>> index 1ab134f45d67..5cbf17d493ad 100644 >>>>>> --- a/drivers/usb/phy/of.c >>>>>> +++ b/drivers/usb/phy/of.c >>>>>> @@ -16,6 +16,7 @@ static const char *const usbphy_modes[] = { >>>>>> [USBPHY_INTERFACE_MODE_ULPI] = "ulpi", >>>>>> [USBPHY_INTERFACE_MODE_SERIAL] = "serial", >>>>>> [USBPHY_INTERFACE_MODE_HSIC] = "hsic", >>>>>> + [USBPHY_INTERFACE_MODE_EUSB2] = "eusb2", >>>>>> }; >>>>>> >>>>>> >>>>> >>>>> eusb2 uses utmi, so it doesn't fit here as a separate mode. >>>>> >>>> >>>> Hi Thinh >>>> >>>> Yes, eUSB2 is based on UTMI Parallel mode, but it has dedicated >>>> Physical Layer Supplement [1], eg at CH2.4, it lists eUSB2 PHY >>>> Features. >>>> >>>> >>>>> To go this route properly, we'd need to introduce a new phy type >>>>> attribute in the phy framework, which will be a bigger change that may >>>>> impact more than this driver. >>>>> >>>> >>>> It is not at generic PHY framework, it is just for USB PHY dedicated. >>>> >>>> I do not see big changes, it only needs to change above files and related >>>> dt-binding files, and other users may leverage it if the controller >>>> has special sequence or settings for eUSB2. >>>> >>> >>> The usbphy_modes describes the interface between the controller and the >>> phy. eusb2 still uses utmi, so adding eusb2 there is sematically >>> incorrect. If we introduce the eusb2 mode there, we'd have to audit dwc3 >>> and every other driver that uses usbphy_modes to handle the new mode >>> correctly. >> >> Hi Thinh, >> >> I don't think any existing drivers need to be modified after adding this. If >> anyone wants to use the newly added enum for any eusb2 specific purpose, >> they can do so in a diff change/patch I guess. >> > > At minimum, dwc3 needs to be reviewed and updated for dwc->hsphy_mode > check when configuring GUSB2PHYCFG. Regardless, phy type should not be a > usbphy_modes enum as I noted above. > We can just add the enum for eusb2 in of.c as pointed by Peter in [1], read that in dwc3-qcom.c and use it during suspend resume for interrupt handling and to modify the DWC3_GUSB2PHYCFG_EUSB2OPMODE bit once we are modifying it in core. [1]: https://lore.kernel.org/all/alhDjZ0gJZq_7G6z@hu-petche-lv.qualcomm.com/ Regards, Krishna,