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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 5B4CFC433B4 for ; Thu, 20 May 2021 21:14:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3863861353 for ; Thu, 20 May 2021 21:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbhETVPk (ORCPT ); Thu, 20 May 2021 17:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhETVPj (ORCPT ); Thu, 20 May 2021 17:15:39 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 332D6C061761 for ; Thu, 20 May 2021 14:14:18 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id kr9so1755370pjb.5 for ; Thu, 20 May 2021 14:14:18 -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=JDuRhdD0c+I8x9p2xseG7EsWF35hPeDyR9fNC7DqgL0=; b=ChvS/XCpiCjagokqDdvJr+aJoJuu4cFnMUg2lcjpmf6uYamCI71lziN+fHQ7mbexEj itAg6b8BvXH4iwtz3uFLDaAGfP8hb4NFtgZCiC9azDp+lk5A5wrSjjbJaErvsVZdJzeQ fWUwfNUsxb0z3kUN5Zud/t8V1s546c+98Bu+g= 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=JDuRhdD0c+I8x9p2xseG7EsWF35hPeDyR9fNC7DqgL0=; b=IZuxAwpvjOWzNYbnKDDA5Cxz/GNMW+V8yMezlyxk2eBA15JniQXKmgS+JOQGFW9hP+ Nipo0TjgguhlJ2pquZmw+suepl5nDWw20U48RKce8kEeiBME1q0b7S02mfxf+mNiV2TZ ncMRl9J4KykI10KGXvToV7nk+ZxSbJRcVOLbEVnlUg32vT50egnvQguGe/myvj8HWsZA 3etZLATXSFjqmwFD5OIDICo3ORWnBK33nJoehKDPpY2wNgddT2rtn/ltHDtsJH+Fonad 4Hc+Zjz0R+FRTLDj6GXgukqFQlqtmXFPVP+M/PtaMYFnWgR2Ql7BrtjtX5RJgOb0e8SV aLjA== X-Gm-Message-State: AOAM530+1Ges23PLdMfP+pyTzcTeU2/NObqHdDYZ6wSgaG9R1m7Fmevm CBg8LxLbYN2Yl6MqG2vR6Xkzbg== X-Google-Smtp-Source: ABdhPJxRARguFLWFtqDDIo6kBbex1/oE8L/Z6VvTahbOh853k3DU7m91wAjdpyBTkBpmnu3t2dcjog== X-Received: by 2002:a17:90b:1955:: with SMTP id nk21mr7314169pjb.208.1621545257677; Thu, 20 May 2021 14:14:17 -0700 (PDT) Received: from localhost ([2620:15c:202:201:7ac6:cb3b:191b:54f3]) by smtp.gmail.com with UTF8SMTPSA id c19sm2125745pfo.150.2021.05.20.14.14.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 14:14:17 -0700 (PDT) Date: Thu, 20 May 2021 14:14:15 -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: <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=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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. Should I move the field to struct xhci_hcd instead?