Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3272965iog; Mon, 27 Jun 2022 12:41:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uAk+LYpLG0oMqgBBcRxVjkKBo6zwuv5KHIqBs0UaF6w9wuX1RlcLfS1Fd5KBxwAdpi5gMS X-Received: by 2002:a17:907:9620:b0:722:fc5e:3259 with SMTP id gb32-20020a170907962000b00722fc5e3259mr13670719ejc.579.1656358911205; Mon, 27 Jun 2022 12:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656358911; cv=none; d=google.com; s=arc-20160816; b=HTMhwc/BjHsCbveU29XomnRlVuJ3n92tVWELMrAleQg2RWh/hZqpN+SzCDf4wcLdcP tCH1sIk0WK0xT+Kz5Lz72An53na1UVkccFORir9t3m963ba3he4UcW4dcjU8GrNTFkjR cHTdmiJyJbFl9oKa6vH1U2+3vq+GN5E5RALCOSro3M9UCQJ5f7L7PxDh4VI7izDsDLck 7SO7DTcPli0uN8Hy3tiqtbCslVdFyvU2uMc4evIEZ9Xkey4yrgwekoUuR0+1nWVi94CE lWNKIHsSCuvBpUUB2XmdOlJDIByi5bg8RatBYpT2Qc8OlVpawCsdZs/0D8b9k6wIk79E Os/Q== 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=OwptFnOeVufNyWYVaUbNezAsNgxBLnSp5YRWWMPGeU4=; b=GU1Lchq77hUH30kP6GrSWQJkEA2+Wc7DDaOmgsjZVrJY2l4ApGQf8DyMpiYgML9V8R d+VWE3/X+XosuojDrrq1I9ZZUJ/o10Vk4hELQf69Q3PnPfsTKo9ZBTvY8XytvKyXb1YP khVBauhmNLXRSF9pD0nAqXjdoko7oGpNW4sP6qD3tCio14Vi/dncTE6xkk2hBzvQ+wuX 5nd+KkXwGzyu8DAh8f3LMM3fcstYMzczWXsrk05TMaonqf57gVT8eDeWDV9jt2yCCXw4 SETO18AcgT+MOtyKywpQYHJE/TX/VYrbNkEhPSChQSXkgxIUd5UuVKoWYJwamN50nVAD Ofrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Nep8adCr; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp13-20020a1709071b0d00b007235473b2fesi811907ejc.209.2022.06.27.12.41.24; Mon, 27 Jun 2022 12:41:51 -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=@chromium.org header.s=google header.b=Nep8adCr; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240333AbiF0TG3 (ORCPT + 99 others); Mon, 27 Jun 2022 15:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240035AbiF0TG0 (ORCPT ); Mon, 27 Jun 2022 15:06:26 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5402639 for ; Mon, 27 Jun 2022 12:06:24 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 23so9939659pgc.8 for ; Mon, 27 Jun 2022 12:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OwptFnOeVufNyWYVaUbNezAsNgxBLnSp5YRWWMPGeU4=; b=Nep8adCrywMhk8ZutjZQ3tfryiXOviRDQw/MQJ/JqaCRwLAZt0pJQkuJPU5dUZf0T8 mzkjbRZ2Ht+PdUAcSPscDpb9zx/DbqWcULKOOejsjs9DKG/rTHE+7L/G+JDzAmlu5xbC cXz3xW2lTdrodfN1MJJZBsb4eykNpRuRhXsMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OwptFnOeVufNyWYVaUbNezAsNgxBLnSp5YRWWMPGeU4=; b=Pj79NCCFlRTH1vhE8VWv6FNmgBzj7tQf77pchMIWRq08Odli5ldm+VqyccZGmOlZxz vlqDGU7bkuFWBN/O3E7QA1Din8NdotlEgPCYITVWx+doghi+KBYRpWA0lYIdWRx1lULp gs4HJq2Zkl5VYLxDsHF69eLSREXunXfNlBVVkuR9Q3MHsK6/TEZXJtsWJlBFlLrhfj7u iTvm7uv9ZKjhNWACQ5A4vv8AZ+RsX3/3jMmByifiui774NkUwDzxpEA1UTiCxvsxK465 JMOXOpct5tQNZY7yrksgK1oQMLKQOLZ9wOG8YY7xYUl9hycCQkPgjNrd/JejawCNyWyB kjKA== X-Gm-Message-State: AJIora/FtP0P/qRLbMcUm7EQbRB4Plnu6hBw7MxtUb1CzFL/7lVurh1Z RlZrveQBK61XxmXqDK3yemUrcQ== X-Received: by 2002:aa7:989a:0:b0:525:252f:3c51 with SMTP id r26-20020aa7989a000000b00525252f3c51mr510250pfl.39.1656356784404; Mon, 27 Jun 2022 12:06:24 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:f31c:687c:3a61:62c5]) by smtp.gmail.com with UTF8SMTPSA id f9-20020a170902f38900b0016a51167b75sm7523839ple.286.2022.06.27.12.06.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jun 2022 12:06:24 -0700 (PDT) Date: Mon, 27 Jun 2022 12:06:21 -0700 From: Matthias Kaehlcke To: Alan Stern Cc: Doug Anderson , Greg Kroah-Hartman , Rob Herring , Frank Rowand , Mathias Nyman , Felipe Balbi , Michal Simek , LKML , Krzysztof Kozlowski , Stephen Boyd , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Bastien Nocera , Peter Chen , Ravi Chandra Sadineni , Roger Quadros , Linux USB List , Geert Uytterhoeven , Souradeep Chowdhury Subject: Re: [PATCH v22 2/3] usb: misc: Add onboard_usb_hub driver Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, Jun 27, 2022 at 02:54:03PM -0400, Alan Stern wrote: > On Mon, Jun 27, 2022 at 11:14:47AM -0700, Matthias Kaehlcke wrote: > > Maybe a bit more verbose documentation like this could help: > > > > Some background about the logic in this function, which can be a bit hard > > to follow: > > > > Root hubs don't have dedicated device tree nodes, but use the node of their > > HCD. The primary and secondary HCD are usually represented by a single DT > > node. That means the root hubs of the primary and secondary HCD share the > > same device tree node (the HCD node). As a result this function can be > > called twice with the same DT node for root hubs. We only want to create a > > single platform device for each physical onboard hub, hence for root hubs > > the loop is only executed for the primary hub. Since the function scans > > By "primary hub", you mean "root hub for the primary HCD", right? This > should be clarified. Ok, thanks for the suggestion! > > through all child nodes it still creates pdevs for onboard hubs connected > > to the secondary hub if needed. > > And likewise for "secondary hub". > > > > > Further there must be only one platform device for onboard hubs with a > > companion hub (the hub is a single physical device). To achieve this two > > What do you mean by "companion hub"? I think you are using the wrong > word here. If you're talking about the relation between the two logical > hubs (one attached to the SuperSpeed bus and one attached to the > Low/Full/High-speed bus) within a physical USB-3 hub, the correct term > for this is "peer". See the existing usages in hub.h, hub.c, and > port.c. > > "Companion" refers to something completely different (i.e., the UHCI or > OHCI controllers that handle Low/Full-speed connections on behalf of a > High-speed EHCI controller). Yes it's the relation between the two logical hub. The term 'companion-hub' stems from the binding and has been around since v6 of this series. I guess we should update the binding if the terminology isn't correct.