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 40FAE55D876 for ; Wed, 14 Oct 2026 16:36: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=1791995780; cv=none; b=hLdOfrBfybmVa0yf5/Ha6Txx6ci86DuZltGDiEG3oeN/zpM0zFLDZuEN9lKJgyFZC+BVRZ9FR5+Rlb4rIssXy6NpTUDhRscc4l1J2XznarHw/hKi2MY2gbdv5q4SGrM+uxsrzbRPRnHiuCWhWkPHoDV/kSE9HHB+rO9owOCxWn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791995780; c=relaxed/simple; bh=PklsOs09Vlf82YwgBbtSpUmzn87NUh90iD+8UJYGK3w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rkPOZwdr94UcWrpbX2rlp/KfcmcfZkiZorc/BtnCY0TEPPVY/XKaXzTwMvyDJzGwZNvvIJiLFf81mxKrqzgmy0M/OtseE/EjHwegytuSiD/eyAl8OfHKMnrSQD/pSuoDxkj/nCwEJYM/XVbCVnY+inQJm8+H/uhi3Nznmrqal3A= 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=NTMjNEvY; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Y6TTLrhV; 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="NTMjNEvY"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Y6TTLrhV" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EFMi541682649 for ; Wed, 14 Oct 2026 16:36:18 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= qZE4atZVuUnxe4gh8yTrME7HVReQ6qljuMq3IYiqA/Q=; b=NTMjNEvYqdTCrKll f6XgOd60FLUu0XdMAj4D7IwL++ZnvVk0xw3E9JzHsXJ5cLwEOOQq3ip4lcEj3Qsz FQjLfPpM9zxfgv3zGMEYeSPgpIfndEwxOrtxSneycTU/s2FeHk06HmPPMYTlx3Ma VorPWR5d7vtllaxOSeBTeEsBifuxva5XOLjtdg/zpLiQ7g7soCORo+i8zsJMNwgG YxXHxU7XBSeSJsREwCIvF6zEhvS6aRW9IHeaoxldVxCCf5PaiaNXBVxwvpYdbwWi wKzzxsCyVjL0f6aT2QyitUg1BKR992QBb+EQK4OC9L9HmcVsqp7eFdoRNUTkUea2 QRN/qA== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hacb009km-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 16:36:18 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93df7a9466bso49937885a.2 for ; Wed, 14 Oct 2026 09:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791995777; x=1792600577; 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=qZE4atZVuUnxe4gh8yTrME7HVReQ6qljuMq3IYiqA/Q=; b=Y6TTLrhVhlcXX5WZmRZbeD6ohqU2i5YpE2EAkHLJkWSYXHJlhj1ZxDkK2zEVvXkrTq EJieSrUjxDLNFGdXgePJXqBPQrqPD9fUXEQDe562osZrld9t67GJTQjJFMbMj59QI1dI 5yHYC6trTqFSVCKpPmGvHfo131p5rgeDTDd+DOu5oz7EeenYq95dkvwWhK6EwQtVxgFD D/J5hojQImNhJ7w6Wi/SkRLbWAlCJwU8CG4eWP+3rnShOuGy3O//XNhZrTusDXNZ/bFP ciT2qy/n+0ewDoBd0LITtkfD9WdFB5LJdbVGWL18tZ+spR5a0YmsgMfd67z+O9n0vwJs 8duQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791995777; x=1792600577; 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=qZE4atZVuUnxe4gh8yTrME7HVReQ6qljuMq3IYiqA/Q=; b=pYJJJot4LQ7NVph8PPt3lvTzN6UNSX9JcpbZzaUxrtzMO0mEGcNdHDILcR1v8Q69Kf TL8GkjVzwNpuRlknvHtn8KbhUtjFvhcHb0ydTc+lclcAfnBBBd3gpJaOvkI2iQM4gmA7 velZyBx49Kh+VqQr6P0pedA8XfjhlCcrtTSepRqN/tvtK6RGGlPiHni9M9opTU0KFSux 7ek55M5V0Y6/WXR95boWFPuI/4Cy7zbq4eVmTGmaXEwmsN19C2jUvdLrqzQ/ENKSEVMI 4JRoKPhZ56lWkdZlO3vu2IAicevy2gcBjhApPA1rXXnMvMFpk3KUTVsfVk5bVI4yQtz3 JKag== X-Forwarded-Encrypted: i=1; AKwUvBzHcvdiCRf/AO+/SudMRJazTr2nXT/ycI8eP7tsnnCLOm4u9iXvzea8mXkcX6aWfv83XRtyFstPhawrGDg=@vger.kernel.org X-Gm-Message-State: AFq9FYKXhsMKDxCe5UDGY7bBdARxN1gOrwd7R9I3SCyeWp3tAsry17wN /H+PcGoAPivzMJUmOX7iPLG97h0HE6N3wfTD0gR0XyMEpVV1ognY+bE7TmgEA4Brz2dxQPFXO6h g8JiKi/dEmC71NPUxzEmbHZeQzNBbjW/DYvA7zUlNM5X003GwBt9w6Vu6Mxdn7SU64fU= X-Gm-Gg: AYBFou0gWMPQVsUZ87015yDfdNCZFRzwGmNWytYGc5mNgbIztnfSoJnTq/6BzKKkrAl w2mJGMbJoBo9RMxN2aMns/RoW3jguilxdpFDpHhf27whkORKcOSFE3EVntj/DkPqWG6dUhKr2Wq BKK3dUeaS4IgOehZI23Dvc9eXvkE8erkbSSttWnuH6HHTv38Fl4VaPkkU5fZXkLNke1Hv+8IPP6 oAIJ9rXQHOFS1NXwBfPdbkJHO32h0C5xibnaFZzw2xl0M0RmZiXO5nYO7A4n8Wj0bZlwdNfWvDg BS2uKp7+BTShyg2OcksIvDn892RxPwzGCCUGWSiRbhDX+yLUw6LOqzZG3oDsW88Rzf0ynqkRAfb aw2+J52L7VU77U5tkuZq5dA== X-Received: by 2002:a05:620a:3186:b0:939:8bc:8826 with SMTP id af79cd13be357-93ebd10c0e2mr3128587085a.2.1791995777352; Wed, 14 Oct 2026 09:36:17 -0700 (PDT) X-Received: by 2002:a05:620a:3186:b0:939:8bc:8826 with SMTP id af79cd13be357-93ebd10c0e2mr3128568885a.2.1791995775873; Wed, 14 Oct 2026 09:36:15 -0700 (PDT) Received: from [192.168.226.26] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b20386327csm1289977a12.18.2026.10.14.09.36.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2026 09:36:14 -0700 (PDT) Message-ID: Date: Wed, 14 Oct 2026 18:36:06 +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 2/2] dt-bindings: usb: snps,dwc3: Fix downstream port numbering To: Neil Armstrong , Chen-Yu Tsai Cc: Greg Kroah-Hartman , Felipe Balbi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Sven Peter , Janne Grunau , Neal Gompa , Joel Stanley , Andrew Jeffery , Ryan Chen , Billy Tsai , Michal Simek , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peter Griffin , =?UTF-8?Q?Andr=C3=A9_Draszik?= , Tudor Ambarus , Heiko Stuebner , Alim Akhtar , Kunihiko Hayashi , Masami Hiramatsu , Yixun Lan , Troy Mitchell , Minda Chen , Shyam Pandey , Wei Yang , Senchuan Zhang , Hang Cao , Li Jun , Peng Fan , Roy Luo , Yang Xiwen , Ahmad Zainie , Robert Marko , Xu Yang , Wesley Cheng , Stanley Chang , Ze Huang , Aswath Govindraju , Roger Quadros , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, linux-aspeed@lists.ozlabs.org, imx@lists.linux.dev, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev References: <20261014082037.1774672-1-wenst@chromium.org> <20261014082037.1774672-3-wenst@chromium.org> <7020a7a6-332e-4fd0-a659-d82eb768614c@linaro.org> <03375a31-0ac6-47a4-b0dc-6327080e1622@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <03375a31-0ac6-47a4-b0dc-6327080e1622@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=VKpIDNPX c=1 sm=1 tr=0 ts=6acfaf82 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=KKAkSRfTAAAA:8 a=auHUQpDKApYGa_LtnhgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA2NiBTYWx0ZWRfX2OpbHBS0aGrS MJkUemMMKEyqpiLkfE3awvSTsTSR737Y9pHt7RghzuY0q46BAJdn+Snh0Nw0RurCxIJKTIAgFIg Gcy6zMwr5gbdGmRhwvf1lz5OvE3rzwE= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA2NiBTYWx0ZWRfXzXvW/578vKnl ZfmKCUWrQkpsFi/bVgy5NxdBOB/PMDINSoQKlZSSlempclHcQSRMqi8+Y4yCu6/RR723PnLboXn 53n9eUfFwXkqr/kalB86oTlQODt07GM9PkM+OcSrGbVh7kqrw+ZI9g7MHZaQicrchazjx0AsvpE 7+07HUUryqtWtd2vuuEM7GoztxJ36JuFAIE2pAASk+Z8gAsMVVgM5q/6Ut7KvtslMuivzHg2uDY 92blaDBO96Rv3XS2gbQmoteeAvs3MDDLPxF5SMkTi4nofATbivyOci/wrYR6VvbOhflVo+jA/8E qRRKoHd6voHfe+Qqnxo7VydLVV2GTNB+ufgiXMUNB2QWtKYap+gC27XdJ4F5KiCjkUoVa4ycmYt 2+gpL5QNhoj7x6HoEh3MXp1MU8H+lVptvw4NkYps5qJ2eLp12be/FsOOXbuy3GTeQ+qan1luxAJ AsB99PiEIz7liKPGgDQ== X-Proofpoint-ORIG-GUID: B9McjzI5Sm8NvrkbJLsAlCYBZlUAV50x X-Proofpoint-GUID: B9McjzI5Sm8NvrkbJLsAlCYBZlUAV50x 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-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140066 On 10/14/26 11:44 AM, Neil Armstrong wrote: > On 10/14/26 11:29, Chen-Yu Tsai wrote: >> On Wed, Oct 14, 2026 at 5:28 PM Neil Armstrong >> wrote: >>> >>> On 10/14/26 10:20, Chen-Yu Tsai wrote: >>>> The DWC3 controller can operate in host mode. It does so with a XHCI >>>> compliant host controller. The XHCI has two downstream ports, one for >>>> HS and one for SS. USB downstream ports start from 1, not 0. [...] >> IMHO having consistent numbering across controller types would be >> better. This avoids making the USB core and hub code deal with more >> exceptions, and also easier to understand and write device trees. > > I was in the impression the port number not necessarily reflects > an actual physical numbering, and can be a logical number we would > then map in the kernel. > > I don't see any issue here having base 0 for the bindings and then > converting it to base 1 for the XHCI port numbering. I thought base1 comes from the USB spec and not just XHCI? Konrad