From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A8E1C433B4 for ; Wed, 19 May 2021 14:44:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F67461244 for ; Wed, 19 May 2021 14:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354612AbhESOpX (ORCPT ); Wed, 19 May 2021 10:45:23 -0400 Received: from netrider.rowland.org ([192.131.102.5]:42719 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1348494AbhESOpR (ORCPT ); Wed, 19 May 2021 10:45:17 -0400 Received: (qmail 1166961 invoked by uid 1000); 19 May 2021 10:43:56 -0400 Date: Wed, 19 May 2021 10:43:56 -0400 From: Alan Stern To: Matthias Kaehlcke Cc: Greg Kroah-Hartman , Rob Herring , Frank Rowand , Michal Simek , devicetree@vger.kernel.org, Douglas Anderson , linux-usb@vger.kernel.org, Peter Chen , linux-kernel@vger.kernel.org, Stephen Boyd , Ravi Chandra Sadineni , Krzysztof Kozlowski , Bastien Nocera , Al Cooper , "Alexander A. Klimov" , Masahiro Yamada Subject: Re: [PATCH v10 2/5] USB: misc: Add onboard_usb_hub driver Message-ID: <20210519144356.GB1165692@rowland.harvard.edu> References: <20210511225223.550762-1-mka@chromium.org> <20210511155152.v10.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid> <20210518194511.GA1137841@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, May 18, 2021 at 02:40:47PM -0700, Matthias Kaehlcke wrote: > > Could you also have a look at "[4/5] usb: host: xhci-plat: > Create platform device for onboard hubs in probe()" > (https://lore.kernel.org/patchwork/patch/1425453/)? It's a > relatively short patch that creates the platform device for > the driver from xhci-plat as you suggested in the v4 > discussion. I'm not the maintainer for xhci-related drivers. However, there is at least one thing about this patch which looks suspicious: Adding the onboard_hub_dev pointer to struct usb_hcd instead of to struct xhci_plat_priv, where it would make a lot more sense. It's also worth mentioning that this approach won't work at all when the onboard hub is not at the top level (its parent isn't the root hub), or when more than one onboard hubs are connected to the same root hub. Alan Stern