Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1301964pxj; Fri, 21 May 2021 10:48:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrQdtPHSonHjIpx+5tShB4/6CRDGLy7emNz9Cu40ipqa9PplXoJtMHG5+DqPK503htG+J+ X-Received: by 2002:a17:906:87d0:: with SMTP id zb16mr11385330ejb.467.1621619295313; Fri, 21 May 2021 10:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621619295; cv=none; d=google.com; s=arc-20160816; b=fSGZR8NFfgn+wjUXwfkOT58169BEQ5IppURj2jCOQ9IMZn+12A9bge2kLr4ty3SF/w it3d/AUjIYdiWkeyJmE78us1k69PsEOjnb+c5v19GoMFVU1RtwCdRcvP2y+JHpldLoQ6 Whz0XjLxXPYmLEiM/q3+wXQ8brbRt3gktcvSS4S9wa3RD1ULJVMD24Ibd5bOoVJNVB32 bWFRltQ+bQ+dG+DS/iz7Zha2Cf0uOzqkUirpyIWCcXHtrZj3JLVGQLSaN8WFzbDoMH2H e5AHXkwjLUwEwQZ4Bic6bLYl65PicidUj+WojfjYUFz/Y8o/oy+dM3xteYJNxQfhQBAd yb8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NB71b6K5JajzoRu8iO3Ds6sgkNHdHq+bnsFHnoZPtSo=; b=qS+jupauqsRQPjCergZ1F7k3rQk5wSTxN1WjRCbfRGRewXtkWvAqJJww9Yflw3miL1 HRY6p8wxUBc4TylRDH7t1LXXqVmoBsu3mvNS5pwewtfzzC394JLwKe3r4h8NPH35IWLz jpXOgv0x/ChHPOKooVjvTyWidXE4XRicZCPHbpC5ylZfiot5gr/DKGXMh2J3D4XvMY5T GE5ZENrb3sSH5mz/dazkKJqAV4Ej5DjScqhNBmZaAUwMAIw0gDiKnVyy/ej+951kXXb9 t7Yzp6tH9LzaG2ZX8Ag3aAnh1+HYSIMifFa8istJu6Gpqb5zQXvw3P1MmE2bPknhu+Rj cD4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si6194608eds.113.2021.05.21.10.47.51; Fri, 21 May 2021 10:48:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236140AbhEUBQB (ORCPT + 99 others); Thu, 20 May 2021 21:16:01 -0400 Received: from netrider.rowland.org ([192.131.102.5]:58119 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S236106AbhEUBP7 (ORCPT ); Thu, 20 May 2021 21:15:59 -0400 Received: (qmail 1224919 invoked by uid 1000); 20 May 2021 21:14:36 -0400 Date: Thu, 20 May 2021 21:14:36 -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: <20210521011436.GA1224757@rowland.harvard.edu> References: <20210511225223.550762-1-mka@chromium.org> <20210511155152.v10.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid> <20210518194511.GA1137841@rowland.harvard.edu> <20210519144356.GB1165692@rowland.harvard.edu> <20210520020521.GB1186755@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: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 02:14:15PM -0700, Matthias Kaehlcke wrote: > On Thu, May 20, 2021 at 06:41:23AM -0700, Matthias Kaehlcke wrote: > > On Wed, May 19, 2021 at 10:05:21PM -0400, Alan Stern wrote: > > > On Wed, May 19, 2021 at 04:07:17PM -0700, Matthias Kaehlcke wrote: > > > > On Wed, May 19, 2021 at 10:43:56AM -0400, Alan Stern wrote: > > > > > 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. > > > > > > > > I can move it to struct usb_hcd if that's preferred > > > > > > Thinko: The patch already has it in struct usb_hcd. I suggested moving > > > it to struct xhci_plat_priv. > > > > Ah, didn't actively recall to which struct I added it to, it has been a > > while since I wrote that patch ;-) > > > Agreed that struct xhci_plat_priv is a better place. > > Or not, xhci_plat_priv is optional, which doesn't make it a good candidate > for holding a field that could be used by any xHCI controller. You could always allocate an xhci_plat_priv structure in cases where an onboard-hub device is present, if one doesn't exist already. > Should I move the field to struct xhci_hcd instead? That's another option. Look, I'm not the person you should be asking about this. What I say doesn't matter -- you need to get approval from Mathias Nyman, the xhci-hcd maintainer. Alan Stern