Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2870303rwl; Thu, 13 Apr 2023 12:02:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bCKLBEIsKuei8HxflfnmZkJMhIIu25N34nvj4DBKPJYi4Z0B/aSw33jLJ+VSeQIaq6bBUQ X-Received: by 2002:a05:6a20:8e06:b0:ec:6e2d:5a32 with SMTP id y6-20020a056a208e0600b000ec6e2d5a32mr2939948pzj.62.1681412579569; Thu, 13 Apr 2023 12:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681412579; cv=none; d=google.com; s=arc-20160816; b=gV2Sw9rMZUA+FV9c86JXLYYpfDPXZK75lLVLIIegIOwn5Lv9mxmRLGd/zmNDbmAS07 XQ5LpsDor3c8miaq4FUruwtjuJm3XfnQpVUVWveN8FCW2yZISuB9/J03lYJo0l2nTaVl KV8YBNh85+eZXmrzs+BCxS5nSv2lQD2kIHQI/iNMeKKXVB4DKHQM5VX7uETCD9DPooWe Bi6KbqnbbBXUz6hBSNX1WiJcRN0GRfG6Blf68RRwMQ8Y7WFsRnr/VRJML2CSFZ26F+Ql ezk1LeUa9SBp4Ajzerux+LV/F6ntirrwsGhzTgGevVTE65TF1l9jA8clJwpKJYqEc332 epaQ== 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=bj+U/10GLqXj2YH6vIakik5vgTZzUMJtlbeaT9V0zCc=; b=kE/baQqZ1FaVGZrhS25AqYJhPbvV+RB8Kj2WEHGLJvuGgr2pV62ny5k1k4NMeRt4oO xBX4u68rtHoTb3BNFnQiOYTawXq/bgXKkovSzqk0vkLUFuTk3g67z2nYh0SuTQEMXi24 e4d8hStpFflmxTW3puZH4BBJMxGY0dn3tNNhqcI06drp4mYD5frq6pfZ2iBG7RCIwRn1 SKrsUFOQfeeSsx3sZapyatZDs1L/Ei2yGdnhuqdZaAIjouQasG7CKamtI5d1OczaBpuj 3Op71ZAzLvgW9GebShC0A3DP7y8jVH03NqVKyRBtTqdAFlvrLURlf00Qa4NAxWkF1pHi eMsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ALWcmvPL; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a626d05000000b0063b1458a290si2156969pfc.329.2023.04.13.12.02.39; Thu, 13 Apr 2023 12:02:59 -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=@redhat.com header.s=mimecast20190719 header.b=ALWcmvPL; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbjDMSzd (ORCPT + 99 others); Thu, 13 Apr 2023 14:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbjDMSzb (ORCPT ); Thu, 13 Apr 2023 14:55:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9A98211F for ; Thu, 13 Apr 2023 11:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681412088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bj+U/10GLqXj2YH6vIakik5vgTZzUMJtlbeaT9V0zCc=; b=ALWcmvPLcm53sqSL8Ci7cGMcaCaFc1Ox8A6L2IAOBqD3vd/sx4d4ILdUvvbqfpb76DKv5Q NrT/xsCAYu7J4UrQo6e/SltfscPkS9qgqk5pXE6g2eUEQvTv0UegDom5zplRuQCUPMlCBh GJtq01367psjxQ3KpP/EvY9dfFpLxXo= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-631-lapS62fZONWEj2Nn7GvgoQ-1; Thu, 13 Apr 2023 14:54:47 -0400 X-MC-Unique: lapS62fZONWEj2Nn7GvgoQ-1 Received: by mail-qv1-f71.google.com with SMTP id p14-20020a0cc3ce000000b005e14204a86bso19496340qvi.10 for ; Thu, 13 Apr 2023 11:54:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681412087; x=1684004087; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bj+U/10GLqXj2YH6vIakik5vgTZzUMJtlbeaT9V0zCc=; b=OqBVk5mizhhWudjPtSpsmEMStK55HOWzkbU+2AN+93iH3y0YHGNGq4oDYG9Y14R913 5gMVGRWxh3rf2LxHvdWrzRgNOHuS6VirWC7MaCgut3gUZYIG45F7OeOyoDCus4eaOwto D6zMfpfkJsO6ojFkYx4Rz9yaPYn4r4F+d5N0fuaMou9dhOvn/l81CmK4hE1nnia0EAv0 wkYaXNijvaB77NAS6M3IoIcd+WqUzpoUgeudiFmyhgEklElxL02sNGuPrHh949gEOpLR u2chTFqabw4gBEbFPkDBFH3hVi2JsK97yHpP90QxL5G5HLU0n+sMmWeBYmI7IM3CMIeb PS1Q== X-Gm-Message-State: AAQBX9dBr/7h3bld7bGpHdQUpWfpR1nHEuBgPRFGJtERX/wq7SRC+mct sBODM6ilIjcTQwSvn5CKEv9UQtAVvmyqP2ZKxZCJAqDn+498udwBb3JO3JIOWRBUi4i2vfe/Bf6 uDjvvjzE1DaiTPw4U8XGhq5na X-Received: by 2002:a05:6214:2348:b0:5cb:ab2e:b15c with SMTP id hu8-20020a056214234800b005cbab2eb15cmr4079201qvb.30.1681412087047; Thu, 13 Apr 2023 11:54:47 -0700 (PDT) X-Received: by 2002:a05:6214:2348:b0:5cb:ab2e:b15c with SMTP id hu8-20020a056214234800b005cbab2eb15cmr4079184qvb.30.1681412086810; Thu, 13 Apr 2023 11:54:46 -0700 (PDT) Received: from fedora (modemcable181.5-202-24.mc.videotron.ca. [24.202.5.181]) by smtp.gmail.com with ESMTPSA id t13-20020a0cf98d000000b005dd8b9345bdsm613948qvn.85.2023.04.13.11.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 11:54:46 -0700 (PDT) Date: Thu, 13 Apr 2023 14:54:43 -0400 From: Adrien Thierry To: Krishna Kurapati Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , 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_wcheng@quicinc.com, quic_jackp@quicinc.com, quic_harshq@quicinc.com, ahalaney@redhat.com, quic_shazhuss@quicinc.com Subject: Re: [PATCH v6 0/8] Add multiport support for DWC3 controllers Message-ID: References: <20230405125759.4201-1-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405125759.4201-1-quic_kriskura@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hi, > Krishna Kurapati (8): > dt-bindings: usb: Add bindings for multiport properties on DWC3 > controller > usb: dwc3: core: Access XHCI address space temporarily to read port > info > usb: dwc3: core: Skip setting event buffers for host only controllers > usb: dwc3: core: Refactor PHY logic to support Multiport Controller > usb: dwc3: qcom: Add multiport controller support for qcom wrapper > arm64: dts: qcom: sc8280xp: Add multiport controller node for SC8280 > arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB > ports > arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb > controller > > .../devicetree/bindings/usb/snps,dwc3.yaml | 13 +- > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 47 +++ > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 22 ++ > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 58 +++ > drivers/usb/dwc3/core.c | 373 ++++++++++++++---- > drivers/usb/dwc3/core.h | 71 +++- > drivers/usb/dwc3/drd.c | 13 +- > drivers/usb/dwc3/dwc3-qcom.c | 28 +- > 8 files changed, 523 insertions(+), 102 deletions(-) I tested this series on the sa8540p-ride, with a USB Ethernet adapter plugged into the board. The device shows up as expected: # lsusb -tv /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 10000M ID 1d6b:0003 Linux Foundation 3.0 root hub |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/4p, 480M ID 1d6b:0002 Linux Foundation 2.0 root hub Tested-by: Adrien Thierry # sa8540p-ride