Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp581733pxb; Thu, 9 Sep 2021 07:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjQO/KCcXV1Mg3S2pBs8izko8bGuL+dLt01076pf9EdLs86Zr82phPmQCNQSY7XAGJ3684 X-Received: by 2002:a05:6402:5110:: with SMTP id m16mr3180773edd.281.1631198056269; Thu, 09 Sep 2021 07:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631198056; cv=none; d=google.com; s=arc-20160816; b=cAp+HHF4s8HVlYjZH2HmqixCrWD+XDmq5FEpUx9uR4z57h7OgkUaRNBvSWCDuTr8KB 9fKYQqPKhejKiHOS/CnqHuLSi+qSRnWMcAi2a3d4Hv5m2i4BZerI6EBYT0APkhPj1mXP evb2fx0aUsXF2JRriT3ljmj6EGnZjsATuHlJHfuBeONmaKW6MS867Fp3w+Sl39q/XBz5 VxVJ/6GxlHU9PNCbDL7Xv7bACqItKIqqsyvGw+5emPlL1YcyxN3X4RcNVyJ79x/5Cquo bBelsU32lwmTRknDbuJFv4sTP80yFaUVk1KCVr/g4fW3Tb1laau1xfCZtGFti7tjHwrc ++6Q== 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=ykSSySc7EXAreAkrbEmvFT6MjOS6GNYmCMn0r55Mnxw=; b=DaMrYOBg87YK3ye/D8qGUR4rkVfG29LdtALEZvAigeqXJUAU1c9iV7EugxxSokIU54 oCEWElrJRrOffWPY8DjLR/wGkavgGzW1MBdvxkH9QElmhLInGmWo0uKzc70M/CCQr9bU wwsNd+3p1O851dUyPUtgtnDD/aAgjoztrr2tPsJq2T0um7gZSeAt76PZGpUhHMVH6OGu dGMwULA28XbwtdR+P3dDkpGzsKVL4YI8+wWsNQblvWxTFOY5NtlS+dceH5V6cxHCyWKh sBSkEW7EQRHqmv62InfCqOsQyelzKyopKJRwd0P3acpX9AochRi+E2YQl+200NoaDNoh Jl7w== 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 b2si2081624edw.361.2021.09.09.07.33.49; Thu, 09 Sep 2021 07:34:16 -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 S1348319AbhIIOcx (ORCPT + 99 others); Thu, 9 Sep 2021 10:32:53 -0400 Received: from netrider.rowland.org ([192.131.102.5]:57051 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S242587AbhIIOct (ORCPT ); Thu, 9 Sep 2021 10:32:49 -0400 Received: (qmail 638642 invoked by uid 1000); 9 Sep 2021 10:31:38 -0400 Date: Thu, 9 Sep 2021 10:31:38 -0400 From: Alan Stern To: Kishon Vijay Abraham I Cc: Greg Kroah-Hartman , Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, chris.chiu@canonical.com, lokeshvutla@ti.com Subject: Re: [PATCH v4 1/3] usb: core: hcd: Add support for deferring roothub registration Message-ID: <20210909143138.GA638029@rowland.harvard.edu> References: <20210909064200.16216-1-kishon@ti.com> <20210909064200.16216-2-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210909064200.16216-2-kishon@ti.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 12:11:58PM +0530, Kishon Vijay Abraham I wrote: > It has been observed with certain PCIe USB cards (like Inateck connected > to AM64 EVM or J7200 EVM) that as soon as the primary roothub is > registered, port status change is handled even before xHC is running > leading to cold plug USB devices not detected. For such cases, registering > both the root hubs along with the second HCD is required. Add support for > deferring roothub registration in usb_add_hcd(), so that both primary and > secondary roothubs are registered along with the second HCD. > > CC: stable@vger.kernel.org # 5.4+ > Signed-off-by: Kishon Vijay Abraham I > Suggested-by: Mathias Nyman > Tested-by: Chris Chiu > --- Acked-by: Alan Stern