From mboxrd@z Thu Jan 1 00:00:00 1970 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 F0A3D3F210C for ; Sun, 13 Sep 2026 14:40:59 +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=1789310462; cv=none; b=sk9mfNQNEG/fKohHky5XQ0PfXRkn+GdvJFxr61G6B4nPr257X8ML8U3xY8W/3Qw//AZmsIV8xwhBnYvk3HnAKtVL+7kILuYXOco1IXfcaLREu2Nzx/G/W7He5yaU13zhW37eqa4iAuTNDWbOV9ZxwDq77E6QRjRkGHYTmYqrlt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789310462; c=relaxed/simple; bh=Gxqy/sab41dTygvKiRjyoOb28YWcdxxuwKAM8sQA/MI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=NXlVijTKuSt0j+P8JCwYpKX2i2zuy66YG5arXugjYjZhrWcegQSRRp2X0v540ZrOe8OBIVs3HnsoEsqaBMNET9rbLXaIK0SGGhA690tQul6uhvYRS0kb3ZfKri7hT/AIF42gbebBxQFCtUwQuCYvCwO8e3Vl4e/7Vb8NuSEE6Ys= 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=B/CGxtCE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=e9mPp7Pp; 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="B/CGxtCE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="e9mPp7Pp" 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 68DE0JPh2786963 for ; Sun, 13 Sep 2026 14:40:59 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=cc7emweiprHjSxKjbMHJ2a c8qRlQv/5NgZ1mLvSzUGk=; b=B/CGxtCE9C8+1EdSpRQxz8a/a4lo2ywSzRL9jy yA4F6RFLzg5JY/bGYTiGkIx9z3Hqc6RuV+fyDE0ObTTODRsO0ZEdha/5kD8kJGY5 Xkfxh77fSW3zBrIAqDiORRDOAm2VNy/zys6fXFsAj9BS7NBkG60m4VedBZBKAIMg 2EpXV8vegxUJc7bkOdF9tckPomIZWz771ekYkBBfCJdw12oty82X3bLzdihvquG8 tli2NaX6sIIYiGnb66ox5hAtNrnOffw/0JmXHMTvFtB0DUT6+6tuUvQi1KILxAYG idcfwtASxxl7O4chalQuVsBnIFZRSvC2eirZcm11rCog2XHA== 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 4gmy9cbh5r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 13 Sep 2026 14:40:58 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-385d2703b64so3716878a91.1 for ; Sun, 13 Sep 2026 07:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789310458; x=1789915258; 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=cc7emweiprHjSxKjbMHJ2ac8qRlQv/5NgZ1mLvSzUGk=; b=e9mPp7PpRr4p73BLNNH5O7/SUIetmSV1t66mfzl2zDyFIJLuM7B8pdB/3yR41kgW2p ezQCqbrOXqMFwylKJfEFiabBPXfa3LXiJ3mfUpgNcYw/CXsGT5qgI54d995Rax4EHiz4 7sx7bpfzyYp4MIucE5RbaOFZc3l63Qrx0Pl0yxEJjJBJC+sUjkFAGJeK7mQYMe3IrAgJ Jg/gGMc0DjQ2aDgc7r4GdkXYFrTmtTSNKzqGPxwRpTe8q1CG/xuf7PLW/mZNXFeY3aqo mbkJ9KOhKV8Abr9anwIcgQlOXkmvctJ6S4qUE3JQnOLE8nFd2bwSfG0vN6nLRMor23Hl BWCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789310458; x=1789915258; 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=cc7emweiprHjSxKjbMHJ2ac8qRlQv/5NgZ1mLvSzUGk=; b=fKmMBpqkF32RMNsGcMNMzwhyWpSH70+xfIBTj1TZ3nE414TGEWVhZfp60sTD3uXK// zqcOj3iEmOoSuYGGYf8VcT82gvXOuciWyxvlomEf0OOiPJ7AzSpcQQ5Qsc4OmWk2v/sA AUue1x4fUUsAeHwGeKYpjD6SQegI+3fQPrv6mObmEAIc8wDw3N04l14SO3ldZdZ4xpeH laMur5vlDbmhYbRDTzdnquCx/7Fw370lXVs+zr5LR9Zw164JsID6R2+LuDUwJgck8L8O TxeaFg7+E8p6pSOIGqR6NXkgyAnFN8ZZMBgNA3Ia3oipD63EAfZgaipRE1sWxw40+Ra9 KVJQ== X-Forwarded-Encrypted: i=1; AKwUvBzOTesE0pY6Gh2BzxvpzMZacFx6QMvisyS/k2SPtqRGcMB67VAe+QqIOsRyFdL8ynRR1ZjZqOkW6qtEQ9M=@vger.kernel.org X-Gm-Message-State: AFuF++lKVzZh+5Ulb9I7xQ+ubphuI0iRRpNsw2Ft/rbh7rpznrYD2c0c 6mKLbyI9yA9isXpJ4xUnN0/ai1ortNlm8tFx6sVWbuRVoRpkx8pF1OEKE6HKoGW9QV42t68ebVX iPz2NmheZRm95diI3UyPCw64wNWeNOekM89aZBaEYzWI3Da+gzixeZem9DP/zRaPZwkc= X-Gm-Gg: AYBFou0pwynFaT/BmdHmw4+6nment0O+AabteDtmk3/cZawih4C4UfmRiCgJmITlorM 4RCZ7pkIFDLbGaLaaDH3/Z6PFHSdxcuOizRf01hcpVoltYV4HyCII59GVYT7hORhuu4AZowikuE aLezbl0lmW2CwQBtkYvwQ97ZN7swjcTWYh07cxrwGDqpV2jfPvzIimB/1ClGtRwIm7+qnlQmGST 8Fhsz5n4woTqg4TEQb8tjUvfpGXfPupJ4GfF2YYYjIKa8PkNPk1QtFB2Ql3FgfStAX/h1Da2iIs dY6q9OVjZyi8z72ftEWOJvK4915LkvGu9/jGhVT5KT+Y8X6QUBMG+2+W8EytnyoQcWekkOG82eh CLDq6KCWoOFouNyc5dCyI6DztyUjT0hFg0aUZp1G/35rje8ZX7GOO0xNWB3SoQ2kY6DHPQw== X-Received: by 2002:a17:90b:1c02:b0:398:ceed:b903 with SMTP id 98e67ed59e1d1-39dd54df000mr3332331a91.11.1789310457961; Sun, 13 Sep 2026 07:40:57 -0700 (PDT) X-Received: by 2002:a17:90b:1c02:b0:398:ceed:b903 with SMTP id 98e67ed59e1d1-39dd54df000mr3332283a91.11.1789310457446; Sun, 13 Sep 2026 07:40:57 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 07:40:56 -0700 (PDT) From: Krishna Kurapati Subject: [PATCH v8 0/5] Modify interrupt handling for eUSB2 Phy targets Date: Sun, 13 Sep 2026 20:10:43 +0530 Message-Id: <20260913-eusb2-interrupt-v8-v8-0-0f505b9c394b@oss.qualcomm.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIAOy1pmoC/yXMQQrCMBBG4auUWTuQpiKNVxEXTfqr4yKWmaQIp Xc36vJbvLeRQQVG524jxSomr9wwHjpKjynfwTI3k3f+5EI/MKpFz5ILVOtSeB0ZaXAh9HOcjqA WLoqbvH/Ty/Vvq/GJVL4n2vcPg1KtK3YAAAA= X-Change-ID: 20260913-eusb2-interrupt-v8-ec30991dba4e 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 , Konrad Dybcio X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789310452; l=3453; i=krishna.kurapati@oss.qualcomm.com; s=20260707; h=from:subject:message-id; bh=Gxqy/sab41dTygvKiRjyoOb28YWcdxxuwKAM8sQA/MI=; b=p/ho+MceyjOjapmZ7Nd3A63hZqDqbWufLLpqteA7hiGOffZ5U8fYrhaQL7G9wx7Qs8B7bUY+c NNwuXTv+/AeAjllma7Hx9W6ETKLP/miPVMsNyRLla+PeL9PJAPa1QeE X-Developer-Key: i=krishna.kurapati@oss.qualcomm.com;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Z2DAbFNn++sRa9SQPSLEY7vDv4n+4Ir9EeWuLW0gIx2RqTHDh6 ofxQECtvQC6HBZygT1kFSgJgK2KK52XdIGw9N93icvLe9k7PjA+yPEs2h/wdnjARxeA41B3lX0H aZYevJqEy7vq9fSPU/Q== 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 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-next branch. And v8 is only compile tested. Changes in v8: Rebase on top of latest usb-next Link to v7: https://lore.kernel.org/all/20260905-eusb2-interrupt-v7-v7-0-820cf5377a70@oss.qualcomm.com/ 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: ed2050bc671b44b2c948dbd4347cc534d44ccc9f change-id: 20260913-eusb2-interrupt-v8-ec30991dba4e Best regards, -- Krishna Kurapati