Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2081008lqt; Mon, 22 Apr 2024 00:12:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlfz307jT5EGbiU5FmMvsRzgkKjbvKbm+mPTxdj2NacyP70sTdk7PcpjWe36QavFrWsy5+u9OiR9RqBwiZnP4S3yZfLEbEeFOhB7DX6A== X-Google-Smtp-Source: AGHT+IHdsvarYug7WG+sMjm51/U+ID3qEhPtfSfujVuujgwZkhWJeOpwOUZgFxWiAUGjOGBN0msQ X-Received: by 2002:aa7:8883:0:b0:6ea:bf1c:9dfd with SMTP id z3-20020aa78883000000b006eabf1c9dfdmr12963680pfe.27.1713769961198; Mon, 22 Apr 2024 00:12:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713769961; cv=pass; d=google.com; s=arc-20160816; b=s2zNGnR9GXm3NTfxX2768MXuiEAsim9p9Oviu649QqkJvinBZceaLWVlAvrojn4uVD DmI6tcJUA7VCNRnKrvvCeNQjsvZzPyJ67eY1GTEMBXIEMlNmslre0o4qFyDTzTsfQshE W1+5Zi0aKCcG+HJv3TxPDkqpr4tWXrfm0cIdz3FNd1NLL8/Ptrn/I/IEjdYCS96vceGi qBiGz1irzUosXTTvMkKKTzlylLhYLmxzjtTk6R0u2adKn0dCiQiCwDSTbIsdGYLwt3IG oXXPdcqKZEiaQOVEG/CzlVNAYaFBePHNtqhBmKycbVS01s2EbeUz3hDQDfSXtgS1iAUR La6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PQXr1ngFyHHE51L2PnPGfRmATUOqOGLJG69I5kYMOKE=; fh=VLbVE1n7vPHZQq0uptn7afmdw8ttg3SVcWHsL5/UBz0=; b=qVNjGGMShQru5hbhuDRTTNufAXweyYDK0jeqj+u/9S03vKcjKjJk0yCbM20mbtntJA +iTgu7q3KnhadLUbW+j1KkL0OLLNS0NyzMjBFnD3GLtALjmHZ4TRgM2H4T9/1yuQYOwP gotfqwMlnkIdZJNUozc3lsdIbdxCEGs02t58oTedG0L2ltReEckrSU4vJ8fF/dfz9qW/ mevsquLwFH8VhQ96UhoFNhKIzZ0PceK82ECmNxbaMZy2vSPy9rfKqgSiIDo/zPCbAQ0Z Een8vEev1BMry0nzh4PWpx93P8q2JsjWMKOrwe8PIb4mmML4ZDJeAe02cif/dtbCXIcZ nTcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jj1BMdGR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x24-20020a656ab8000000b005dc7e971180si7198663pgu.543.2024.04.22.00.12.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:12:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jj1BMdGR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E9BF282696 for ; Mon, 22 Apr 2024 07:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 797694AEEF; Mon, 22 Apr 2024 07:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jj1BMdGR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8CAC148CF2; Mon, 22 Apr 2024 07:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769839; cv=none; b=IWhwdpJNULj9w/ah0jtWxy3ziRMdAVhvf9csFef7nTWPxswC2ttDr7fu5NmxX1IlLNpd0scMAE1rdd2Lhkx+HG9z/q9v7DQY5DZ1X3hFlZsgGfyWdjdMZO/WlTmQi/YYlh50u1quWy2f8bbCiENpc6xpCsIR1QDzepdHdwt2/kI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769839; c=relaxed/simple; bh=KFsVNGLXwmalWCExiI1bfO6IRb+bF09aXGJFizeOp2o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e3+EB1+Yf8NPTqpYcJsIRLAdAp7G1ljprXLthk8sglgKDVI2OfMGtwWydfSQH9nelbRAFF58bemN6eh+e7nZrz4GAHwGTbuR3r0jfrNoHad5CNMx0ZRTKxocm3Kt4Mr2ppfTVOqP5ZfBV7iwIGr/jQHmoKMsrLyJHAqMu8vKSnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jj1BMdGR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DABEEC113CC; Mon, 22 Apr 2024 07:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713769838; bh=KFsVNGLXwmalWCExiI1bfO6IRb+bF09aXGJFizeOp2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jj1BMdGR1FrmoIsUKIUW9iBgDUt/xXxF3tllfdOwY4sI5jrPEPE0EuKLsTJNY1/jI qqaKK2dCBfFrh2ZouMdmvsjTywEhjw0Tp1aXnj2Vba1EE94AlTZCeto2KdMcs7iuta 3OY8E4UWjGeqyCIt12BnUZnwhRbVOhp/WGwDg8VeeIRz2QOSiXcsznprm6s9Fugo/L Tv4sVXFifVn33gtoI68Mbj6hKIq32j313P2GTUzUOm4uHUHKkIivrM5oqvkzVhQXOp 3berZULi6Zi+BjfzP3t/AwguZ9e7uvjBCuLScNG2KzAoifIjhvZCiHquglQ2bfVcav JQX8QH/ZKIjgQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rynou-000000002ZM-3EbG; Mon, 22 Apr 2024 09:10:33 +0200 Date: Mon, 22 Apr 2024 09:10:32 +0200 From: Johan Hovold To: Krishna Kurapati Cc: Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , Greg Kroah-Hartman , Conor Dooley , Thinh Nguyen , Felipe Balbi , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Bjorn Andersson Subject: Re: [PATCH v21 4/9] usb: dwc3: core: Refactor PHY logic to support Multiport Controller Message-ID: References: <20240420044901.884098-1-quic_kriskura@quicinc.com> <20240420044901.884098-5-quic_kriskura@quicinc.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=us-ascii Content-Disposition: inline In-Reply-To: <20240420044901.884098-5-quic_kriskura@quicinc.com> On Sat, Apr 20, 2024 at 10:18:56AM +0530, Krishna Kurapati wrote: > Currently the DWC3 driver supports only single port controller > which requires at least one HS PHY and at most one SS PHY. > > But the DWC3 USB controller can be connected to multiple ports and > each port can have their own PHYs. Each port of the multiport > controller can either be HS+SS capable or HS only capable > Proper quantification of them is required to modify GUSB2PHYCFG > and GUSB3PIPECTL registers appropriately. > > DWC3 multiport controllers are capable to service at most 15 High Speed > PHYs and 4 Supser Speed PHYs. Add support for detecting, obtaining and > configuring PHYs supported by a multiport controller. > > Signed-off-by: Krishna Kurapati > Reviewed-by: Bjorn Andersson Reviewed-by: Johan Hovold