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 91DF34AD4AB for ; Sat, 5 Sep 2026 15:29:17 +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=1788622160; cv=none; b=uI1X6sdn4jw9Fb7EvWUzEwnHesyyNqXhuIEYuYH4FDzX980Jl/rGAKPQy8OSs7ExMLF1EKv7LkFAUpjAq9T1fuyxI9nYq0szsEl5Yie6Lny0FBeC8d1LSEZ78DVHQOamQ0XDDe/gsqllIaY1AdVdrwmwYAXHsKpdTk9KJM5wHpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788622160; c=relaxed/simple; bh=S6XBJpEz5Dek815jzmE0b9XkrXDLKdAJjoolsM8gc9o=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Ykn7qNOiXr+LmWW+hYZ+ULOTem2ITagtJjKkP7El/Gaa4gCMfCTq6ZpVvB06ijlTiIQzjuDH/dcPoX8cW9ftmotf0dogPVtUPzW1x5vH/H/XwcMchpW+KBGb0vqAnSilbKoMr4UBeu+DFOoNc/ToXUITo4kBhmZuuZ12Fxfru30= 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=LxP5jvUx; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Gn+kIKDB; 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="LxP5jvUx"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Gn+kIKDB" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 685EgjuD2824157 for ; Sat, 5 Sep 2026 15:29:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=1J5mbzKQXdFCMf3jwBjnv/ NJRWMI84WrAPPqfVmtmcw=; b=LxP5jvUx2lKO/eOcO1/amnatFkIbZ6u9R5XRuV zabkJz515FblvKsvfODp8AHwH6L21GuSYhnl7dHBbRDMFEH82hiFs2/0poDhObl9 22ODcFy1Pmeua3qym7an/qDSEJ3uKzSWkKFu6k8hYCB8qCLhpMphQo41ItIgfKqK 0PDXMdn3XI7/zRh0W2pvMTUjdgh//gcnoNp/VF8nKJ44BFT7OtHHuQ9hYLICHyzO RHz0+kRVSVXfVA9ehghnsv+kuUgEhy1TxZlFLK9BHS+4lKFjiMjHNZeyNdNkkBHx 4XdJhiiKLdIyNAmLkvJVfjHBa1qhcOJpqIBkPWLBkAgsgzZA== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ggb5v9c0h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 05 Sep 2026 15:29:16 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-8623e5d4279so2412704b3a.1 for ; Sat, 05 Sep 2026 08:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788622155; x=1789226955; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1J5mbzKQXdFCMf3jwBjnv/NJRWMI84WrAPPqfVmtmcw=; b=Gn+kIKDBkJyLmuSgXmuKhdBH65eqf8c1iWnpTGKfxITVebt5uiUTryv0rZfRVIz8PP yfpjnj04zwxAJ38at99aun8r0RmIxKlriymJxTulvMGHl4qZ5YDjt8/ekH0vPXLcq5OY pw0UQ1/RKWVJXCaCu3MqenWoEMSNKjd4/ioxS/uyC/mTdHjncdFblGZfCOwHjMqTw5LJ XiewLzDaZLDx3j/txB4wryPx6q7o8OHw0ZZcNXlMJ9kHLXwbUEz5b5CkxyRfDkaBUWbm 4mlcNXiXVJQk0OezhMAmQ0LbmVN4EKrCil61D3wzBhJGrrSYH+ltAQe1RwznolD1JE04 JYGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788622155; x=1789226955; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=1J5mbzKQXdFCMf3jwBjnv/NJRWMI84WrAPPqfVmtmcw=; b=jz88FszjZG8uY9lyh3QosO4Zr2CcDoUR9VzFWFhIKupXF5t1OSjEoJ5jmCKsWBysIr 78zxkyAkenkv74qUsZEzHx25VCVmp5ZNABDVJR4H0xQhjXvXq2Kji22GOxpFn47tcfCT AzXOM1zQG8alkfqMYWjlB6XHnVhALJNc+sUGtWZltC1gFK9bvAO6R8XeqH5yg6ijGD5Q i4/CX6BQJ3YPU6fj5I47w445WFp54JXe+SU2sy3IL2MibM3zORQgntZmdLPh6624+rQm wfHxDv2nKUtvhuo4Wb2jdyI0Fze8uiSNmsUfY5XbmvKpOPOVI07l20d7hUSUr54bf1pe 21Cg== X-Forwarded-Encrypted: i=1; AKwUvBzLGJ1AZ9azFNPATcLJh7T7SiBhnzw4bQxe8YVb0f0FW2MOrVJYYeiuy1xJCD2mMvj60G9G2imvvmC1@vger.kernel.org X-Gm-Message-State: AFuF++ntCSasKtRhNz/FJ5dU5WiLxkYc7a0Br0JhlupPGiOjD+mQEokx cZCkSRTUuA5zLgaf2g0JVZeV4QzVifU1Nc1spqxXTT5DylBU8EsdcKb8F+5Vxf7Vyl4BYYZEux3 MGctHlCY9brrq0y5T0apG+WdHlSQvVP/Ckr1uFGYsyL0K1p4+ZotaXcYKsBBpTsYn X-Gm-Gg: AYBFou1eUWwYypop44MlZ//bu01nHkxbsR2o2g6Ev+AIIKBwmsL6jQqf1okGBHbiWYV qsAXzPxCC9TjRx2ij3e01bersDrGOqM/MkBpcifb0/xS1Etk/V0Tbo4UaQlMfdatiQRrJwO0H5C oqH6Za5KA1mgOX6ReVLvg8ZmMFdh9LUmmYZXildsdRlmvh1sB7u+tAhb0V+54fj9bin1Z+zIWl+ yxRkVu2NqkwFLNq2Fmbj/5tYC7PSDTkZx+2biR9BliGXpy0hgZVQaPoEntC2MewjCsEctv1wNJD PKdJSAzKlJPfeAiInKqeOLA6Q0b2Dg5m1glaRTSWwZs4T+31WRhEX5wWQkB1DD03o+08ZESXLqo 1BGHMgkpvnBR2HPyBQA6dTYE20zoWod2uae9w/4lsvl3gcSfBQtV35HIzOOW7DOmuYIQYYw== X-Received: by 2002:a05:6a21:7117:b0:3d8:5a37:549c with SMTP id adf61e73a8af0-3da39eb8acbmr22462822637.7.1788622155340; Sat, 05 Sep 2026 08:29:15 -0700 (PDT) X-Received: by 2002:a05:6a21:7117:b0:3d8:5a37:549c with SMTP id adf61e73a8af0-3da39eb8acbmr22462764637.7.1788622154950; Sat, 05 Sep 2026 08:29:14 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339af25062sm23592635eec.16.2026.09.05.08.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2026 08:29:14 -0700 (PDT) From: Krishna Kurapati Subject: [PATCH v7 0/5] Modify interrupt handling for eUSB2 Phy targets Date: Sat, 05 Sep 2026 20:59:04 +0530 Message-Id: <20260905-eusb2-interrupt-v7-v7-0-820cf5377a70@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEE1nGoC/yXMMQ7CMAxA0atUnrEUTCGBq1QMJDVghlDZSYVU9 e4NML7h/wWMVdjg0i2gPIvJOzf4XQfpecsPRhmbgRyd3NkdkatFQsmFVetUcPZIlMIY9ocQfQ8 tnJTv8vlNh+vfVuOLU/meYF038Eu/vXYAAAA= X-Change-ID: 20260905-eusb2-interrupt-v7-22c8d8138b74 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 X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788622149; l=3296; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=S6XBJpEz5Dek815jzmE0b9XkrXDLKdAJjoolsM8gc9o=; b=8BWq9KCEu1Xr+PEyUZ9vWUy23HYTgxcbm+CJXK14EYPeucN7Aj/6bD/42c4UKRxSERI8X1aKh 6/B3WjwWnZHC7BRkzspkFzGOdKecsDCXY2lhE7zTbAzc7CGtCZrYW83 X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com; a=ed25519; pk=6PmiuwGCdov3wRO+bdmRlRxRtmJyDKz3ED57LLPVgds= X-Proofpoint-ORIG-GUID: FJs5OFqMa76byOdef1BfNCLu6oJdhlve X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTA1MDE3MCBTYWx0ZWRfX6+pq2Qe+iOoV iAija+Xee+hVtVnFyXvJhucZYCv6v1AeJ84jSJ6ZvPuylCxFfv9oPdYCutSwLrYMikefSXWq6Rd 9tIJnkk+lJFiSMAcfGHSAcWseVOXkY3dC10pp8MsKNiNM1dZHFfpq0wnezHr1x/KwUlxrcmUaCe e6wuAGeICjB7cesBjIi8s5x3fmpKILKFF3wWZFSGgyu8NVmvBVnqzEQzOoYQR0N+yplT1HvdfGJ MEjGUbs2tU/WS0JnOebVaKaOgdSCDOUmJ9sRp+dJC7dNKURlD/Lc8g9LOy1Mf8Ac8nUfzqClC6C nKspVH6/H8b0hT3vXzStCFeg8EixrmUu+2e7VLitY2YqbuXJJuoifOWDHGUDLYNn4CCt45aw8xf p6gPAWxSup3ck0VExs7pZ9cJyDfLfkxQm6h5CY8MbF60YymN8dhZ/5mwX6fQ4pq1AGSSWRaabcj Cmg2vRQSkcyhP30nOuQ== X-Authority-Analysis: v=2.4 cv=UO3t2ify c=1 sm=1 tr=0 ts=6a9c354c cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=7T7YwCvgW8qH-pAI4vUA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-GUID: FJs5OFqMa76byOdef1BfNCLu6oJdhlve X-Proofpoint-Spam-Info: AW1haW4tMjYwOTA1MDE3MCBTYWx0ZWRfX+JVRqQnGJLRq DiD26AxyaGLLHZEsRE0pOFFTx0ynwB73r789cSWKNTK84eVuCPZr6ZeG2NKf8accncVEogWCs2d CZClDCUX+emAIqtOHlW0PdLrCKr1AZs= 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-05_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 bulkscore=0 spamscore=0 priorityscore=1501 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609050170 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, configure the wakeup interrupts accordingly Add support for a new phy "type" attribute to be set by eusb2 phy drivers and be read by consumers (in this case usb controller) and act accordingly Changes pushed on top of usb-testing branch. And v7 is only compile tested. Changes in v7: - Removed NULL check for phy pointer. Link to v6: https://lore.kernel.org/all/20260826-eusb2-interrupt-v6-v6-0-ae2601cfa80c@oss.qualcomm.com/ Changes in v6: - Update commit messages to reflect why new EUSB2 phy type is added - Update phy reading via index rather than by name - Remove redundant header files in phy driver changes Link to v5: https://lore.kernel.org/all/20260723-eusb2-int-handling-v5-v5-0-f32ea6c1a318@oss.qualcomm.com/ Changes in v5: - Add support for phy "type" attribute and set it from m31 and snps eusb2 phy probes. - Removed adding a new binding property Link to v4: https://lore.kernel.org/all/20260709-eusb2-interrupt-handling-v5-v4-0-d4f993925608@oss.qualcomm.com/ Changes in v4: - Moved to using binding approach as suggested by Thinh Link to v3: https://lore.kernel.org/all/20260511094422.3561509-1-krishna.kurapati@oss.qualcomm.com/ Changes in v3: - Removed multiple glymur-dwc3-mp pdata entries - Replaced use of ternary operators with if-else Link to v2: https://lore.kernel.org/all/20260505194242.1947891-1-krishna.kurapati@oss.qualcomm.com/ Changes in v2: - Updated commit message - added supported eUSB2 targets Link to v1: https://lore.kernel.org/all/20260502095616.666938-1-krishna.kurapati@oss.qualcomm.com/ Signed-off-by: Krishna Kurapati --- Krishna Kurapati (5): dt-bindings: phy: Add PHY_TYPE_EUSB2 definition include: linux: phy: Add phy attribute "type" and associated helpers phy: snps-eusb2: Set phy type to EUSB2 phy: qcom: m31-eusb2: Set phy type to EUSB2 usb: dwc3: qcom: Modify interrupt handling for eUSB2 Phy targets drivers/phy/phy-snps-eusb2.c | 2 + drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 + drivers/usb/dwc3/dwc3-qcom.c | 63 +++++++++++++++++++++++-------- include/dt-bindings/phy/phy.h | 1 + include/linux/phy/phy.h | 27 +++++++++++++ 5 files changed, 80 insertions(+), 15 deletions(-) --- base-commit: edc1518454f6439e50a9220e9a3ba09044ea8d8b change-id: 20260905-eusb2-interrupt-v7-22c8d8138b74 Best regards, -- Krishna Kurapati