Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2902400rdb; Tue, 6 Feb 2024 00:47:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVdt6mE0s9RBqykIKVtlsF9Zs5kNoHmSzLSZ5gw0vMOHItSEleDH3w9fV2HDEKlYqYcjh6 X-Received: by 2002:a05:6871:8915:b0:204:a85:2580 with SMTP id ti21-20020a056871891500b002040a852580mr2357011oab.34.1707209277531; Tue, 06 Feb 2024 00:47:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707209277; cv=pass; d=google.com; s=arc-20160816; b=t+725TrpG33Gfw03ZMXGW19eEJYDC1ZZrsINYOuvSVLM5UPxVqCKjwMP3YBpBz+3mM 45qlfuW0ZCv7d52Qyf6YP9UQeZTyjJ9tI3fKnvuwVOxb27G/9QxLbWktAkRfED7Jsydf xFISgSE8TX7AWwARutPI7n2FAJUZp/kyjxXeX2bwkygPXO+gfTY7JexgwKCDAx7vWEy5 Qjjwf3QEqP7Q00Go1OGbbRv+N5XAxR2JAA9HPoErnXPtKGTy4icJU/2vGFaH1ygWMqDN vDoaoOFofvtgf6/P8jdfWMKRa9TH0xbQTbSlcMqewhrDqJW/vHFsQB5sbq9Kx95REOzf qBOw== 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=241goNC704SoeMyhz35IEUwYkPmqIvo84PGH7+k+HH0=; fh=J+xr4ICLpGmRhtl+2h1G5og+7NCoy7b8b81V6bpwZqQ=; b=lnM8AonWXbaeENUMRLxWjET2bVy36xTPi9HymURU+Eqb5OD3AFPUjTKuILqoUcLyr3 kVX6FV+MWWTtp2z8TB1VsLNTf3wbsSwOLXneL8aClqaFJdCRNeKcpAujxs4u1xTUEHfn RvpjqQZW+zdrb1OodsVQXjD9WD4IJqBO+ZZ8G+SVHyQxtNXHSoSm4bi9iS2Jt9EZ8x+o s0wnuoe7hj7TSY16nr5lSlseZj1+p0gQBSASZtdpMluyKao12AEY7Yb6BKwugCI5uUxr kKJ8t/AsCNJiYRz5uuuq72SKSiHzykK3Z66e6iT2ItFJR2HIK0gBPlP777p/Jw1iyZ2o LWCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R4kJVydV; 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-54523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54523-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; AJvYcCU8pyxwpaP2YCxDRy9g1xF9Bdamd0J4Bq/A3qguv/ojuHu17yQI07ZG5nQAdeG1pfCswjC+ucbo33D1GuCLbnDCIpvpfT1OW2Zbx/YYYA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k8-20020a635a48000000b005cdaa0544cfsi1273026pgm.670.2024.02.06.00.47.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 00:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R4kJVydV; 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-54523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54523-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C342282A48 for ; Tue, 6 Feb 2024 08:47:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24ECB12BEA0; Tue, 6 Feb 2024 08:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R4kJVydV" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 B522876023 for ; Tue, 6 Feb 2024 08:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707209264; cv=none; b=ElJWmzxpFKNnxdJZHvw5Mu8KN5KOkgBWs8WcTZ9YHEAPvIJYtChrwzrqAPX6xO5MQpG5aIbVeqnDkAFtdxcSjXe6o8AkNaqC7mrpeoHXICGSUjRc9JMMtOakzvHiFNiY4lvSyhuKaClyEd8ut21NS5zPvieqZm1LLaoVQKOwg9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707209264; c=relaxed/simple; bh=W87wlg3gwwpyRy4uv6ZN7M5kYoBBVg65k9Z3ZO0TPFw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nVDd0XBByKt8ONm5MXeBGpxzIpDt56/ByuvOvNUU2v5FGLP+a0FcN4+BK30fYKpZCsmy5PIv6/9hwx4x6DexhWJjuAsiAH+x/ESaa/n5FT/07xtLlnQuYI+t7NANq9Tgfbb7q3o9bRhOzXApuPGebPA4Lv3iRVlCkb5F7suuP1c= 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=R4kJVydV; arc=none smtp.client-ip=209.85.128.175 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-f175.google.com with SMTP id 00721157ae682-60406302a5eso6267607b3.0 for ; Tue, 06 Feb 2024 00:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707209261; x=1707814061; 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=241goNC704SoeMyhz35IEUwYkPmqIvo84PGH7+k+HH0=; b=R4kJVydVxPjfwktu5Wo6FgCYBFvK7raq2p881caHm9ho4upL3RVSw/nHNYKG8f+aLV ufaiQMbs/kAF+WSP2BgDJbBVIIi2Npvl6h1lLJiwcHpqnIlSNs3GXx1z+24qaXp8A6BI QoXxwjy7cBSnHvXwbxznz/kU/YGphWGnZ5PKRg2q9VqIZu7GIUEUFa8YWDuhn5ywk5/4 p+qlzBKk6dnGD2DJ5mp7/jlJrJWFST9GtEreb2ObKXQJ8MH+AYUK9YLXSEqW8u8djfFA ZIkQKkHpyVIWDW/6btB89fIRPpMO5+rapnemnzMXj5ysa349PKz3hj8jsoBMcpGs4IJT HyYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707209261; x=1707814061; 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=241goNC704SoeMyhz35IEUwYkPmqIvo84PGH7+k+HH0=; b=xKgLr5NmTgO1kaXGPfaoAofaTYsnrS9630TS9F9rFBrOOsqNJQcX8MTFf3Vi6fIoxE E7X5QtJm58nqRH8qDmgYdld37sLfKJnQ2YWtVlN+uyVyyHN6lnyKcU+9CMe3Tu0SZv3c AuthojHBURn92Vhm9r+F/v51w1a/oH6tPPyubm4f2P7uKTfmLubYBoK/nngvbzhOjb6r L3qPyyOnv7vv9pyDJ6yZ5FsggdVHo40NwXJdUdGOQzAyocJx78I6jZCHBMshpzNeTFha 6oDRjdCyLbB+TGbKlqAj4vai9ZRMNx7ffy+R+jJ1GXe6h838HEFV2CnJM4vLMidFPCeW //ug== X-Gm-Message-State: AOJu0YxVR0tM7Lv/nJYgBhgWj9P1LG1lVDqOXDL2b/p20pa7oXT8HLUK 3mVSw9tjEfIN6H3vHbWuk6/Ojpvmc4YVDVZXmpAenif0Wk35LmUmRzfxC/MXgZS+C+y9oKP8LVr ElC6/lKPEFz3COPiOpVyt4DM+TquOQ6rM7Wcefg== X-Received: by 2002:a0d:ead3:0:b0:604:7055:98a2 with SMTP id t202-20020a0dead3000000b00604705598a2mr1057489ywe.3.1707209261642; Tue, 06 Feb 2024 00:47:41 -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:47:30 +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:45, Krishna Kurapati PSSNV wrote: > > > > On 2/6/2024 2:13 PM, Dmitry Baryshkov wrote: > > 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? > > > > > Yes. I believe these are designed that way. I don't know of any > controllers that have multiple ports and device mode works. Device mode > can work only on one port AFAIK. Ack, thanks for the explanation. -- With best wishes Dmitry