Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4579973pxj; Tue, 25 May 2021 11:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0KDisadb6/XWTEpJgz+GQFuKG5Cl+yQ9IPwHOtm/xwxzOB6UCWVGk3SAefrVzbl1Ub0Ml X-Received: by 2002:a17:907:10d8:: with SMTP id rv24mr29699469ejb.542.1621966152328; Tue, 25 May 2021 11:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621966152; cv=none; d=google.com; s=arc-20160816; b=pVqna5BOo3Xv3MyePhXCUKm/jSLa2Tb8/RNSnxhaob9IlE1gTYPuhKb54stYvSMaH8 GetZVBBXasyHwYmE3IHoVa9PRJFekDWOkZW6PRZHb5Wjxhe5Z8HhKRn1N2QEBE8ZTzzY DgoeB4pq/Q9a5HQY3I+A/XQTo16pTyJUU7PaAj/2dGi2LJiDHl9FeoBLKnKQ87AL1sko McCepVCEoqGbKhRS+y3HsT4Q9i3R9KJYhtpTl5fo9z3UHdl9GuA9PI62JIcDfk1WUmUw AxjcbbnauZwcz9PB+cx/ysjFpOh+yRsroEirthUwRJ8IOfc9GJOM+9WtSI/qYsVozGq8 hpyQ== 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=0ZW710WMTVU/rhTJ9pJrGtoEN8Es/IYU5eqz2cSniTw=; b=vOQ2FQBP91+A2Ki72wIoZwwzEzKO+MsgRp5reOv2y+G+uCIppmW6ikEBnrOWM8bfp0 4cODlluVA2KPJSUAVrYATO/En5iaj01nCeqNozwCggARC54QNfk7b/1dOlz94ioYj8fU uxvy4aqZM6syne8foM/BEgX1BkfUIZ7272EFv5xyd265P1vg17D8rYSktYpSKDb/1bKd SFFpwYzl8veIPf0G9Zrz0hy8Am4fx29y9fxVIYX/TIGCSqlXqFLhMWWMU2kQgb7u6yYR GQSrYMAla689bADqKjGYTRAOmjxcXx72wiyttQO7LMGEaSeF4CJzbqbmzdEJ120Za/lv 5hrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mPofpo9R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si893843edw.144.2021.05.25.11.08.49; Tue, 25 May 2021 11:09:12 -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; dkim=pass header.i=@chromium.org header.s=google header.b=mPofpo9R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233727AbhEYRWC (ORCPT + 99 others); Tue, 25 May 2021 13:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233790AbhEYRVn (ORCPT ); Tue, 25 May 2021 13:21:43 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD197C06138C for ; Tue, 25 May 2021 10:20:13 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id q67so7080043pfb.4 for ; Tue, 25 May 2021 10:20:13 -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=0ZW710WMTVU/rhTJ9pJrGtoEN8Es/IYU5eqz2cSniTw=; b=mPofpo9R1ZIS4mJ0nVfiAZhXVI6DrKYvTqiOwseJSvaXOLIhH0qVRYDdGN1k4si3JL E4jUzXe/n8Sn1ZNGaRqlAM8S2KZuID2uFBkgxr/IboVp1NR6PC9lbxeq+gyeyPVmKGXI gdqBB2bdWt4JGUOgh1gBrwCIGZthH9pFR0YEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0ZW710WMTVU/rhTJ9pJrGtoEN8Es/IYU5eqz2cSniTw=; b=pNH677hbGsA60AMeyTH6GomB4myOpXiKG/l6qGRw4J5Q6QglQYfLz3FXGmP+g3nIu6 dSLEBrcarrlOvM5PWDDXxFRFFbwTrSC/4HYNg9+SwISpLGOXH1NBXxpTDdsEBhxh3mwn LqGcLWaWancSOMLT8SvwVvFRrd0+jYaYtA+AuHtlRJkCWUCqSBREank0nep12ytb1mGy EmATYgXRMx+V4//FiCjJbnEWhe2BpVXbmqIX4U3jca9B5jASUJVPEuLwCCA+LOQ9HFr4 K1zCZvisvJKp+2qx37cq+KSYlxMbKFb0Jntdm9qDd+zoTDNl18Ioy3R+9UnJW6BMNxtO WsNw== X-Gm-Message-State: AOAM532DFp3QfY/O9diRhKdfUT8c1XLqEbw4w/CS3y17EKyXKZgUEFTY DbF1nSxYQ4xaACO2sqy9TGSnug== X-Received: by 2002:a05:6a00:234f:b029:2c4:b8d6:843 with SMTP id j15-20020a056a00234fb02902c4b8d60843mr30995973pfj.71.1621963213212; Tue, 25 May 2021 10:20:13 -0700 (PDT) Received: from localhost ([2620:15c:202:201:ab0:bbc9:a71:2916]) by smtp.gmail.com with UTF8SMTPSA id o24sm14593603pgl.55.2021.05.25.10.20.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 May 2021 10:20:12 -0700 (PDT) Date: Tue, 25 May 2021 10:20:10 -0700 From: Matthias Kaehlcke To: Alan Stern 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: References: <20210511155152.v10.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid> <20210518194511.GA1137841@rowland.harvard.edu> <20210519144356.GB1165692@rowland.harvard.edu> <20210520020521.GB1186755@rowland.harvard.edu> <20210521011436.GA1224757@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210521011436.GA1224757@rowland.harvard.edu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 09:14:36PM -0400, Alan Stern wrote: > 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. that's an option, thanks for the suggestion. > > 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. ok, thanks