Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2750376lqp; Mon, 25 Mar 2024 08:15:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvlnXZ0LSFdcyc3+ZuG0J3tvOWz8/7ZbORx+gX/r2m76e8BZSw2zkPwDQ6xWtSbVozUzGwM2B/sM1L/xSgCw3uA+1ooGv2SAhSI5qspQ== X-Google-Smtp-Source: AGHT+IExf5JRk4QiYN36Ojj00vQ7xUch7Fw5g+l5Z7kH9CCxw3tYXRF+U5v54auLAgPSgiZr8a9P X-Received: by 2002:adf:f8c5:0:b0:341:76bc:2bfe with SMTP id f5-20020adff8c5000000b0034176bc2bfemr6875039wrq.4.1711379705581; Mon, 25 Mar 2024 08:15:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711379705; cv=pass; d=google.com; s=arc-20160816; b=fQsZp3i4EWEWoWh4LdE2qLSO5+bGUpvcgscRn5Xx5Ad53EWWuoYCkePvv9SXpWdM37 freY3uScqq1prlSIQ4XEccmuaQO6zOhYxF3YoqSufai3A3fsxRxe8UAbowvL67h6Oi1z s54DDziD2cv+KjcsACPm7jhShEnOybXqS5vAzWG8y70/WlTyDy+CAY5AZqFHVuFTU5Cm ug+KyZkhbqpIjAiELe8P5JhYVI6Va3P9Ik8SYpkJ7IHsSsiMGAzEtS7FUcNAF3qFlCjc 6m/IXDx5656RskHpQ5RhlTVnUUCUVnOK3N5LKgfzpGzayptLUP/Jks0GmN9BJZ7br5O4 a/Sg== 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=Y4YckxFwYnhTalRljUrzc6cYBjld6mKORXlB88uEjfo=; fh=PtsvmqCM8YUnL7H6HhLAss7sj5iFelJGGh0AaYWbgrU=; b=yKHoacFb8ga2t7TvMugNrveBa+X81v96AK1ucDQ36rgFBpRuKuiJwKDRsjvKgXp8Z6 cbq5ctZx4klhDHfpY3b42FRoSajj4mXWpXGIyGDugNwbK+O87rhoF3FzwYua6NoI0HaH /h07DUhpPBmB2Gn6mJE1Xu9RFWSZ10FX/A4ihy/6g1JRR+mfpsj6DYg/w5T/c6YnyJhr HSIWG5qGzhF72e91dScPlpQm0/64SS0rBNoTcrna4RucNBUqjBvfynK6i81HWx21klZx G9o0zRDp+Kx4O1igwWYxj7LT2Tgf/6TvThlV+8IEAi9XHG57SqWMSK87Es/5Lde7gNNG Oe4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=knzeYiJl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gs20-20020a1709072d1400b00a47bab621f1si1310263ejc.226.2024.03.25.08.15.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=knzeYiJl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117004-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5004D1F63270 for ; Mon, 25 Mar 2024 15:15:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 090D0136E0D; Mon, 25 Mar 2024 12:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="knzeYiJl" 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 26CBC161; Mon, 25 Mar 2024 12:32:53 +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=1711369974; cv=none; b=mF8s8pvO8ptw3MKPD/ADTe+AFRaNCE1Wa4doZ38TLhfGxtOj4e/+rNaM7J/JaebGDEM9L5Cek6CdYg2X/hEuTvojpp+/PeLHCeb9DrmqjrJpGIKYWfIZ+y9PAiDkH6Rt/+Hzul+1d2uV3P+P46jOPKIk/YQJuT54Nf7TEAlpGyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711369974; c=relaxed/simple; bh=fa889V0P6tJ2Pz1hqZwuxvJ+yobUR0IwbUUrhUxrTjU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M1ZLnf8DiZj9GFRhLUdqcTA/W+Cka5/qCru/1rJdbdpaR9s0Jc4yXunGQFoKaIJHpjSxJ9H3k0s4dSy1T4dByj01qXYazGSm0FUJx3QynIn7c7VoMpy6yZJW1n9Pps+zQo2KgaNn5vLJTyq2hcQi2RgIGl/2HAzGk/5+XWEdavY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=knzeYiJl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A94F8C433C7; Mon, 25 Mar 2024 12:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711369973; bh=fa889V0P6tJ2Pz1hqZwuxvJ+yobUR0IwbUUrhUxrTjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=knzeYiJlUSzPUAhLOoovzbZTHk5SvN0qTYtkwQXlHU94fQqHjh2BKwSiKtTIs1TGI D36+2vXpSodeFr0i4IQB8RDBs6nWQ0/ACDO26NyYi74CZd/Z/liUSBJHbvfq8iKVg2 Qq/OOIbEuvjUJPN2cyfvwqOAhkwp8lBWc+bM5y8hquXUE8ohZEmbIyBv7YFb5XACZv 99G+RLGPYhKc4R3lsi68qZTw9V+tPisFDCRuhRK4hL3adlg2mn91TW5zlipBvRDvOb e/w2kO+VRpZuRtDWuTYlH75MZC03pu+3s6dRqHwCf3MbOgZwLwJDEB3k75xqSp2Lr9 eqZoDZ1V+2vAg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rojVc-000000001RR-2DNi; Mon, 25 Mar 2024 13:33:00 +0100 Date: Mon, 25 Mar 2024 13:33:00 +0100 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 Subject: Re: [PATCH v16 4/9] usb: dwc3: core: Refactor PHY logic to support Multiport Controller Message-ID: References: <20240307062052.2319851-1-quic_kriskura@quicinc.com> <20240307062052.2319851-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: <20240307062052.2319851-5-quic_kriskura@quicinc.com> On Thu, Mar 07, 2024 at 11:50:47AM +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. > > Add support for detecting, obtaining and configuring PHYs supported > by a multiport controller. Limit support to multiport controllers > with up to four ports for now (e.g. as needed for SC8280XP). > > Signed-off-by: Krishna Kurapati Reviewed-by: Johan Hovold