From nobody Mon Feb 9 23:00:49 2026 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 366C021CA13 for ; Sat, 25 Oct 2025 00:48:07 +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=1761353290; cv=none; b=UzeIvFO17mqrCO/R+m6WzzwfKNuDCe5O+3/z1+ElpAMy6e32S2NdRDLoW4xw31zj7zeY2j8opbzcgh1TmrY+PuFU/FJlR2M8LNdwLqrg5BZ3Nd+i9jSNGB1fTyNEM9qqJJN/jYQHJheZ/I9RLWmDNmQXaRAFdB1rwznp+JCKx7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761353290; c=relaxed/simple; bh=jDjMFmVfUDvw4337eIePkyn6RwxTmXHsTxuRAlWWnH4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kiNUbNObfPfr65SXLN6pa9/l2mjcXCSVdoWAz5/S9OwUL8IUQrsB7v8e68DPRxP4SMD7R7cn46Nr4YM2GUu2MbeQ7uqhc6aH+mxgtyGCWcIY7OUbWsFFVomZBQmEEGmIkKv9tEUvjTlpYiS1PdkLp1mNt4Kt9OsmKKruFc0+skY= 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=B5WuUVCR; 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="B5WuUVCR" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 59P0lH68005600 for ; Sat, 25 Oct 2025 00:48:07 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= 8Cvg3f2vcTWyvFoYptsB1kBkaF7U0YSfvjmuB16HFzM=; b=B5WuUVCRQaKApCAo zDWt3A/cupH0bjFVVzRzjm9G+ZHHqS/8AJZm3RDJApASLF8ZEKQOdg5uawDHHiLE 7+WpjFCSzw0LzJMGlYxlnDfDDtBzSD7gfypO391cRQ8OKl5Hfxqcgxrj01YvJ1GT P2/p3ne9HT+Zh1xZbKL7iHepg+KDPYn7cz3PGQg+cN8K/OStP80Z5RDvfbwzlggD B3zX6/1+8QEP1k5mIKyXvyupeHG8BgJtKW8YvXXF6j4Qd35GkxjhLlfjkrc2UV34 nWrvlv4A6oPK4P5U86aud/TzMm0PVuq5OlXvalPaFII5Op9fh+x8OIHtKKoQwhHu uWgA+A== 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 4a0kwn0165-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 25 Oct 2025 00:48:07 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-33bba464b08so2461064a91.0 for ; Fri, 24 Oct 2025 17:48:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761353286; x=1761958086; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Cvg3f2vcTWyvFoYptsB1kBkaF7U0YSfvjmuB16HFzM=; b=HqEtUEGO3HgdhS7F6cKbACA435dgIiAYdFjvpJkLQ39Z59ZLDApWJlTU/hAkQcsG/f 28yRp5HYgaavll3dvVSEFhVLnBcLIH0z1soSd4h/PG4kKdQGgVEW2cOnoCMic3512P9H Rq5U8CWrcZbMHSMaG0JmJshtqgBPujwizxHTI86bMLnADgkU+efod7J4UYySrfWnc8zC UVWgZAEPWacDLXEE6jdSbFuu5G3Z3+LHfccJjmcKW/o9tE4jlXEjX0XXU1oXDqdS67o2 R2qTEcV2ZkSQwUECUVvMJD2w8m+ZKLp5DlLMXQvkAcpTdQ5NPfMzC8F2TslMM2tBNut9 qFjQ== X-Forwarded-Encrypted: i=1; AJvYcCUFodqaRD0U94JCK8BWvpwxkq7fng041A3CLVnND/4s6wCXacUgJrzb3SqfUiysixlD0hUbqh9/1+oLcc8=@vger.kernel.org X-Gm-Message-State: AOJu0YzhSMGDgJNLE8kdj91uTlECVKZGFN8wbtuiHebJ05PNp5W9zp39 2FQsox+jQm+f1fVKNJfdNSsTkYwIDRruwT/1MRca5pJSIVXtJLvd4mFMQcm29WK2s0bLb564xoe p0ydPOqvvTOPIOoW900/iDnk6Qe7DUk8eMHYEn3xmHoiWCLdM34aNB864zV3RcOv4EAc= X-Gm-Gg: ASbGnct20TAocovIegklm2Hz7FKjkYfvVMv9v2cXx382ZhzhsEXbEYphSp6GPn7R5bx H1+ndpOVOAAqMgMsoufxW5NMMb5zYqae0o9RHhnANDQwyLkg+94OCPRf+4EQuGKgYfmzhwNo1d9 yXQYMWWbGNXTb2KAtOgRzLLl//ULt1dJJtR8wamT3QdKexgfaNKXGsPSvDLCWL+iQ8n6kNb/lyk ytbTBwZz0E+QNXvnKcr+94l43Ct4jOAKKGokECjIXyVfs7zDlvLsuRCdhv/R5au1UDW1mdsZyW3 /QiMUwTwx0TQ2bA12LVM9ROyzQUWafdAUDeLR5T28V7Mz8AweC6Mf+gAYXCXpB7i3dGEjIcfet8 CQlntD5Qw9VuwN6i4sLMWI17kALawwUi2ZdplxhOxj3ovXuVXWNE= X-Received: by 2002:a17:90b:2411:b0:33e:2d0f:4791 with SMTP id 98e67ed59e1d1-33e2d0f588cmr10040487a91.13.1761353285708; Fri, 24 Oct 2025 17:48:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOOLiiW+hINTlO+qwzsPKjtk8LlBIRfcfLCG6jDPzsh1hx2ZaCLo5G36I6nYAwHf9f0snLpg== X-Received: by 2002:a17:90b:2411:b0:33e:2d0f:4791 with SMTP id 98e67ed59e1d1-33e2d0f588cmr10040474a91.13.1761353285222; Fri, 24 Oct 2025 17:48:05 -0700 (PDT) Received: from hu-wcheng-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33fed3eca8dsm167352a91.0.2025.10.24.17.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Oct 2025 17:48:04 -0700 (PDT) From: Wesley Cheng Date: Fri, 24 Oct 2025 17:47:46 -0700 Subject: [PATCH v6 8/8] phy: qualcomm: eusb2-repeater: Add SMB2370 eUSB2 repeater support 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: <20251024-glymur_usb-v6-8-471fa39ff857@oss.qualcomm.com> References: <20251024-glymur_usb-v6-0-471fa39ff857@oss.qualcomm.com> In-Reply-To: <20251024-glymur_usb-v6-0-471fa39ff857@oss.qualcomm.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Wesley Cheng , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Authority-Analysis: v=2.4 cv=MJ1tWcZl c=1 sm=1 tr=0 ts=68fc1e47 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=Zq12RZiOzp0PcbRnEbUA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: nhdaq-Q8HnyDcO4QmDe7yl0NflVuTjXB X-Proofpoint-ORIG-GUID: nhdaq-Q8HnyDcO4QmDe7yl0NflVuTjXB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDI1MDAwMSBTYWx0ZWRfX3SiThPI4+6iC FeytJZ5GaBo82qPuoWpOgpb4Ce7DZhtYGgzkjwS0igHcBlzIxJfr8L/wZH5+sq8Cs+wnjOHDFhY hhL5AxOQRBa99b+is/9b+KsC1UI0V87VTa6NSlO9O/qOPOd+4VEn+Y9owgL8rJcUboJ0UmwxZei EmIbhbwyFVsZDFDivxMe0Bw6BdUAY19xe62osNCZjdeX1Jw3Afm+SgSeuA9M/AIn3dbCUWvyIVX Aqq7Ipcoo+DbE3nAwNol3Koa/3T676x2EgLZ1Endf1A/sBotaVKq48p5I5K8Bey/bpiP7yogsq7 iUcMda1Q8Ve24qyAHd323g+Kvb4w1w89CfAVr4VID+eF98d8AKnXWjIMKSr2r8WDeBsvon36v7J U+9msIvXTB9mzNyXCWZi81RlJtXdYw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-24_05,2025-10-22_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510250001 Introduce support for the SMB2370 based eUSB2 repeater. Configure the proper repeater tuning settings, as if this is not done correctly, it can lead to instability on the USB2 link, which leads to USB2 enumeration failures, or random disconnects. Reviewed-by: Dmitry Baryshkov Signed-off-by: Wesley Cheng --- drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/q= ualcomm/phy-qcom-eusb2-repeater.c index 651a12b59bc8..441996480a67 100644 --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c @@ -75,6 +75,13 @@ static const struct eusb2_repeater_init_tbl_reg smb2360_= init_tbl[] =3D { { EUSB2_TUNE_USB2_PREEM, 0x2 }, }; =20 +static const struct eusb2_repeater_init_tbl_reg smb2370_init_tbl[] =3D { + { EUSB2_TUNE_IUSB2, 0x4 }, + { EUSB2_TUNE_SQUELCH_U, 0x3 }, + { EUSB2_TUNE_USB2_SLEW, 0x7 }, + { EUSB2_TUNE_USB2_PREEM, 0x0 }, +}; + static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg =3D { .init_tbl =3D pm8550b_init_tbl, .init_tbl_num =3D ARRAY_SIZE(pm8550b_init_tbl), @@ -97,6 +104,13 @@ static const struct eusb2_repeater_cfg smb2360_eusb2_cf= g =3D { .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), }; =20 +static const struct eusb2_repeater_cfg smb2370_eusb2_cfg =3D { + .init_tbl =3D smb2370_init_tbl, + .init_tbl_num =3D ARRAY_SIZE(smb2370_init_tbl), + .vreg_list =3D pm8550b_vreg_l, + .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), +}; + static int eusb2_repeater_init_vregs(struct eusb2_repeater *rptr) { int num =3D rptr->cfg->num_vregs; @@ -278,6 +292,10 @@ static const struct of_device_id eusb2_repeater_of_mat= ch_table[] =3D { .compatible =3D "qcom,smb2360-eusb2-repeater", .data =3D &smb2360_eusb2_cfg, }, + { + .compatible =3D "qcom,smb2370-eusb2-repeater", + .data =3D &smb2370_eusb2_cfg, + }, { }, }; MODULE_DEVICE_TABLE(of, eusb2_repeater_of_match_table); --=20 2.34.1