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 C650640EB80 for ; Wed, 15 Jul 2026 12:58:43 +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=1784120325; cv=none; b=I5SazRCo+yepT7u9BDUZc3AqrvghBh826dc67n+PotvaS1pYSUy4kypSktzpDsYfDai9v0b1xFsw9Q82cXPRmLhm/OOoLzGqyfUsziKcPc9E1KRJjqwKyJpv0YYTTrKYRHV3Hy0rbgy6sVHoXDMBaVsYnbyeuwOMgAc0/s2keq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784120325; c=relaxed/simple; bh=iJ+GhOuTAuqPkm0iRF0A4iS23vfSr4FjgVWthrGBgIc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UwAui0FhQWCLXlgd9TpH+5je/kC/obKbjWb1Vu+FixDuF+eL0T2tKqnGVg17Zocs97r1FGAQ5s9aeZo+l5hXaPPPLVejN4fRyvMjGt/aYpmN4uML0RggByfTLch1HJlywnYNp58wkjCIVcMDhTU8SUDV805IRerjiJHtprIHSsA= 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=Ru0nybpc; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=b+Rup+d6; 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="Ru0nybpc"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="b+Rup+d6" 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 66FBcfIw3707591 for ; Wed, 15 Jul 2026 12:58:42 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= MkDqf6gLiwvri0Nfl+pFZPlM5YAWBQzYzpIcydMooR4=; b=Ru0nybpcQ8bWe0Xa K/+agdXNJJFO9WwMVBK8p8p7GDDeJALmyTXF71BQITzIeBfpyuqOURa8Z9eYqBng E8BT8b9kV2MSzoM2EJ7/bi27dTMpRzAWMjGdH/Js5iAtAXXIlug4Eh0Z15jzqBC2 O/FCnSWpHgo+g6l+jTtMzoGFYMLGQTXNgLzLGpjgWO3iqMM9EJW4tMsp5xYmCDaq wX7rfov2d/z5IAMnep7G/cy1TGmJoZajL8vwrwMyNudeV6gEateb5Se7ZZVM682B 6/KCmIW7YWRrMPLhexKGIwA+OeNExYpftPTFgLnsJhk5g1XGxPjA/G8JJf9+1JnW 5NQZLQ== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fe7nmgs15-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 15 Jul 2026 12:58:42 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-51c21be5bb4so17886161cf.0 for ; Wed, 15 Jul 2026 05:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784120322; x=1784725122; 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=MkDqf6gLiwvri0Nfl+pFZPlM5YAWBQzYzpIcydMooR4=; b=b+Rup+d6aLPDIfGYIRdurR6ff087lTP0VM0YavVrluMann+pNbcxjunFvRhUBBDCY3 wnp8mnTLv/X672BDlfrPPj1YV8Xl2RJXek0w7Hh46cu1UtS1NcKtm3RoT5py6qBf5uSc 5I/Cm6phuKfdaWYLFh4ad3mZtkrTR8AFkqtdEmheJ8zKklDVsVtnfMI173mrhoYh7znP n44/mXZm1gOzQUKIQ+FCl6wvdOlUO2VQj9eIldW96SPb9ESkvJLivkQ3ST/cbCjjvshV 6ksHLIGHkbXzywdd99AoVJuCS283gCNclZk70vwkmQsCgpoPNtHjXdCnFqIMgk3g3K0C ctHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784120322; x=1784725122; 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=MkDqf6gLiwvri0Nfl+pFZPlM5YAWBQzYzpIcydMooR4=; b=hRznL0Zb9Z/GqqaesY4CXAuvrslvGK5oLW0aOTfZUTNMG4z6ZUs5QrXCKwHbbBLYcq 9YNXRyMGyxkBHZUUUVDJ+9YWFK5kZr0Q6zHrxEdPGc2ODAOflcYhdnXfLd/GDA4YQ1Oh t2P0KRerfYwQ4kCs+0EEIGaROZPQ3x77UZ0e9Nr6SHoRVvSXvT8pTMyZu1wWLeuhPvjZ wgsk8IRZmbHZhCXUvgkDsQNqEgNxIGLeRkiMaAhejK0VxxIoiERgrqZuMZBWBMs71Z7B 1qZwL2iKzrq0ad1hKOkgDzlR+54Fi8E04rW0zP0FRk/0TKHt5bvDXE8HKZ/TKAGBcHYj Pr0A== X-Forwarded-Encrypted: i=1; AHgh+Rpt+X1N40k/JUqCpVikjk7h+/fCQBT1lychwTgol2STqXI344OnoKrachWvEFEknBTLoGDDK6nTXKW5gAg=@vger.kernel.org X-Gm-Message-State: AOJu0YzgpPhtSL02rbZyryipXE1sn1miUUVJuC3eYzQYFdbIlPqAk6wa 0mJ82ocOMUzpDE4/JiZBVIA9AsnzbLKaBf/xHZKeu7gb+pzLfdgjFEHfFv1fjDSurfXFSINDpMY TMaH6mWBO4euiqNk/evp4KEBqu+TEffBfewK4LDR5tkue/Z6f9qok/m9mT7SNJNssX1A= X-Gm-Gg: AfdE7cmZ5evF0CJhLPspDeuEbMgySa+LQ7QVwJAwF4kgJaIkf1H4sL0Zu4N3LykJe++ 6a+eqpWtnc0fepdqNHUJiXzIMscWfZ3OAIhppl9LJTH8IjSxk1cgrcNX1ewB0TGYuWjBWnbPdE/ Wr89QhMbxBYHqrVQS/4iS3yFdKRyFFboq6kNXAZ8pKsslPd87lR9hS/anwFjOz/sF3MbCGFJOb3 e0e4Ewel0f9fPaD8Ixtw7TemE9rjA1ZslgAeBecpM69daVVZNqDmkbigClsFWgQ8MjcaTiF030s hRqKvAJlRaAGD3v+XBa59IJFHRHPGSGFerjvtBp+QEci4XtkzGfWNLfN1P0Yy8vRDX/kmidhfAw pm0nD3J3s10PgXIzrHtxhofxIJLpa11Mxdrc= X-Received: by 2002:a05:622a:58e:b0:51a:8c9b:64a5 with SMTP id d75a77b69052e-51cbf360791mr126694741cf.9.1784120321792; Wed, 15 Jul 2026 05:58:41 -0700 (PDT) X-Received: by 2002:a05:622a:58e:b0:51a:8c9b:64a5 with SMTP id d75a77b69052e-51cbf360791mr126694141cf.9.1784120321062; Wed, 15 Jul 2026 05:58:41 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c16871264c5sm22347066b.2.2026.07.15.05.58.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jul 2026 05:58:40 -0700 (PDT) Message-ID: <42b1c982-410f-44f9-84ec-40d042bef1cb@oss.qualcomm.com> Date: Wed, 15 Jul 2026 14:58:37 +0200 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 v2 0/4] DWC3 link tunneling state reporting To: Konrad Dybcio , Thinh Nguyen , Greg Kroah-Hartman , Mathias Nyman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, usb4-upstream@oss.qualcomm.com, Raghavendra Thoorpu , Mika Westerberg , Sven Peter References: <20260715-topic-dwc3_tunneling_state-v2-0-026487a08119@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260715-topic-dwc3_tunneling_state-v2-0-026487a08119@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE1MDEyOSBTYWx0ZWRfXzW5gj4cN5kBI 3YlQnZJZb+NAXdLiltjIa1smBJnKiELMhZngKuvY6Ot9sy1b0B5qcMu/kK6ItffgetHRsxqxyUi UFgvSs8ypOftZ6e+fzcUH6OCOcanHxU= X-Authority-Analysis: v=2.4 cv=cuGrVV4i c=1 sm=1 tr=0 ts=6a578402 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=NEAV23lmAAAA:8 a=bC-a23v3AAAA:8 a=EUspDBNiAAAA:8 a=NmLephZMgBtApVba378A:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 a=FO4_E8m0qiDe52t0p3_H:22 X-Proofpoint-ORIG-GUID: AfLvC_pdINzCI2_YpHmpA-MNuvAq0KeU X-Proofpoint-GUID: AfLvC_pdINzCI2_YpHmpA-MNuvAq0KeU X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE1MDEyOSBTYWx0ZWRfX5e8qDlOwKIdm 5RAwR0qNkYWPiGgodMtIp0j/usjfm8eoheiBr5WEPEtBPjZPHLn/HLoE2paaRHChmO5m+yVARH3 Zx/5qoi/XlWrYDxy3S6kjiDGkc2xC37uTinceVt28vOcJg7VMmys8Z+96Rja7zzDxHtKGOlAE/Z gYBm3a2TM3AqEEITipFfRZ2IqSTIVLuEEFxy5GIY8lAKC02vk8Z4n5+Qv/swEvP4y/QAYLcJCER sfMJSbql/NnpqXOV5Fwrdg4vGWPlGQq5hNLUxitzSyoDCKSOzZv8q7B4SaJI6tiwEjUJt6XiT9S B5jPKy5l6299tai2vPWvjZ9JE3boxGke3bcTFAz4q3CfMM+TR8kQg7hZD32BcBjcPLKxDgOuCkh g4l4sD0Bcss1HkEffRSD6nbaXX67fE4CSddGD9BGTOGCWXL2i930LmJCJH3DnS+VHYgAGPaSNnq siaVsLKtnO23Q33ti2g== 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-15_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-2607150129 On 7/15/26 2:29 PM, 'Konrad Dybcio' via USB4 - Upstream wrote: > Currently, retrieving the tunneled/native state of a running port is > only possible on Intel XHCI hosts. This series extends that to CIO- > capable DWC31 controllers (see [1]). > > Note that this patchset only results in the correct udev->tunnel_mode > value being assigned. Creating the device links (which requires this > information) between the USB4 router and the USB3 controller does not > currently take place on DT-based platforms, but that will be amended > in a follow-up patchset. > > Tested on a Qualcomm X1E80100 CRD board, with a (currently) out-of-tree > set of drivers. > > [1] I'm not entirely sure about the DWC version range (particularly > wrt DWC32 and newer), so I limited it to a reasonable subset. I'll > happily amend that. > > Signed-off-by: Konrad Dybcio > --- > Changes in v2: > - Add handling for XHCI v1.2's USB3 tunneling and PORTSC.TM for > platforms that advertise it (!!! UNTESTED !!!, I have no access to > HW that exposes this) > - Prefer the aforementioned cap over custom implementations > - Bail out of the DWC3-specific check if `usb4-host-interface` device > property is absent - hence this now depends on: > https://github.com/devicetree-org/dt-schema/pull/196 > > - Link to v1: https://patch.msgid.link/20260505-topic-dwc3_tunneling_state-v1-0-4aaa6c3c14cb@oss.qualcomm.com +Cc Sven sorry, I forgot to include you.. Konrad