From nobody Fri Sep 25 11:10:09 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 CD5E33F1ADA for ; Sun, 13 Sep 2026 14:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310467; cv=none; b=PrHn1HHguPEvUENEKAqyaP04iPdQEbqqD7YmnkJIUYkC6Jn2bUPhpxP7Zq56QokJPOKEKr8OE5J47mH2pwrXmFoELNGjmGpYPqdMk3LTiYT+w9yc0v7nkLsLafJJaec5l+SGt6+EA1YbsljPm7TnJp/RX5cTt/qvnW2T+acHTbE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310467; c=relaxed/simple; bh=IY2WnSD8E/Qc7eoIlUp3aoznMSkvtOFuNLNJe202z0k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KEOZyc/7SNdDqo/vK7Ig2RW1UhRiTgg2LsO2uaSXaRdqsTQz+NsXwsHTvLInlbS7OgpXR1CCl5PXYrvjRRQCrZ42Wn+/RGpPRqY0wdAZvYA0lvMtb58mo7rSfg3uJbpww7Y8ypxW6OMLhU5RQgftwOhAb3prbEEMf/FWUQozq7o= 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=BkQTaJdV; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=fLrDOPeH; arc=none smtp.client-ip=205.220.168.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="BkQTaJdV"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="fLrDOPeH" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68DE0Qkv1435111 for ; Sun, 13 Sep 2026 14:41:04 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= WADuGXO2aoMe0sj7AUt3ZiPoX2ZXMtN/W8/YvHMCyFc=; b=BkQTaJdVMzXzaTgO KfiKVTg9uvkbTmRyXTZU2ckmy2yLfjAl24DHPYSxLkevVTYf+u3be1twM+p2NnY0 3IjvT+OIUelDurfXnvQUAAWFYlYAApXBIXddAcZmMz5yI4qednV0MDlIn5fCs9PT XrIhmKZ0DBraSQX84yLOom78Gxbpwm0mDbO299pmJo2IimE4ZV6rPdyswyv0RJik 8d3yoxCMEJbHl6fXnbvAPfSZThufEgUHf83+CoyNiqMS3Kqn/MKtrOeKbPb45VyY w2C0SxM2d/Wl2olS8StwFODmGbGwoJF4xZEogin7MsEg2zz2wiupJw43H06WTzQo pe20pw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmygd3h83-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:41:03 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-399311947f6so4647132a91.0 for ; Sun, 13 Sep 2026 07:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310463; x=1789915263; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WADuGXO2aoMe0sj7AUt3ZiPoX2ZXMtN/W8/YvHMCyFc=; b=fLrDOPeH2OGqhTO1RflKYxww+bweGfL8XfiYifQFJjcF369uIilCp/ZNOOXJcFIOdU jzsJfbpTwoPia3ANUbPLPEZPbz95oGEQOeV9WofLUz0A30ps4eh7JinyiLdTcjaE35tC nJZZaD19WHH1ZsfaFLsxaseSs80GlZBEfvjzs8ucm3uXKNYoJnzGXMS5yZdujFDXCfzL llJoJElITK3sRLVnusQhUJ1qsHzo4W1Mhn6qQfVmItw7MjVcJt/NeNNOePOvm3gI9N9o OFd7T5byOn6Ln4+bTGVgBoitByiY1POHL+edT3q/XHi/y83JyY4z83G9lph6QEMYUOft h8Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310463; x=1789915263; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WADuGXO2aoMe0sj7AUt3ZiPoX2ZXMtN/W8/YvHMCyFc=; b=Dsi/djbBk4eTv7Fkm4sZzubpSUIyrp4cGIaDb61GGS0v8kPPkWDNOTJ7WmAj9Jskud zYUkP5ToSNjL1+HwOCQgxIHCliIPipgKClZwchiZvhyQvzktrmZJQ1PNOEK0CoFizH2L VGQBMAdA2FUSv9X6ONgDjuodo3BMC/+1EkCr3TubzUDbOQ3TyaxVkftsMOM4LNqsjyVF Zu82NKZN5j5eSnDz12BEUpAMSGJICn4M6pai8ytUanLDWczaWClR83+SGuSbomRFu955 yzq7Uvt9vcLv82siIMM1k822+t1iLJsrGMAbibm6QjwCZC6UGf67T866Uko8QNHnavK1 af0g== X-Forwarded-Encrypted: i=1; AKwUvBxvfTJndQeDZckoubc/zo57r/pHuhtRPiI7LMEtM3/0GuCuSZE8LfAFWfDmr7mI2NqnDE94FSJf8JkV7wo=@vger.kernel.org X-Gm-Message-State: AFuF++l5Q8pJDykHumQSOM7FDB/HSoPWdRut9N7HS7XDcCxi3j41/n8p Dl5NHUkAmAvTfd/ChYxMfDeLRpcwt0U/WBH7C3dii0zd4v1FNDkqBhAn5/cyP3BM83UhyO+fmDw L5P5pDx9w+P+V3MpToBD+b9dJZHVHYlLa4lo8hJWXEjav5NH390A1scBtIzlsRI3XfesYCBUcH0 w= X-Gm-Gg: AYBFou03TvVjMvHcx4PEkesNpJZPS7wQcrmiEC78DHJpREOzA2Gc7nahHER+Y6MeiY7 J6v32xveyGNylZEbBj1h8TWEFvHCd5WlFeCRL9medb+WjNVA9+gNbKwloo6mYnWWisyr/AcDXVs 3csOZ2l5i9RwIANNtgQbgy94AjdQDS5Hq2KeMh4B5PPZgh9SDBqNM/283k6/bh2dOnoFX6fQVN5 FEu7ySGEqDXYplDRG19+cQHwwM/MKLt9RlWLzEcb5ltdHNqwNIqjN6uzkdpOUPbbKzrweycs3cL HT3hj8l5oQE3Wgi/qrvg1t+Q6xbMgnUfvUJY+Ptmwh0M8xdGql+YpXucVZgNZ698Asl3t/vmUDy mk3OVVfSuB6ugwwJRNpFgg5hc/4dJreFNRUtPtBv5wL5TKNZjez1EgD1PExhcclTUwwXiTQ== X-Received: by 2002:a17:90b:5408:b0:39b:3109:10ce with SMTP id 98e67ed59e1d1-39dbc6a0196mr14224703a91.16.1789310463150; Sun, 13 Sep 2026 07:41:03 -0700 (PDT) X-Received: by 2002:a17:90b:5408:b0:39b:3109:10ce with SMTP id 98e67ed59e1d1-39dbc6a0196mr14224655a91.16.1789310462739; Sun, 13 Sep 2026 07:41:02 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14382741839sm2904705c88.6.2026.09.13.07.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:41:02 -0700 (PDT) From: Krishna Kurapati Date: Sun, 13 Sep 2026 20:10:44 +0530 Subject: [PATCH v8 1/5] dt-bindings: phy: Add PHY_TYPE_EUSB2 definition Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260913-eusb2-interrupt-v8-v8-1-0f505b9c394b@oss.qualcomm.com> References: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> In-Reply-To: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Krishna Kurapati , Krzysztof Kozlowski , Manivannan Sadhasivam X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=1964; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=IY2WnSD8E/Qc7eoIlUp3aoznMSkvtOFuNLNJe202z0k=; b=O5E116sLIKdMq7m8mU3ZS4xE9nMUaQM50pmqzz3y0t2E/twLbTfyVIOTlWjZSaucWPmnWISos ucWaTi3SA0xDUMH7MpWkbiG+X9MYhCpULb6YAOuoJ9f2UmuPrIY7Ugm X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Authority-Analysis: v=2.4 cv=RY0FmFtv c=1 sm=1 tr=0 ts=6aa6b5ff cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=L1EOSesq0gyy4kqEYQ0A:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX4VfEr38ypqBg 8wT4emmaYRq/yHo0cKpSAz4z+u/7Xmrf1Pkpkhv0h5mF4d3Kqkp153Z7D0tL57sFu+zY/Bc3xsz 5bqIbEe8It64eNHGUIwP4x3g7+Qt/72OpEoLH9PfL+OiFz+E2KmeasjhFRO1NWZLYld8sNxGVpq yUGxalZkE58gGsTMiDt8XWpjn+mzqFEMUZgGKmAsRczZjTEWbKKfgYU0Q2Q+E/IMvXCqaBdOHqn LSjlQZHVHhbJBVrPFrwHHsXNkZXWG22EdZyy7JjyTBbhy7T+c+G9I00fs64kgalUG3DW/22ZrMX d/FEoyOS6KQMd2BG1PQT9kKjFqSraCyQ+ggDF66zs2lV8BLCDYrgPrGiEtGUcldn+n2HHhqpm4y oUmK9GeoOhqVp0pxaZnnFcy3oddxZloTEOvXhW0UAS5d6TvYXNkQ7aSno/2LOniriEoZVLbRFg/ gP9VAK28sueBJUGGwrg== X-Proofpoint-ORIG-GUID: wsTFjKsatboEZrC_tFdX7G1hvRpbWOpO X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX3Dl0NGOefVNh cJw3Ek/VdUagiQp9ZXdL6AOVg8Xvv9ZAwqUnBPJrTu2zH3er38jN3Rx6bKhh4NDIO+UDp2ZMDxb N34LkoQeYmbQD1AF85fHUoyib39gwc8= X-Proofpoint-GUID: wsTFjKsatboEZrC_tFdX7G1hvRpbWOpO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-13_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609130210 eUSB2 (Embedded USB2) is a MIPI Alliance standard for chip-to-chip USB2 signaling. Unlike standard USB2, which uses 3.3V signaling, eUSB2 uses low-voltage differential signaling (~0.4V) and requires a repeater to interface with external USB2 ports. Because of these differences, eUSB2 PHY initialization sequences, voltage tuning, and register configuration are distinct from USB2. Additionally, eUSB2 targets handle wakeup interrupts differently depending on device speed when operating in host mode. According to the eUSB2 specification, remote wakeup signaling in host mode is detected via different data-line assertions based on the connected device speed: - Low-speed devices: the host repeater drives eD+ to logic '1' upon detecting a K-state on the USB lines during remote wakeup (eUSB2 spec, Section 5.5.14). - Full-speed/high-speed devices: the host repeater drives eD- to logic '1' upon detecting a K-state during remote wakeup (eUSB2 spec, Sections 5.5.15 and 5.5.18). Since the eUSB2 PHY's DP and DM lines need to be configured differently from USB2 PHYs, controllers should be able to query the PHY type and configure wakeup interrupts accordingly. Add PHY_TYPE_EUSB2 to distinguish eUSB2 PHYs from standard USB2 PHYs. Acked-by: Krzysztof Kozlowski Reviewed-by: Manivannan Sadhasivam Signed-off-by: Krishna Kurapati --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 979b5dfd8353..555a022c8c0b 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -24,6 +24,7 @@ #define PHY_TYPE_CPHY 11 #define PHY_TYPE_USXGMII 12 #define PHY_TYPE_XAUI 13 +#define PHY_TYPE_EUSB2 14 =20 #define PHY_POL_NORMAL 0 #define PHY_POL_INVERT 1 --=20 2.34.1 From nobody Fri Sep 25 11:10:09 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 DCA2A3EEAC4 for ; Sun, 13 Sep 2026 14:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310471; cv=none; b=C4i2lkrUWAGaa6EvYdSq2eONedCM6rOo/BCxANL60XxatyA8QebzyABuP3UMv7Bi+DmTSAJz+Kbqmo0ggyGaSih7k4XJ9ly1IiRHI4YrPCdYme9Ibkz8Da84TzjhKOo+NgcHGHX9yJ58GFODuOSzP54/lqCK5Q+HUPUOZNKE4sw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310471; c=relaxed/simple; bh=Dx3ovNJlM9aS0KyPy/KkFqWuw6/wLLR7Yg/2GW2PrQc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RPqDuSdr6LrBF+1ozqUe6AIVBLRqPO5BUE0YQZOZF5/fBLTPDjNcxZl03QNRbv9FZ1E7LunTBj/Bhisr4Mg8thnzHDSKjyNJXr7B5FUi4UXVglYeAVM7xJmoO/1qg1sytNX7VxVuDN1vICWVyof+xPzGHE+CkEh6dlPBadASeZQ= 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=KhCZqfH5; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KLxBNbJQ; arc=none smtp.client-ip=205.220.168.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="KhCZqfH5"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KLxBNbJQ" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68DE00Uq2786237 for ; Sun, 13 Sep 2026 14:41:09 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= x0uly6JHLnN++DMu29WEaZNFPjIiWYw6gQfnWNoZwd8=; b=KhCZqfH5vXYGq+r9 YaIgXXuVEHTOu4an/u+6WgHN8AQQ31XlHdE9KN7JDmbfoNvJzzHz5y8o7S2vtnIX P2ATiz1I5fdtN4jSc3fJNDid9Juv8hMzebrgFCuCFs5uKoHs75NL+m3K0eDsD5dg aJEJ9xAhcOzO4XsFIWmL5MfSIB78K+oAnkNHTDmw8JrNdMzVLax+/FyHXR7pu0fa 9GTw9zkJdUZr6e/Z02J4DlsgMJ8HgED8SA7tWdox+c4G0emNviGVg4791p0jwkCe H/5KWenF/FQ8kU8xNFbOz9ixzCI5KybUmlN9EdzLIVnHtsB0B/5QWXBC0EX3QGmC qZRbyw== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmy9cbh6f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:41:08 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cb6cf425e86so3051160a12.1 for ; Sun, 13 Sep 2026 07:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310468; x=1789915268; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=x0uly6JHLnN++DMu29WEaZNFPjIiWYw6gQfnWNoZwd8=; b=KLxBNbJQtEob6ypPifc8lhj2eQVNXZUr3tDa8lgvCWPqeplJR7wgCzvzxPcJ5tN6LI NAE+4cB/IUpSQ3e5XmVo3SiONR6/PzceMMviXDCF3g9rz4SW2lmIpopU5v2fuQIqVL7s ORYNYth6nsdeN2nBfOBBwn3FL9TCE9yCY3+IKTgUvJCuQWICEV/gkaXNm/Hhj1qTKp6G WyjX9Wom8g1RJJnws5WlxMt2LpbVfxz9FJ1QVCif6XX7zWBvGLcmemIhD5I5kIcLYuNn BKEXhxN7vjIhXW7iXLYmaofD+Ek1FyETzNU6UkNrrQbLooz5ymUyKTSDLFwWWMVT3POJ lPUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310468; x=1789915268; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=x0uly6JHLnN++DMu29WEaZNFPjIiWYw6gQfnWNoZwd8=; b=ojPhwu9Fpu8KJZzQMCklGzmKCNv+zQvSwjm22jnb+BWWK+LaUbYSwp9prgs9omr3Sa wokMNXjc4jbGu+JSPt8nEZmr/GWmVg0x32yX4QPTKTcxGq6y3PjPjAooNnXg91dV5Lyl zN9A6NmSqger9e/RQ1mfvkiYl/qvkj9ZWvoaTmSm6pV0r6rObsWCD5fWpN5dD8F3OIZV +vUEahulNO27LBke267lWaMtDQDskX4WtW5UorKpNwTVNXjmVGMhl0ptM5yNeKQKa2lx yB3fwzzBG4XjdiTdkxTr2BX4TUrhHVaLLIYEi4J2goPvEL8Z1udmleNBrY9rYrd+AYvT Fdpw== X-Forwarded-Encrypted: i=1; AKwUvBzklvV+c0kFHQvL+E4t3lI46fClCHB6KRLi1k0YYfG4zUfxyqh2I+pXvQTC66y2zcfVwBJ0OV+wq1qJRws=@vger.kernel.org X-Gm-Message-State: AFuF++nzazEeLEMev33dPWkTB01+ivFEOYPjLJhkuZhAIxP7d0DUSjIo 0A/ayEJEyyZC+zvN6oZtjQ+z5ujjcJF5Zgma379lVM2IlMABfRGoa4i/8GpAZLYBv2V6UrDIVsC 3N08zfHSfUs4+hT1cJBmanlW22myT7Y1hmYhSo0hK8u2o9LpsDoEJ3u5QeA//A7L9Ve8= X-Gm-Gg: AYBFou1jMmjwf1D37EJARI9W4RfJLiFoNVi25UCi3XU+oQKcRJH6htp22ZquyAo9kn4 Iio9+rR/XW3y4YKqmOFmGul7rhdYt48y4s4lZBdmPBck7Mw2q/0vxtIlvijslK70MRQB7+A/kM0 Nx/PZvTlZWY2jEePW1ZEIw9dkiWGFRkXa4s/wxyQcEBvZQPvir3Hs/C1/LsMSUvYnN+ChU2P7Us UowGEmc6xaNA/Nx77YAsLzhqh+aSggEqp9ijEQMCbHOMYVRAqv3UM4SqlenmODuJHhH6qXL4NbQ no9f9/LzSGA4hJzwJfoZwAGdIayDhr+QhkHw9YDwQOv8LFwnBrivqsCxSKjzBmy7u4/sEhE8VG6 5fFt//5PUkwmjI6oRPEtDb8Hn3qFXMwB1QZp3Uf30iZwV6F1G3PoRiRY9fXiSclAddG1njg== X-Received: by 2002:a05:6a21:32a9:b0:3da:e7dd:45d5 with SMTP id adf61e73a8af0-3db0e485c2emr13344570637.20.1789310468289; Sun, 13 Sep 2026 07:41:08 -0700 (PDT) X-Received: by 2002:a05:6a21:32a9:b0:3da:e7dd:45d5 with SMTP id adf61e73a8af0-3db0e485c2emr13344493637.20.1789310467806; Sun, 13 Sep 2026 07:41:07 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14382741839sm2904705c88.6.2026.09.13.07.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:41:07 -0700 (PDT) From: Krishna Kurapati Date: Sun, 13 Sep 2026 20:10:45 +0530 Subject: [PATCH v8 2/5] include: linux: phy: Add phy attribute "type" and associated helpers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260913-eusb2-interrupt-v8-v8-2-0f505b9c394b@oss.qualcomm.com> References: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> In-Reply-To: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Krishna Kurapati , Manivannan Sadhasivam X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=2358; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=Dx3ovNJlM9aS0KyPy/KkFqWuw6/wLLR7Yg/2GW2PrQc=; b=aD1Pl6wzsZlO8t0tJjp6+liaW2VZ55woEjDK4YgYpMdoEpojaDpkr2nuVijBQkLErVGWgXfUT r8s3M5rlZuLDT4F1E2SJuiyt0DwY4f+4hhOK9s1OzuzyzyemFuCuqXf X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX2uLGacl6m0ZA jl3FV4EhmJmhcCvRERSHJlA5GSPcNMCSgFcAXDdHLIYCClJqcpJpvE80iYQAq7Iqnfez1Gq/v1J +SW6Yz2+GXkRg+vbBYR6t2QyzaCjdvI= X-Proofpoint-GUID: XcutQ0vAvD_GBja7j0ix6qLchEna1dGK X-Authority-Analysis: v=2.4 cv=BdZNQbt2 c=1 sm=1 tr=0 ts=6aa6b604 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=jIQo8A4GAAAA:8 a=EUspDBNiAAAA:8 a=YrurubeZKOWHlXb_luAA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-ORIG-GUID: XcutQ0vAvD_GBja7j0ix6qLchEna1dGK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX4nS3F6K3Y7Yc xFL6/5HVOPJzSJQ8o++W7f3ysMLE04ILpcglZKFf6M74uDjdKXrJp/pkPPFgryYUVeObGEq6TXG 0gO0O/GhF23wEqZhGUN34kJhX1BnJtsZ7Mh7gwLTzHfocbyd2Oa7nWFLFgNZzCgqxBxJX8Fdcpz Q8+47upqgrtw9dDOLx5h/9d93Gm6fn+Q4xI1EzYWzLAsvy7DoRE17Or+z7AfHRzV9c3eOQJmtXR 0wCgnmlmgg7Q01XaG5uZus4wbOV73WRP6ss98vB4Rnzhft7ilxpCAsU0PCkTUD1QwiVrmbGcTCj kYPGvpUNwi1pIs22Jeb2MRFdkfy5hFA4BwDpLbu3HdWpKf6nRHJqvHnW4N2Td54aUbOV+ac+voD k8DWZk5GLfYdGVZb4LSYu//syj/TZYmk7Z8fdGbKK7KR+da9ZraktkUKkSmGEPmd8r7Q5Qk0Ffo A4SOAV1aoq7ESPSOmHQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-13_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 malwarescore=0 clxscore=1015 spamscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609130210 In cases like USB High-speed phys which can be either USB2 or EUSB2, it is required to know the type of phy (rather than the operating mode) because DP and DM interrupt lines need to be configured differently for each of them. Add support to cache the PHY_TYPE and add the following helpers: - phy_set_type() for the phy drivers (like m31_eusb2 or snps-eusb2) to declare what type of PHY they are (in this case PHY_TYPE_EUSB2). - phy_get_type() for the consumers (like USB controllers) to query the type of phy connected to them. Reviewed-by: Thinh Nguyen Reviewed-by: Manivannan Sadhasivam Signed-off-by: Krishna Kurapati --- include/linux/phy/phy.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index ea47975e288a..038c2b58bbe1 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -21,6 +21,8 @@ #include #include =20 +#include + struct phy; =20 enum phy_mode { @@ -152,11 +154,13 @@ struct phy_ops { * @bus_width: Data path width implemented by PHY * @max_link_rate: Maximum link rate supported by PHY (units to be decided= by producer and consumer) * @mode: PHY mode + * @type: PHY type */ struct phy_attrs { u32 bus_width; u32 max_link_rate; enum phy_mode mode; + int type; }; =20 /** @@ -262,6 +266,20 @@ static inline enum phy_mode phy_get_mode(struct phy *p= hy) { return phy->attrs.mode; } + +static inline int phy_get_type(struct phy *phy) +{ + if (phy) + return phy->attrs.type; + + return PHY_NONE; +} + +static inline void phy_set_type(struct phy *phy, int type) +{ + phy->attrs.type =3D type; +} + int phy_reset(struct phy *phy); int phy_calibrate(struct phy *phy); int phy_notify_connect(struct phy *phy, int port); @@ -393,6 +411,15 @@ static inline enum phy_mode phy_get_mode(struct phy *p= hy) return PHY_MODE_INVALID; } =20 +static inline int phy_get_type(struct phy *phy) +{ + return PHY_NONE; +} + +static inline void phy_set_type(struct phy *phy, int type) +{ +} + static inline int phy_reset(struct phy *phy) { if (!phy) --=20 2.34.1 From nobody Fri Sep 25 11:10:09 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 B99DD3F1AA2 for ; Sun, 13 Sep 2026 14:41:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310476; cv=none; b=bMzBGiBj5cKeYILI6dS/JQC5NBhQSY+WOcRjJ7sp2ngAdKd2BdNaTjF0WZ8lveEoBBKDkh1PeUjeVBY8t8wAWU07zK34eCljz9GqtkRA7ypfthT/OyvycHszjggWiN6f6fH9j9w6KOP9ZHA4OIUqWqDVS6vhlsvYmHSRJwBCM64= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310476; c=relaxed/simple; bh=9HkS3wxfvgP0/0gQboWN88Ps/r7tlaD0hKV9cwObfFE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SjMN3fhI7B+FDxOEv+T4H3U+UX237BDRcLC523hFojB8x3ymaVSWbf8LfJ/ERvImep8WMbMoTVGhtOhfFwoWkVr3tX0/dKGzo7kbxRRc1DDiIx03yFek67AzkQKFlv8+lgX8dpBJweh+4z3PZmD7WXP3Pn51j4oWnBBlHs+bs14= 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=Eixe3jv3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=TANXNwpe; arc=none smtp.client-ip=205.220.168.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="Eixe3jv3"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="TANXNwpe" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68DE06ds1434547 for ; Sun, 13 Sep 2026 14:41:14 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= WmdRTxeOLyf0Pab2r9UoJT0vEIVmxiuf0Wt2l2dbmoY=; b=Eixe3jv3QRj5J4NM nA5JvZ/2Wb2ZuNnK66xKiCFeTYDXDKqX4atyKEAjplyCrFwb8XoX4JI5RmCTOOGS QN6CJzl4HOG68ouxTNzOTdgJELe+vvude9CGLTQGnbp9NyF5eEgT4nP3DAWxGcv8 dJeMA3y7xjgxRf/Kq3Ewqhyf/a7LMoJ35snI18+yJL8qUl/W/jB1/1TuixUHMq9C BUG9B17AJoqerCtuX3WcptLQro2dgZgVX2PfAFP1x3kY4QSiO0h/ZH79Y2dS3sx4 mjtyYNLkaNq9YRRtQyq8AdnddNj2GedisAWeO4ZggialQfZOZaW3HG4Rut+y/aUa fUuSfQ== 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 4gmygd3h8q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:41:14 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-38ecc48b3c2so4030356a91.1 for ; Sun, 13 Sep 2026 07:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310473; x=1789915273; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WmdRTxeOLyf0Pab2r9UoJT0vEIVmxiuf0Wt2l2dbmoY=; b=TANXNwpeKvDG2eQhJEycO+8gNtkr3ibUF9D/xbQNaX/FJT3G9EO1cXt5VoPuPp4r9t 5Owd7Hf+NrD4jVboslqKctQOVNosaENiQe0+7KMSWcTOb6+kalMjGEm+jHde/d6ckAg/ 2k2rZXYV6qdIUfqsYkQ/OGfriJiCoqXLhvVRAp6S9ZDVNca/oXVd3xpKuoYuIdqUpElH 13sIZHPBomJP95aqfxwDAOa1FSfpRcHK97mkzo/ahhRCz6vshxdDoG3mselY6lG+mozs RcazHiBFZoHEWdnUAh1EpdTdhite9bB3ef37jADGwvn3f0xpbQyuBiz8CFUkdIk+uwSB 99Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310473; x=1789915273; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WmdRTxeOLyf0Pab2r9UoJT0vEIVmxiuf0Wt2l2dbmoY=; b=KjYRKnCp6VmWNoYOE1NFYZVOOvD6NHUENVc6gtrgWny+fiQEAarWEvV40Yi65UMs62 l/9Qv73SLu2qq7xMGxe1ZEDIlsURh34ZqtahBl0KpoNVkVBbmp/z4Bw3+Vfb9eCShG5L z4CMIgZi9qryM/d+kB2jDVrtQFGRhtTVUVBSnpXRIodxSxa+SoNWk1mDpaShSfAjTvzR 9zF2yTELZzsE+JIKI9vIv/GlOt4QEn4/cAPUtzhGtMcFtdbWvBHhcXiuCqUBs9HtfhTf M25HtrwGXS4ERhXEhQFaP4tcNFPopmM6hlkvJgrL7DoaOla44Gz5kSL06zKr4NgGkt47 D3+A== X-Forwarded-Encrypted: i=1; AKwUvBxrgU0nRO4xsRdi+YvE5QHw3WLhlcudafjrtJeEiQiofvCxXYqaSOvGYHaXiiytIWPdBdqp32CrnlD7vkA=@vger.kernel.org X-Gm-Message-State: AFuF++mxO2HFcmHfkdJH5klIyZgstEmzS5CvTJ0c+ius5evaCajsoaq+ Lipe6Ay/DRDP8fhATXPd/7BMd0YokAs3wnE4uOw4FEtQLvQVZxbgFNWVYAJORkYwsumwn6AYnEU Pa09SH8NOR0O8bykrHN/CaaRI8a/Usjf3UBMbcNZbFCn6EkmIYyjdWrEIRi/jWwFfrEA= X-Gm-Gg: AYBFou0C52GhqIUcIZeECIrIPARsMHXnd+G+QWViqYCPpijEhqkWklZEgraI4S+tfiK L7LBlRuL/WVUhidsorIbb++4/K5l5Y51FOibCB/KAQNYh9LjwsnuwtO7ORRj/ZNBBiPssp5jsGU 7DvHnKEwP59sz9fz3NoirDfItn1Ut9wI7xW8IrTExEQdeaPjNV1mwQZUhEEdYLFxes0dgTOzvOs W8oVTRdhlz6Xyrz+AgEJXSkhYu+nRTost0uTYKHnukNCzYwv4PIny+AhUG/HKWuqMdI/UU54oEc cDCCivynfkbq0mBZ2M8HjZmXCai3Uc7M+0uJAp1SA5m9YRR9NlUQtXu3F0oh278Eo2JkVa0rVgr hBA0P4x0Vwn/RVegYNTHR3Ss3jseEpzrWHoT0mLpjYfCTLBMn136OOASW2GKyqAfO0PQcBw== X-Received: by 2002:a17:90b:1d51:b0:38d:b36e:9813 with SMTP id 98e67ed59e1d1-39dbc1d770emr13606712a91.11.1789310473425; Sun, 13 Sep 2026 07:41:13 -0700 (PDT) X-Received: by 2002:a17:90b:1d51:b0:38d:b36e:9813 with SMTP id 98e67ed59e1d1-39dbc1d770emr13606659a91.11.1789310472987; Sun, 13 Sep 2026 07:41:12 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14382741839sm2904705c88.6.2026.09.13.07.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:41:12 -0700 (PDT) From: Krishna Kurapati Date: Sun, 13 Sep 2026 20:10:46 +0530 Subject: [PATCH v8 3/5] phy: snps-eusb2: Set phy type to EUSB2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260913-eusb2-interrupt-v8-v8-3-0f505b9c394b@oss.qualcomm.com> References: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> In-Reply-To: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Krishna Kurapati , Manivannan Sadhasivam X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=918; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=9HkS3wxfvgP0/0gQboWN88Ps/r7tlaD0hKV9cwObfFE=; b=hFTLP85/zIcgbaptlBh/BmvV3xuqMw0s+k6Ph6T8oM3NL+PnmNbm/0eEaDDFGvOmPncgOywup G2OVf7ppvxKAuafSuanXxZkWqHK9043pYh8jPNfg8ErIs729ddDDvQo X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Authority-Analysis: v=2.4 cv=RY0FmFtv c=1 sm=1 tr=0 ts=6aa6b60a cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=jIQo8A4GAAAA:8 a=EUspDBNiAAAA:8 a=ugjOiUgvsQrqGD8bgbUA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfXxskiEjSldpID VkM6BNe/8TuuQ12PeRZJSxHfPQJJYv7xP78eXWTHTyGPNZjqwzG6Va3LqSnQTKSCc47811I9xI1 eVSIqfy0D0lr7GWz2DV7yazeWsP3FqTRhxiLByeWMDDrs78jprPb9Zqe28iFzlCXxWDbAqgLGpq hvPEz2zLHxkHSKzF2IQzrgPbuGUzEVvNGVtrFXbLmUVKGKM7Z1pRdN1wg0pPijTR9dVMENof4oP f6+49rWaAZ97PjPsgA19Z/WgJttxziDNxlT6b3raT+14BIM+P6VnyxOc4rmUIJZG6N/bds25FvY MXRrIwLvYE18KtIPCi8gI0q366vG7TEtkgDKiMxE9S7JlapwSyNuG4A4vqpkvHQzQvqwV9/EGk/ 60KbWS/Tu1hYZsEq5Mksc3N5x2uZA1HhvcNOh2enieYLUAOkE3BaOLqdmkg1gRFwFJChpcldqki jd01TYv04iPdB9Quq8w== X-Proofpoint-ORIG-GUID: P0mezRAyR46lnMdFdT0jPilBxiH8Ynyo X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfXw5aGDQh55x3e 1rQgYaHwnGt2bG5B6uadR3OnbklhCJ1xq7SrQL4n8wEzYbk2uXFvJkqKG5KeiGU4Lk6QN3o7FXQ LrrsHZTpfC+YxNLjnDcle665pvlFiRA= X-Proofpoint-GUID: P0mezRAyR46lnMdFdT0jPilBxiH8Ynyo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-13_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609130210 USB controllers like DWC3 are agnostic of the kind of phy (USB2/eUSB2) connected to it. Set the phy type to EUSB2 to let the controller know the phy type when queried during its probe. Reviewed-by: Thinh Nguyen Reviewed-by: Manivannan Sadhasivam Signed-off-by: Krishna Kurapati --- drivers/phy/phy-snps-eusb2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c index af4fa17ac6cb..ab405108c727 100644 --- a/drivers/phy/phy-snps-eusb2.c +++ b/drivers/phy/phy-snps-eusb2.c @@ -596,6 +596,8 @@ static int snps_eusb2_hsphy_probe(struct platform_devic= e *pdev) return PTR_ERR(generic_phy); } =20 + phy_set_type(generic_phy, PHY_TYPE_EUSB2); + dev_set_drvdata(dev, phy); phy_set_drvdata(generic_phy, phy); =20 --=20 2.34.1 From nobody Fri Sep 25 11:10:09 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 C0E623F0777 for ; Sun, 13 Sep 2026 14:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310481; cv=none; b=GijsJL2hsyVHEzG3GPfQIGiotqzGvFXdm7++5VPeMhmpwB+j3VTldBCVHpp2tez3Nk5M9P3VgyYuzY1+nzN9AtmlvQOSKB+0h0TpwrH8ZG/+MwidxcZAzBIwVZuokC8ViXjwBpUT7jzusmB1wC761roSTMB8aDeTXfj8fd1Ywxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310481; c=relaxed/simple; bh=jS28VZk0Rau0JqBMt8Al/jaaN4+ZOI4m8Zl8cLC3QjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nPM/SdCXaFuDq15MOvl4s8z51Kd4QSJwNo8Xjqk+l0Oer1bJWrVT/0jpRSfZl0/EZAl8RAZfj+E7VB2O3/msP0kw0/lRLqmCb3uDrOiS2zYB9MNf/SeZ5fHrBWfoyuKn8sxZbLYgz0S8zeG9Uf6T0YUBo5L33Xzmt5knMXIkaK4= 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=Uy8yQlUb; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=El1bFp07; arc=none smtp.client-ip=205.220.168.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="Uy8yQlUb"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="El1bFp07" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68DE01af1200137 for ; Sun, 13 Sep 2026 14:41:19 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= PhPA2j4mqcFAfYzRHFfpXK69gK6PZSz1XQZ4NKgDFZU=; b=Uy8yQlUbf1gUF+iB +71bPwglz9o2s031kIPR1csnonmNmCKJanV+Y+744AgEEMX/bnT/MyATTZ3QLlWR cBQpOTYOdJkmhstIV9XXPHY1SxKJgsbdlusXQyWMaS2ewBTCJmhuz5E1PGnj0HBe QuNichSDYBCAA2Ce5XEYTQck9EdcLtFrQr8bdd31IKiV8thAjszExmDlH9YgNcoP gqhT2Ej3s9zzw8drIoBIF7B8PwZeZJgEa5ZNlTT+P4w96iZwgMWtUEfAWZ495ink SD50lkv9SnleRQHvYxh4osSUyeI+ZGBS0pVCOJ7Mf4uGrjnkilVj1J7ux3hZxcS1 7Xm0bw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gn018kc4a-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:41:19 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38e7ff7b375so2949337a91.1 for ; Sun, 13 Sep 2026 07:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310478; x=1789915278; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PhPA2j4mqcFAfYzRHFfpXK69gK6PZSz1XQZ4NKgDFZU=; b=El1bFp07kqvY86/mrduYdBySpudcOadM7uPiC4id5KZUXYIpJQuMgL/s8x/nn8u+uN tszNdoivUXGWNrdlqikE9FDe8n3ec+X8iTEu8pocAIZRMhQtp1He0S+8sLnv3eyWFEIZ DcV4Dg/+Iyn6dbAPLb0dOXo2+C+hTD0jV6jjgJhlNN7iA/yWoiSluIZps8qgL98RcEKg llmBrA/GNLiq00D3Eg4GNHu+IvGN2CRrGYFXpdimiof6RMU//GnvwDmnQ9HcjJPLe2F1 C0m0FtDjCtMCmmfDNeL9Fmxo096qp+Eq6Ljk+NJgR2Dv9wzs0kaLOyz0JoXmUy/2JdZa Wqsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310478; x=1789915278; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PhPA2j4mqcFAfYzRHFfpXK69gK6PZSz1XQZ4NKgDFZU=; b=tMc5qcmxPbMkGAsIpA6rwDq32v1KuvBBXFMjQem5voRWKF9KE2glIUfeqwpRAoMW2o MHuNn+PZdl+a98yUabqwF1xiuOqjCOYt7yjABGd0VjRv/ZNx3192VfxO2Xi8u3WOHdzn 9Wizz9OCy/3nyLuEZ3SmVdsIBhKzkBBdsaYOjrx8pPu6aysLSIUkzVTHGnjlzR0sAE6a xAlK88htWaUD5RGy9ymIPJFiGS+FQlYi3+pl7foZLF5vBRmfzJMhlAEfwUZf7cpzVfXQ RC0/yd2zvBvS2nimxG2SHUOyaNCtMcid7f9bHkL26T7t+xvcok7ZxuNgcpVS3NWTXw94 /Wlg== X-Forwarded-Encrypted: i=1; AKwUvByjvaEGCoeDFWfgtjQX8yVhD6pHdIKKx4HDPyMoJnZJs0RPuzgID0oqNlGivzULrq2fYsbIScUgEO1xUzo=@vger.kernel.org X-Gm-Message-State: AFuF++kG5DAgxsa8899jCfe2CWlzaHFY68DXyTUlOsLr65R77Uc2YDj7 xPHoEIpa2dQiEROmoIR2BfQUtTLVUjDawWiUd+MN3UGN2AAXTNNVXMMQ0gSoi266/+tcfkINtuX Nkv5reMjX6+CZ49BdaPyKY/AjE+zYJjK8O6KdeGt+23k1YyzBO06aHkDHxgIYWdvwMy0= X-Gm-Gg: AYBFou2eoStoQDXwpuf2Ap6395zcFSTpXMs/5C8skyiedCjQcM3fKYxWbjPo/p7VzY0 /GjypLGTcBwDQFrTuzMUHQ7O8CXfkPo/XMUSoPBDbaJuZLCY+Ae05mfZT+3BlCzQkG12PRg27KL dRzKTcs1/FfaoEz5kePO6A7Z/f5Lv4sLNzQqZgJxKMv9D/LuV9rC+5G/YF11a4iNk+kO4f01rWd MHFpXiO9SvHRPdqJShVGgMtg1Tw/zTHkWoY0GuBBm70+SkIkupGRslY/uKRMuz7g1NnwUvkihq4 /kZhBzsbry8KAdnm5JnC6HbriwIJCvjNoG5FlhNhDcHFw1aWN8RZ1eOrOLDibYtGG7Wo+itIFf+ mZ2SoBjMcCBSSPQv+ZOaJ3e2DIzD9g4RzKIu4etM8crtEFDkidTQGun1dqZ8drE7KxGu4Ow== X-Received: by 2002:a17:90b:2f03:b0:398:c3ca:1ebc with SMTP id 98e67ed59e1d1-39d9c21b37bmr23537016a91.18.1789310478505; Sun, 13 Sep 2026 07:41:18 -0700 (PDT) X-Received: by 2002:a17:90b:2f03:b0:398:c3ca:1ebc with SMTP id 98e67ed59e1d1-39d9c21b37bmr23536970a91.18.1789310478080; Sun, 13 Sep 2026 07:41:18 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14382741839sm2904705c88.6.2026.09.13.07.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:41:17 -0700 (PDT) From: Krishna Kurapati Date: Sun, 13 Sep 2026 20:10:47 +0530 Subject: [PATCH v8 4/5] phy: qcom: m31-eusb2: Set phy type to EUSB2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260913-eusb2-interrupt-v8-v8-4-0f505b9c394b@oss.qualcomm.com> References: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> In-Reply-To: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Krishna Kurapati , Manivannan Sadhasivam X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=1075; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=jS28VZk0Rau0JqBMt8Al/jaaN4+ZOI4m8Zl8cLC3QjM=; b=p47Uw+B6PdI0txbmU/WyZOWDfgwfIDM2jiEHu7HO4vSu8Ia0F8aTmiV5xA/VOh5A1Ijo+xmlf VOXJgMG4uwIDLZGO0TddxHW2apN7kUokmOu779N9gen8REScYeh4SWa X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Authority-Analysis: v=2.4 cv=c4g+0h9l c=1 sm=1 tr=0 ts=6aa6b60f cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=jIQo8A4GAAAA:8 a=EUspDBNiAAAA:8 a=2OgWd8xqfRB7MZEj-yQA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX2KKQT3mW+t3j TWuJFFjA02DkCo4blhAcs7fAVozaEFHJGp4al37LokeFCXcc7TiXlyHQ0Wl5MwiPHNjUzQ2xB3j mbOTxzKyt/e6hHkIgq8w8KYnI+LbfMA= X-Proofpoint-GUID: vzuTNHKumJ9yfI4ohsxpyuw6-ZovAbVq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfX/2qJqNullGz5 oLt9pinpG/oRj7Ngy74PWdzaBnbYG7LR4eYl6HKkWnWIuhVlzz3XMtEAw/wIGT7Wdo8y6cIjwgr +Ag2FgYu00C8hGvktD+Al99nsgQpSTdbhuDNXo/JeWOCvO+EqCFO9+tJjcIdAiZQV05USpOG4cz yw+XBj03JCUA2Ji5o0RJ1M7m//SRAcEs9aQIG64nnQa4i+0iIXUbnx1WtHKBJuJDM5+WQI8HlFX WnH1FEhYKsUcp66xqTvtVrwKJV9vlKiNXhG2LtqIfr7hwaa5TZq4sltuEoeBW3u3PbwhbX77WQ/ T0wL7ajNZ/kEEHx+mc9lB9RKCfRoGMT3XZhE6NTnnylevsOqk52mStJPaWFngGeQEQKl7paAgYy d8N805UlOzDsAL3wKJEtVrlcIGZZdgKz/+eGUwVF9J5DCG6aVtl3ZZKnPKgW9cRxZ8AYN5By7PQ BihzaxvRo/aWpozjkzw== X-Proofpoint-ORIG-GUID: vzuTNHKumJ9yfI4ohsxpyuw6-ZovAbVq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-13_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 adultscore=0 bulkscore=0 impostorscore=0 malwarescore=0 phishscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609130210 USB controllers like DWC3 are agnostic of the kind of phy (USB2/eUSB2) connected to it. Set the phy type to EUSB2 to let the controller know the phy type when queried during its probe. Reviewed-by: Thinh Nguyen Reviewed-by: Manivannan Sadhasivam Signed-off-by: Krishna Kurapati --- drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-m31-eusb2.c b/drivers/phy/qualco= mm/phy-qcom-m31-eusb2.c index 275df38256de..72fa71003fd9 100644 --- a/drivers/phy/qualcomm/phy-qcom-m31-eusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-m31-eusb2.c @@ -277,6 +277,8 @@ static int m31eusb2_phy_probe(struct platform_device *p= dev) return dev_err_probe(dev, PTR_ERR(phy->phy), "failed to create phy\n"); =20 + phy_set_type(phy->phy, PHY_TYPE_EUSB2); + ret =3D devm_regulator_bulk_get_const(dev, M31_EUSB_NUM_VREGS, m31_eusb_phy_vregs, &phy->vregs); if (ret) --=20 2.34.1 From nobody Fri Sep 25 11:10:09 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 C4BF03EC81D for ; Sun, 13 Sep 2026 14:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310486; cv=none; b=VVKKhnQoAgdB05fvH5D81rmUc6XtmnlEbpWwZedtaqnBChB92JgrCMACQAPMjA/9UnVRsy6KlRQp64lfEt3Z5ZWlnhGtm4NDmK64H5j8MTop7gHn708dnTe3gjhnKKAxJugBQpHir2Yf94xquG2yK3VI79o7ONug20hB/pmAFTA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310486; c=relaxed/simple; bh=ZxUNAsUxlczNYSQtVpJk4jpYB7XXII4MY97qOtw6FW8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sXH1k482aDbgdtRRtjNzyM0cJEgVCeaWnyt0n3iZGoRVMDpHtAf3v9Jo6xnB0G0ULzltaQvme0ZDC+2e5W1tXtKN7VfNtjb5t1OmRf6CTchBL1urf6TXeQNv7puNiEvo8Sux89u0o0dRproalAylc20aSYnMGNsppIW2oYZ6vyg= 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=NGS6pZ/D; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=GRifNu10; arc=none smtp.client-ip=205.220.168.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="NGS6pZ/D"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="GRifNu10" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68DE03Vi1952253 for ; Sun, 13 Sep 2026 14:41:24 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= kYFyJ1F4SKsDsBiyEupbuIpq62nd+4MH7xdAqe/Aqkc=; b=NGS6pZ/DhxHc0z3V jVMxrLOMYQDK+o9rec23ltfYtrZJlknnLIj4jAR3/PpXc2z3xxDYK56a4SIsjw1A Wr6FP4CB2Bu/LoqIjfzTK+eXQrMam6Ll1Kuz/H+7oiB+2THI8QQSnABaF0kEa/tq uzi7EfmAdZ0sMg7EyIXPiiDB+PkZVB87Rs/ynqWoQDaowiOTDqPOUCNcX0JkrHeJ JcbBgCD0nZscs48RA13X2Le0JW24SF8H6DbuHoRGCN0V48Q639L+ru4RtWz6VhRi N1mLgdHUtrSw7LDrqi9AIajZliCcd069aSZdcQCIi5AhlqE9jL9pi+lYu4561H63 3eHs+g== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmy9d3fkn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:41:24 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cbe77d6864dso4092626a12.2 for ; Sun, 13 Sep 2026 07:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310483; x=1789915283; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kYFyJ1F4SKsDsBiyEupbuIpq62nd+4MH7xdAqe/Aqkc=; b=GRifNu10Q9qTWfC/AVpWOtvDExQosWRhZlHvuUjBsbIaXtxHgU5DIRIpz6Es835QZl fZ3MHa4VmYBcB0UTEbEYRLS7TY9MRM7pGZD7OIoe/auU/E0aO35/+/zJCqHrirbaWmdT 5goyghq7ZSuwlvICNX5943UK8gpQph/+NAtO9BEEZB+ZitUHFJBPn1QE9JXcB9OhTIL0 P+Jkji2ReWjQfarl+2cIuqaiV2IxIXwUTBArfHRo4OQ3nlonyZrDzjEcjdODlM/pTkZN eesGivEcbuR+SaYt2QtfSFtXP7Pk1QsDRg+FpkDon/ByMxnJssAWRlTZN7/X7P6IIzLr /7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310483; x=1789915283; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kYFyJ1F4SKsDsBiyEupbuIpq62nd+4MH7xdAqe/Aqkc=; b=IjtWCesU/conoZT2v3/xQk/u2yuZzXhaQAGMYv6JXg5xgA934ah6JDu7skQKddXJWn EB+0bm87ZhlQ6zGF0jTm62JMDoNLO4klPOzx6yJI72hrqOM82eSxGcKSfcgbr/CuWQ1w YRLzK9uuexoMZwc22dpAnxhORPYXtOWAL/jOJC+orDMEYvRyHpAgo8tUyf1Rcfwxg3kt c8uxLvtXAVaqGZKQRUP4OpUW6kQSiVsA+N8f/BhnEEtTQCTIrGF9jJnX+JtRVFK8ejdS 9wMCMXGifsdWLwdC77dw4Xi/jQFG55PxJyf6UheXWhOzScm5cINZuAejlC5FZDfcTSev wtJw== X-Forwarded-Encrypted: i=1; AKwUvBzmqsNNMAn0PmcOgoEJjzkhwcTyJFzpE9MlhVTdNcfwxkQ80+wy5bfqZPScIutVXEcX2r6WwzfwqBKuQDI=@vger.kernel.org X-Gm-Message-State: AFuF++nEgwc6fvpgxk0b9496Wk7Leque02SX+fjZ+Ki5mkLiKcNa+gOy QkrO5jMzyOrPOxVQkWWMNNUrW1QKeGsuC4aW0W83tFDeZBsMJXdQSemd5EPRcYENe0ZpML3PqjS vkrE9seL06yGjfprWPT3Nv4lpZCeOOHVq9X7SG/cgWSaLpws1ABUMlfuA8wLkYIFzenE= X-Gm-Gg: AYBFou2yeaGi5AR3UFpuK6q5IRXA91CmRuznaIWbCyc+I6MiCOEeqy0OVTL8VFy+ceT xJWzZmDEVEQPBxpjwREflRL7eHcifJYMk6oXMfb4GCvsum86JU7XQxmghldrpc6gcA5g+hv2vDa Z4X/7EgWGp5Gn79h91xqacVBC62IKFKg+IJxAtUHEis23KjvobUKDC3wNL4W0pgJjF95DzJB2Q0 HZXADhazqoGiyahYrsIAGv+hr+CjJSqg69zYI7+eRbv4kYMvDZlG7INVN1nDBkI9CSgR5JO7TmP PPCjZzWK4OO12W21PgHDCTcFhIXNqrawjBqxvZ43PpxvlDjoO/kq9Fom1N3badmzsJxszviT4QZ NSnxWfIrzaLIuOSPEQgACDTdqHtEvHu2vZqLJmW91BVyZFvXR/SIM/bw2ptgT4c+f9ZmkHw== X-Received: by 2002:a05:6a20:1590:b0:3d3:ae50:97cb with SMTP id adf61e73a8af0-3daed84ecc8mr27525210637.24.1789310483554; Sun, 13 Sep 2026 07:41:23 -0700 (PDT) X-Received: by 2002:a05:6a20:1590:b0:3d3:ae50:97cb with SMTP id adf61e73a8af0-3daed84ecc8mr27525141637.24.1789310483159; Sun, 13 Sep 2026 07:41:23 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14382741839sm2904705c88.6.2026.09.13.07.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:41:22 -0700 (PDT) From: Krishna Kurapati Date: Sun, 13 Sep 2026 20:10:48 +0530 Subject: [PATCH v8 5/5] usb: dwc3: qcom: Modify interrupt handling for eUSB2 Phy targets Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260913-eusb2-interrupt-v8-v8-5-0f505b9c394b@oss.qualcomm.com> References: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> In-Reply-To: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Krishna Kurapati , Konrad Dybcio X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=6358; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=ZxUNAsUxlczNYSQtVpJk4jpYB7XXII4MY97qOtw6FW8=; b=c0ptxnRcLFIuw80x/cdK3JLwkGCwrUNYbYwWIuOFuebHYUTSwpeeiXbZqx05wICe8gviolqNu EAKX09K78MoAZT2m75YoZKeITkyw0hW0IZXl48Uv7BKVB8WvSFzk8/K X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfXwVdU/QxU9g+o 81tnDexoNM7Z3Ovs7/B5VeqhtugozbmoHFbgOJp0V7UOc/rXbEwiQvw+T9wi/J8wpzZrwzYPcw/ T9Pugv000Ka6kUyoHPqylw4iL1/5awc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEzMDIxMCBTYWx0ZWRfXwhZSkuAK16gj GW/rymoZuyqstko0E4G1Tvg5JBN+sYmsvK1P49MFE7G8x6uLcBHzPZO9jGSnnWoixufAv+qLBPJ tirK7VEuYrP2Jb0SyyB3PmzZSLW4S8ljhz800Re56WqMIqo+CWMRsIssB9YGAkxF334tQu64Nfc xbnovUD6PN4hXtDjbOubq4SCo4bF44VvsE+ao+cijueG+KjU6RGlgEctnJ6v1QJzjBqWs6ctQ/o tuHjqOsxTjOur7WJhbdQ+TiSsTIwxSlr9RqcSLfERdHWgW1NtPr5xQpExy9vVIdRtVvjx36b7wx kqhLkixfy74aGoguZB4RZtSNL561CRWBgNEGUpR9BWXnlViOF48TEeQMobx+liVDo/5g5S+rpJ7 5BR00xlY1Fe2+/dAkfO63uNUdjMswD3BXpe0cTIzakoZsIpaM4W/C6nEpXAPWhdK9t32C7Q09IQ agthg3wxhN7U1d96QAg== X-Authority-Analysis: v=2.4 cv=IOSXmQvG c=1 sm=1 tr=0 ts=6aa6b614 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=jIQo8A4GAAAA:8 a=EUspDBNiAAAA:8 a=Rua53wt-LDCXJtC3cl0A:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-ORIG-GUID: 1iDL8s90BmN5Ezz5mevzPWu1G7nq4ZCs X-Proofpoint-GUID: 1iDL8s90BmN5Ezz5mevzPWu1G7nq4ZCs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-13_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609130210 eUSB2 targets handle wakeup interrupts differently depending on device speed when operating in host mode. According to the eUSB2 specification, remote wakeup signaling in host mode is detected via different data-line assertions based on the connected device speed. When a low-speed device is connected, the host repeater drives eD+ to logic '1' upon detecting a K-state on the USB lines during remote wakeup (eUSB2 specification, Section 5.5.14). When a full-speed or high-speed device is connected, the host repeater drives eD- to logic '1' upon detecting a K-state on the USB line during remote wakeup (eUSB2 specification, Sections 5.5.15 and 5.5.18). Since the eUSB2 PHY's "DP" and "DM" interrupt lines monitor the eD+ and eD- line states, query the phy type and configure the wakeup interrupts accordingly. Acked-by: Thinh Nguyen Acked-by: Konrad Dybcio Signed-off-by: Krishna Kurapati --- drivers/usb/dwc3/dwc3-qcom.c | 63 +++++++++++++++++++++++++++++++++-------= ---- 1 file changed, 48 insertions(+), 15 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c index ac68b4218b56..e6b6beb38fcb 100644 --- a/drivers/usb/dwc3/dwc3-qcom.c +++ b/drivers/usb/dwc3/dwc3-qcom.c @@ -85,6 +85,7 @@ struct dwc3_qcom { struct icc_path *icc_path_apps; =20 enum usb_role current_role; + bool has_eusb2_phy; }; =20 #define to_dwc3_qcom(d) container_of((d), struct dwc3_qcom, dwc) @@ -272,15 +273,23 @@ static void dwc3_qcom_disable_wakeup_irq(int irq) disable_irq_nosync(irq); } =20 -static void dwc3_qcom_disable_port_interrupts(struct dwc3_qcom_port *port) +static void dwc3_qcom_disable_port_interrupts(struct dwc3_qcom *qcom, int = port_index) { + struct dwc3_qcom_port *port =3D &qcom->ports[port_index]; + dwc3_qcom_disable_wakeup_irq(port->qusb2_phy_irq); =20 if (port->usb2_speed =3D=3D USB_SPEED_LOW) { - dwc3_qcom_disable_wakeup_irq(port->dm_hs_phy_irq); + if (qcom->has_eusb2_phy) + dwc3_qcom_disable_wakeup_irq(port->dp_hs_phy_irq); + else + dwc3_qcom_disable_wakeup_irq(port->dm_hs_phy_irq); } else if ((port->usb2_speed =3D=3D USB_SPEED_HIGH) || (port->usb2_speed =3D=3D USB_SPEED_FULL)) { - dwc3_qcom_disable_wakeup_irq(port->dp_hs_phy_irq); + if (qcom->has_eusb2_phy) + dwc3_qcom_disable_wakeup_irq(port->dm_hs_phy_irq); + else + dwc3_qcom_disable_wakeup_irq(port->dp_hs_phy_irq); } else { dwc3_qcom_disable_wakeup_irq(port->dp_hs_phy_irq); dwc3_qcom_disable_wakeup_irq(port->dm_hs_phy_irq); @@ -289,26 +298,38 @@ static void dwc3_qcom_disable_port_interrupts(struct = dwc3_qcom_port *port) dwc3_qcom_disable_wakeup_irq(port->ss_phy_irq); } =20 -static void dwc3_qcom_enable_port_interrupts(struct dwc3_qcom_port *port) +static void dwc3_qcom_enable_port_interrupts(struct dwc3_qcom *qcom, int p= ort_index) { + struct dwc3_qcom_port *port =3D &qcom->ports[port_index]; + dwc3_qcom_enable_wakeup_irq(port->qusb2_phy_irq, 0); =20 /* * Configure DP/DM line interrupts based on the USB2 device attached to - * the root hub port. When HS/FS device is connected, configure the DP li= ne - * as falling edge to detect both disconnect and remote wakeup scenarios.= When - * LS device is connected, configure DM line as falling edge to detect bo= th - * disconnect and remote wakeup. When no device is connected, configure b= oth - * DP and DM lines as rising edge to detect HS/HS/LS device connect scena= rio. + * the root hub port. For non-eUSB2 targets, when HS/FS device is connect= ed, + * configure the DP line as falling edge to detect disconnect and remote + * wakeup. When LS device is connected, configure the DM line as falling = edge + * for the same. For eUSB2 targets, the lines are swapped and rising edge= is + * used: DP line for LS and DM line for HS/FS device detection. When no + * device is connected, configure both DP and DM lines as rising edge to + * detect HS/FS/LS device connect scenario. */ =20 if (port->usb2_speed =3D=3D USB_SPEED_LOW) { - dwc3_qcom_enable_wakeup_irq(port->dm_hs_phy_irq, - IRQ_TYPE_EDGE_FALLING); + if (qcom->has_eusb2_phy) + dwc3_qcom_enable_wakeup_irq(port->dp_hs_phy_irq, + IRQ_TYPE_EDGE_RISING); + else + dwc3_qcom_enable_wakeup_irq(port->dm_hs_phy_irq, + IRQ_TYPE_EDGE_FALLING); } else if ((port->usb2_speed =3D=3D USB_SPEED_HIGH) || (port->usb2_speed =3D=3D USB_SPEED_FULL)) { - dwc3_qcom_enable_wakeup_irq(port->dp_hs_phy_irq, - IRQ_TYPE_EDGE_FALLING); + if (qcom->has_eusb2_phy) + dwc3_qcom_enable_wakeup_irq(port->dm_hs_phy_irq, + IRQ_TYPE_EDGE_RISING); + else + dwc3_qcom_enable_wakeup_irq(port->dp_hs_phy_irq, + IRQ_TYPE_EDGE_FALLING); } else { dwc3_qcom_enable_wakeup_irq(port->dp_hs_phy_irq, IRQ_TYPE_EDGE_RISING); @@ -324,7 +345,7 @@ static void dwc3_qcom_disable_interrupts(struct dwc3_qc= om *qcom) int i; =20 for (i =3D 0; i < qcom->num_ports; i++) - dwc3_qcom_disable_port_interrupts(&qcom->ports[i]); + dwc3_qcom_disable_port_interrupts(qcom, i); } =20 static void dwc3_qcom_enable_interrupts(struct dwc3_qcom *qcom) @@ -332,7 +353,7 @@ static void dwc3_qcom_enable_interrupts(struct dwc3_qco= m *qcom) int i; =20 for (i =3D 0; i < qcom->num_ports; i++) - dwc3_qcom_enable_port_interrupts(&qcom->ports[i]); + dwc3_qcom_enable_port_interrupts(qcom, i); } =20 static int dwc3_qcom_suspend(struct dwc3_qcom *qcom, bool wakeup) @@ -617,6 +638,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev) int ret; bool ignore_pipe_clk; bool wakeup_source; + struct phy *phy; =20 qcom =3D devm_kzalloc(&pdev->dev, sizeof(*qcom), GFP_KERNEL); if (!qcom) @@ -683,6 +705,17 @@ static int dwc3_qcom_probe(struct platform_device *pde= v) if (ignore_pipe_clk) dwc3_qcom_select_utmi_clk(qcom); =20 + phy =3D devm_of_phy_get_by_index(dev, dev->of_node, 0); + if (IS_ERR(phy)) { + if (PTR_ERR(phy) !=3D -ENODEV) { + ret =3D dev_err_probe(dev, PTR_ERR(phy), + "failed to get usb2 phy\n"); + goto clk_disable; + } + phy =3D NULL; + } + qcom->has_eusb2_phy =3D (phy_get_type(phy) =3D=3D PHY_TYPE_EUSB2); + qcom->mode =3D usb_get_dr_mode(dev); =20 if (qcom->mode =3D=3D USB_DR_MODE_HOST) { --=20 2.34.1