Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2902425rdb; Tue, 6 Feb 2024 00:48:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ8W7fynhrfkiak/sEzy4EDdA6POw2ZTkW3xMUUMxYsUnktQfKSwbawQy77MMGpO1hLoIY X-Received: by 2002:a17:903:94c:b0:1d9:e18b:d916 with SMTP id ma12-20020a170903094c00b001d9e18bd916mr302548plb.28.1707209280399; Tue, 06 Feb 2024 00:48:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707209280; cv=pass; d=google.com; s=arc-20160816; b=mQEFgjjd2CxRLd7190rWHNNsp2TkAewuOkudB2U0wQIQ2tnFMV6Ifn1h/W/ZZ11agl UB7Uu1gAFyIVwbVSVk2yzqDf5upON6nvCWTpyblS0c4miBURHzFOL4Ge3LqViSdUq8l+ nhBjfr5wtmSrSQ3tFC65lkMs6JkJ+o22mUMQBN9f9YjEBYXQAJrJHUKHA7g/WKV4ITZA MFMpPe6DCQEnu7d2bHKX9bCCW+bT9RETWe00mo0V1h3MmxsL7cGCB8mzTJMXqIEGnQUF sCfddQPU48tuEWc9yb9lMvl5WxdBq96untJar00lo6FLvSWpzU7G9WWyYdHOViSL8kdN UHHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=9hLaUYbbeJoWGCaeZiJdH6jtkwWlEbZlGqXl0b29hVg=; fh=ZJOt+UaQqliPlGSulw6Z8c0RFHcFiF+ZiDdh3uibRQA=; b=ykhota2Zr0lyoJBVP9AVUpIc8AOe4V5xonSt0WwGxV0Yl747X9CkjsgAffe6m3xmIS /14yyeK3WkQz6l1OzFhG/HGWyXNk6AwQzOHxU8E6ap5C0BYpTt2okhzyKI2krU6PrmbU kJAGFQ1aru4/+kIue2LD9ko1IuNInbl8V6neZOLHJ3gIE34VRO7RPMrI7Icy82t7BqpN Sh84Ao0GNoYtXhKP8IW4TcAUQ3yzGesuIaJ66QKyilPzgKWH4JZYsDJyXko9w5IOQlsA vMw2ZhV6LJ2InIvrB5pLUYgyokIGKayDBP6sT/cCPScX7MojvL8aHKldAwN7YX8NEY0w 6Btw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ct37zu3U; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCV/NSP8cHdMmZkFKn/gDhHrCnVskCTtEltjWpLRLTbVuWKzYtfm5644h/KbOZJnJGGY+JrZ5v+ilqvr8G+lVnF+oJP8da9F+y0jwb6rIA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f11-20020a17090274cb00b001d8f24096f5si1294299plt.110.2024.02.06.00.47.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 00:48:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ct37zu3U; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3A5E8B25328 for ; Tue, 6 Feb 2024 08:46:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD6CA12D16A; Tue, 6 Feb 2024 08:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ct37zu3U" Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6008F12D153 for ; Tue, 6 Feb 2024 08:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707209052; cv=none; b=nQXWimoRVQ0/+kuoikb1x7Ly/uHT5HWqp03dPU3gFCRjRXyW+GQcuNW8UzJxUJtE1B20NKTK1SMT3iWSNh5GX7kePLVjDtnDIFS3DNMDfL55e3cXL8RPjJHNVTLSAOtWM0SwPAPn4kBWWsRd4Qcn2u6SEW69t9Y/YwoWMLkqND0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707209052; c=relaxed/simple; bh=FqCTwk7sUruwzRaqSXCYnXyGYcQjWZ8am86nQvU4LWw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EIOYkElnh30pZFl2C+KQ5Aqe7GjnDRDPed5A8uzGlh2zS+ME/aViD5nJnSIzJNtHgto1yVJX1n5XTXVLGo//fJBYjtV0mjKeX5Ni8mB/9ORLTA75p9qlt+oHVeb1/APBWOVoDimDpXSluoWNBIT9rtUlh/r00yN/+V/en88+KeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ct37zu3U; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6047a616bfeso3735737b3.3 for ; Tue, 06 Feb 2024 00:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707209049; x=1707813849; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9hLaUYbbeJoWGCaeZiJdH6jtkwWlEbZlGqXl0b29hVg=; b=ct37zu3UT8Yi/o4nWabm99gIXob+vTWEM6y73ADJetKsJUTrzWc9RmMz1YkWugABcK GqRhpSnBpM296qroDaXMfDgj4JOtCGYiFxP5IBKQyLhBtjIEFOBZX7PCKOeFKm61MgpS YSUlyeHFg9JR7dqQHiyJsSA6fe4SATf1fNp5KSq5I9VAfJ995aNWdbqNTbHNilwVKxqm ckAadA8YdSSkPVyALTDQhVZSr1e0IrUa8pEH3p7nX8vkgZsBWJHOQVbqq+yGfCwjDAV9 tgT2aJImiQOjYSv6JGfVI8lQH7lUm1sfAmFvhwVJrOmLTFoIrtJR/gPzWSmm/aYkjZrZ /Sow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707209049; x=1707813849; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9hLaUYbbeJoWGCaeZiJdH6jtkwWlEbZlGqXl0b29hVg=; b=Dn6PwsuJGAvuv0J+nnpm2eiD5kQkPRKM6xRPFtUjExIGc4JYe8UyTPoW8rrbxVJnUC UttgMur1k/aGbYnkZBf3XbpIBgRn2lpGd6s/92Pjz8wxxlVlMWWk2KTvnlgziucUMEXR wGuQLcDegE5kggdj8v1zgdhsWiMCK89IBtV+QTOjNAKwAajB3x4LufbgI9rpMOTwdSZf clVlSOjvIQ+x0V8GjA3a/dj9H3tl3ftkehw0rWPkUzUQnnQgDRsEJV6Ky9lWC+qspBzD GjcqhYmzYYw1qjoAvVr88DzPiTFS0ehbPZyDTFQuEPZ87IbDm/9ejv81YfyOIqQFhUFC Ptww== X-Gm-Message-State: AOJu0Yw2LaDZqpg3KfW3JicRVqMlhxB3ee7GwBYK+U7vN5WFwOGyvYm+ /DLv6umkvqTtjQ8EluwNhYCMgP0q0Zzkzru8AH9jTIMoj2GsyEqRqd5QfgKe5DpmS2P1HwbxvxR p7lcemwz5UbQMnIWcaSjrMCPKvu8O2Jotkzmv9g== X-Received: by 2002:a25:ade3:0:b0:dc7:1ab6:6aca with SMTP id d35-20020a25ade3000000b00dc71ab66acamr841976ybe.63.1707209049260; Tue, 06 Feb 2024 00:44:09 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206051825.1038685-1-quic_kriskura@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 6 Feb 2024 10:43:58 +0200 Message-ID: Subject: Re: [PATCH v14 0/9] Add multiport support for DWC3 controllers To: Krishna Kurapati PSSNV 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 Content-Type: text/plain; charset="UTF-8" On Tue, 6 Feb 2024 at 10:15, Krishna Kurapati PSSNV wrote: > > > > On 2/6/2024 1:30 PM, Dmitry Baryshkov wrote: > > Hi Krishna, > > > > On Tue, 6 Feb 2024 at 07:18, Krishna Kurapati wrote: > >> > >> Currently the DWC3 driver supports only single port controller which > >> requires at most two PHYs ie HS and SS PHYs. There are SoCs that has > >> DWC3 controller with multiple ports that can operate in host mode. > >> Some of the port supports both SS+HS and other port supports only HS > >> mode. > >> > >> This change primarily refactors the Phy logic in core driver to allow > >> multiport support with Generic Phy's. > >> > >> Changes have been tested on QCOM SoC SA8295P which has 4 ports (2 > >> are HS+SS capable and 2 are HS only capable). > > > > Thank you for your patches! Have you tested how this patchset > > interacts with the USB role-switching? > > > > I'm asking because it might be easier to define DT nodes for each of > > USB ports, which can carry the PHY properties (and also other DT > > properties if that's required, e.g. the ports / endpoints and > > usb-role-switch) rather than pushing all USB PHY links to the root DT > > node. > > > > Hi Dmitry, > > Role switching doesn't work for Multiport controller as it is host > only capable. I don't think it will cause any issues for OTG capable > controllers because they only have one HS and SS phy present. So there > is no possibility or requirement for having endpoints per port in this case. Is it going to remain host-only in future? -- With best wishes Dmitry