Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp661787rwr; Wed, 3 May 2023 04:35:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4700Rrrt85jtM74xNb1WrL8h0uuz8b/sXur+Cbgpb0jViDxbbPT753zzsDrDDvwH6lFRIC X-Received: by 2002:a05:6a20:a10d:b0:f0:d50c:4ac5 with SMTP id q13-20020a056a20a10d00b000f0d50c4ac5mr26234805pzk.51.1683113726616; Wed, 03 May 2023 04:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683113726; cv=none; d=google.com; s=arc-20160816; b=WRuuMlBWpAhpcWKciHYSUhCRPrW6ge1/LzErcPzt9zDqdnWJyamNWlFPJbCNtgE1NC ICJLjYoC/MojSQcINBORtyqRh+1zB2WWoj46oMCr95c2grgK6xk1keuLNvrY+iBRv+J8 uwDc1Vyt98AlKusExOteN0XuvOelBn0AvBpjZTGMIvLHt7bD7u0smtDcJsyLjPzglegO 4ssw0lPMw6oVMlv1h/XmcEb/UXaL1UY/3aB64D2mdi/N/mfb0784eNRsmXueN7eFbfLs Qc7Vw2FKN+/jZLaUJl17vbNskhqn9HCA1D2hysWyRmyVHAIAaUnEparRso/gWmdN1dXN 7zXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=41aWA+ZSvOVJAbnV1Xaay2BNTySY0f3VK1s8J84iqMc=; b=yARrLodM1OmTBNFcSI4Wtgncp1Tsmbs4g2JZahaOzodim8eRj07HhltZHF+TTzU90s sBU9W60Gh8mJ/k2huyE6kpLrxCkgZ9BRTUHHeSJ4tNj1UP6xowZkKXO+qp/vvDu3fqlQ qLcMJt9r9SYpv7zz9jQLUCezuhBbm5HF0WCBkLRuhSdvu3ndTGrxmUKg1AaxPPvQJkWM /Ue5IfehTrcrwL8ZWbn6EMcf1grKr2hNV3qFagzFMYWjGePzPpt/3A8oG99HfcHvdXrF raPygMjzOg7Zw2Hw78HM8H0/zPQGdJmGpXXpolGyiZpajILXG+Ku2xkvv0C/OGBTPTjk nLNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ks2JmkYx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020aa7950b000000b0063b843131b1si32472621pfp.324.2023.05.03.04.35.07; Wed, 03 May 2023 04:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ks2JmkYx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjECLKp (ORCPT + 99 others); Wed, 3 May 2023 07:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjECLKo (ORCPT ); Wed, 3 May 2023 07:10:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5B526A9; Wed, 3 May 2023 04:10:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 26D3862CC7; Wed, 3 May 2023 11:10:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80EE0C433D2; Wed, 3 May 2023 11:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683112242; bh=s0Ua0IGvfJHjDVRFs1MEv5s7m2oj87gMVXpVRmE+ezY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ks2JmkYxOm4r8x2pfckba6C/Ure5b9zp/hQAQHQjowbCDSnCLwfhzlT2VuhYIRAMF SWpqFzbbBaMAi9kuYtd8aOrX8K6Nhm42DqQ+CYAD2Vb2VNSi4alcoYDX7e5DdkuR/e cD6WCF632kXF2iNHTLMMUD/uMcxSAb7njJPJatnd7bojlNfLJU4oH19OuXeGnWRmVk MERDKuv7c3NYHaOoCyQZ3OV1ZoZQbJxhmhC4GWgnfvelVPEZAZsUm7po+Oec7KR9c7 UMIsSWnqkNAgD4Fed/D7btblZplPfCupRmVOjvR2qjzIUWhVKRueUbc7hfwTDa8Ze2 6DiwuIhMwJD6g== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1puANj-0001mf-Rl; Wed, 03 May 2023 13:10:47 +0200 Date: Wed, 3 May 2023 13:10:47 +0200 From: Johan Hovold To: Krishna Kurapati Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Wesley Cheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, quic_harshq@quicinc.com, ahalaney@redhat.com, quic_shazhuss@quicinc.com Subject: Re: [PATCH v7 5/9] usb: dwc3: core: Refactor PHY logic to support Multiport Controller Message-ID: References: <20230501143445.3851-1-quic_kriskura@quicinc.com> <20230501143445.3851-6-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230501143445.3851-6-quic_kriskura@quicinc.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 01, 2023 at 08:04:41PM +0530, Krishna Kurapati wrote: > Currently the DWC3 driver supports only single port controller > which requires at most one HS and 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 phy's supported > by a multiport controller and limit the max number of ports > supported to 4. > > Signed-off-by: Harsh Agarwal > Signed-off-by: Krishna Kurapati > --- > drivers/usb/dwc3/core.c | 262 +++++++++++++++++++++++++++++----------- > drivers/usb/dwc3/core.h | 12 +- > drivers/usb/dwc3/drd.c | 13 +- > 3 files changed, 209 insertions(+), 78 deletions(-) Note that this patch no longer applies and you need to rebase the series on mainline (e.g. including commit 1d72fab47656 ("USB: dwc3: refactor phy handling"). Johan