Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp162797pxj; Thu, 20 May 2021 06:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNY892X0O09VVpsV7ISX6M8xxT+2MAPZJRIpIaXf6nONeFFgSlWxMMh7oLBxYwHqxvmLv2 X-Received: by 2002:a17:906:7842:: with SMTP id p2mr4677448ejm.487.1621518421452; Thu, 20 May 2021 06:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621518421; cv=none; d=google.com; s=arc-20160816; b=oF2MtGmlcp4rQGgyHpZHuxHYvEIXssjUi8+ipHjR3/4dvndf5ePca9ZGoz3NhtiRJq PDSTyzEVsguoT3uCjAlhG2YL3SG+y2ytat/IKeO1ZWwYD/mjUP4YjG9MmCKLsgml0T+C Z/XJLoH6L0sYCRk5fTG7TmV84Go6Rlbb9kq/m9FkBGUlWtv49PjXGC3+mu+ujy8P/4EB a7pIc5x1SgcYUm5XjWYvCj6R/Vc+QcsNWlgDgm3lUS19pZmF9gpi1wPilrHbPMb5AkIT OcspjTqG9ncI7Alj9SbdGy6Y7VIytR9ZbDO5FYOP5jdstOtPVgLfdaTFpnFP+qDtvOq0 srhg== 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=lCDY3zqYN0TPm8XTDIr+feSz7CGQpYBusVmFxZWqbvU=; b=KLjpAapxKKsGkHFWTfgadlVc0a6iNJKJs5Pa83L5H642jtJUN5PoWgxyDsoo/YLaGx /BC61f3oROKYkBoA/NZJcdSpIZXAlzFBu50cUepDBK+CmtxDmbhSQOeTbYIJfxZFJlbF unBBuJbkkzt5fAXYWv+FqoB7MpBS03HTvdGYo5o7xp5ESf4s3HyiluYXoGg0CUU0pERo yQkCdO0Bibx2yveFJmny4J28I7piRBJu0p+Pnes4k9sgHTZJwhqk+xb6jLxIqVrlyw2r g+b+BifZ0BnBrWbTZHV3bn3YPn1LI/t5IcrB44GJhH2gM295wwpab4Jsd/vHuQiawWt+ 7r4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aYWpmcG5; 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 ao10si2526702ejc.33.2021.05.20.06.46.08; Thu, 20 May 2021 06:47:01 -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=aYWpmcG5; 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 S241886AbhETNnq (ORCPT + 99 others); Thu, 20 May 2021 09:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239228AbhETNnO (ORCPT ); Thu, 20 May 2021 09:43:14 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA2DC061342 for ; Thu, 20 May 2021 06:41:30 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so5298353pjv.1 for ; Thu, 20 May 2021 06:41:30 -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=lCDY3zqYN0TPm8XTDIr+feSz7CGQpYBusVmFxZWqbvU=; b=aYWpmcG5UzZYC+GcETZKyG/HHk9fPzAE6LU8/INOkQM5UZ1Yhm8j3OhGzZW0NjogHI q6fDF14+qqS3G+/gwiAo1S32FwPnRb/jZ5dOYjR720kR4CywTZk3la+dZv9d+wZcsSTN OBVzV8pjjA1u/jk4Ut+OypKVCJjV7ozSUeMhM= 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=lCDY3zqYN0TPm8XTDIr+feSz7CGQpYBusVmFxZWqbvU=; b=P5c7EQVCnJF+igXCo/Z+Rr/SyLpmcEIzPBItqVql223et52UdJF2QGtvcpQ236ejEY A13oe27fvYWs7Ivc4K0cGZOne5qvEJmm+4ri6MJhH7/6wHOPj6jDSXabxaaFTM3zKv+9 fKL1dKjNdicvN7SlxTxmmJPsuCOpUYEdERtzV9WM89qqT4fR+gkg43PGJeF6pgx0AIYX Omqlo4q4VeISiz7od1+P/mINsEAC1MNMtNWGQvbQJIafRNmxP4DZh3Q31R/m4EelZ/2j a7Vs1svrcyChtXEqeH3hTMIyMvAnU31S2ux8RCdfv3Zvw8eJJ1c5ooDHxB69SU55ibDA V8TA== X-Gm-Message-State: AOAM5325dUHt6XhkNe6tWy3mpEVP+zuS6naZRuDQCb27hiirZS3CU+1w vE8G1ptT2z6az11Ixiog4bL85g== X-Received: by 2002:a17:903:189:b029:f1:d67a:5168 with SMTP id z9-20020a1709030189b02900f1d67a5168mr5966517plg.82.1621518085625; Thu, 20 May 2021 06:41:25 -0700 (PDT) Received: from localhost ([2620:15c:202:201:3d5d:d560:9fb4:d9d1]) by smtp.gmail.com with UTF8SMTPSA id k21sm2111284pgb.56.2021.05.20.06.41.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 06:41:25 -0700 (PDT) Date: Thu, 20 May 2021 06:41:23 -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: <20210520020521.GB1186755@rowland.harvard.edu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.