Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp872139iog; Wed, 15 Jun 2022 14:26:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgVyx0jVOXxjSShYHiACi6Ci1DFvvcvyn6fV4CA/dBvNjkgCA9wAlCUQc619Ppv42539ZU X-Received: by 2002:a17:90a:e7c5:b0:1e3:3cf1:6325 with SMTP id kb5-20020a17090ae7c500b001e33cf16325mr1465828pjb.178.1655328365501; Wed, 15 Jun 2022 14:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655328365; cv=none; d=google.com; s=arc-20160816; b=CynbDNOMYgtN6UxSKiOk+tOhdV4W6a+32A0WSPiS/M6C2T/pLGaLXiL2MTYjFgDiGC HMVZHMcUNiVdwcQTLVtkboPvFs7rzdMlHt3ktL1q/ydq0V6TDEcuXkBj0mT27tFuwFpG nWwMgEmxpxzc271A2qxTsmeSqcBOogqKgswqub94H4kiOuYm2Nn7V8p8J7z19IP8c7UX j5rgsm/zcUGCijeCQURuELCRfgyA2kAYvYTnEwfTqsxYDiZGdV1G5HoR3Gitnpsbqp6z C9q44RC67EKWUmMjlIUzlwvQmzC018P+LQp3Wwdc+ySfaKvUr6El147Og7DYFtuplE/1 KIpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=onSkWvejAT9Ncx0zMHpsFmQrSb1YaP70TEFWtoKzsRU=; b=IFfAXQugYNc9sYtCE5B7bwey02o/UIgtT7+XgTbxUTFq/r7rC1H5PQ8MM9uM9K1q+h AAh0Yc8pXBiKrv4uxo90Y04+0qJ5B0y3nG0L3K8hRuzXYT96E4aIdAbI+NXv9cDP/MuW DLQehGZXDowz0IbbcsuA03dfZUQoss5KQ57IOdsN7m8Ay2QFprJdKfZqbaSSTxmZUh4G m1d76jmVnGE0TqPC3zWtYk7hZDh1s0zY0bjSWmc+TDj+SoUdwAxm4m+zXnqeo1yDDs0w K7xPPf2pfCIeU8jGBcnvjI5px5YWDVqN6BX9r8fvWU9T1OAnk8AgrEs9mQdTHsnsoAbK XdCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jwSQCLch; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a63db0b000000b003fda62e561esi164761pgg.196.2022.06.15.14.25.53; Wed, 15 Jun 2022 14:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jwSQCLch; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1349927AbiFOVRs (ORCPT + 99 others); Wed, 15 Jun 2022 17:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349938AbiFOVRr (ORCPT ); Wed, 15 Jun 2022 17:17:47 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10743193D for ; Wed, 15 Jun 2022 14:17:45 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id m20so25615137ejj.10 for ; Wed, 15 Jun 2022 14:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=onSkWvejAT9Ncx0zMHpsFmQrSb1YaP70TEFWtoKzsRU=; b=jwSQCLch9+e9jFkZSvrwVY6Tamk5VhPqTaqby4t4uzm+gChifoKKoKF0eMu3A3W88M tEmh0RCKWGUF9ntIGTDq+fG9ZubzF0RmXm3ExZc3coGAeAukuOmVe/tkxdji5VlTkTfD Fmpdz632wGxbT7Ma6+Z3XQw/8h25phlffHbRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=onSkWvejAT9Ncx0zMHpsFmQrSb1YaP70TEFWtoKzsRU=; b=rvUIG+NaNQNcXnKDXgIxVriNgwzJrsgGa2DXS6gx+bd/K0eZ5n3gLexAvH6/rdv4oK W4DJBLESwbdZ8DksDTnxuj6PfXNGXEkj7NIre7aj56qili9VFybN0zlDDZ0ovuYiH0+I 66z7TSD4b1Xy66G838PAcy+xPwmuUbAHkHCLtIeOzTwRslmoD0RpIO1j+DEl1G5cxyuT 9MQ/ZCJwNhHLkO77qgL97K3DBrojYCzAC28Fk+4Uf8q6Slyo+TjPYhBWHIn5no5hssR5 T8g/EvVSlilkbmq5JEJEgRJape3iMWbpU6vusLInw9tHnhu51JC4JA6FwZlBfLU0gRsW Yo7A== X-Gm-Message-State: AJIora9akriRz7+9W+H1iZ/nN3Pd2g8TwO1j0TDd5wn243ibItVftvOy 6jJUegvEbRLmOImbfyvjriqoTCbTiNOv+EhquSM= X-Received: by 2002:a17:907:7f06:b0:6fe:b81f:f885 with SMTP id qf6-20020a1709077f0600b006feb81ff885mr1596890ejc.621.1655327863779; Wed, 15 Jun 2022 14:17:43 -0700 (PDT) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id ce5-20020a170906b24500b006fee98045cdsm6825934ejb.10.2022.06.15.14.17.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jun 2022 14:17:43 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id z9so6952271wmf.3 for ; Wed, 15 Jun 2022 14:17:43 -0700 (PDT) X-Received: by 2002:a05:600c:2054:b0:39c:3f73:3552 with SMTP id p20-20020a05600c205400b0039c3f733552mr1430873wmg.15.1655327439836; Wed, 15 Jun 2022 14:10:39 -0700 (PDT) MIME-Version: 1.0 References: <20220609192000.990763-1-mka@chromium.org> <20220609121838.v22.3.Ic9dd36078f9d803de82ca01a6700c58b8e4de27e@changeid> In-Reply-To: <20220609121838.v22.3.Ic9dd36078f9d803de82ca01a6700c58b8e4de27e@changeid> From: Doug Anderson Date: Wed, 15 Jun 2022 14:10:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v22 3/3] usb: core: hub: Create platform devices for onboard hubs in hub_probe() To: Matthias Kaehlcke Cc: Greg Kroah-Hartman , Alan Stern , Rob Herring , Frank Rowand , Mathias Nyman , Felipe Balbi , Michal Simek , LKML , Krzysztof Kozlowski , Stephen Boyd , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Bastien Nocera , Peter Chen , Ravi Chandra Sadineni , Roger Quadros , Linux USB List , Andrew Lunn , Bhuvanesh Surachari , Kai-Heng Feng , Mathias Nyman , Vincent Mailhol Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jun 9, 2022 at 12:20 PM Matthias Kaehlcke wrote: > > Call onboard_hub_create/destroy_pdevs() from hub_probe/disconnect() > to create/destroy platform devices for onboard USB hubs that may be > connected to the hub. The onboard hubs must have nodes in the > device tree. > > onboard_hub_create/destroy_pdevs() are NOPs unless > CONFIG_USB_ONBOARD_HUB=y/m. > > Also add a field to struct usb_hub to keep track of the onboard hub > platform devices that are owned by the hub. > > Signed-off-by: Matthias Kaehlcke > --- > > Changes in v22: > - patch added to the series (moved creation/deletion from HCD) > > drivers/usb/core/hub.c | 9 ++++++++- > drivers/usb/core/hub.h | 1 + > 2 files changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Douglas Anderson