Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp656249pxb; Thu, 19 Aug 2021 08:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy68A5By0gkLjuvya+dQZvcyxb5GYi/uSOexH79p380vvxWsPLmNhJH+if72ss03xaZSGFb X-Received: by 2002:a05:6402:51d2:: with SMTP id r18mr17202973edd.376.1629385938737; Thu, 19 Aug 2021 08:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629385938; cv=none; d=google.com; s=arc-20160816; b=OZCOd3aIaxEtdOxpdbmwplLi0XNcBypS1ZP0yFx6e8VafHt2SIy15sf+F0afbyUw6S 2vEbMXmAt8dNYhlHLTecyvYjp9B6eC3XaN98hYMR0hoObGdOLkmvAp9vyJ5lJKpMh8as sByoZpijDUNNfk9wtrxf2ezDImOO80j/d+ijStjl5q40GZsSMUBgWHrUz2NRAcCbGDvT Q7XNHdNrZGd6t3bJa+2aJXld43KTBBWojV/FoznZ7f0mfFAYKBmb61ZjUGuMvwbzrtSk AgS5eJHnSYjRcFuqR3zbGBmyhZzlhHkPLMEwQ9/cu4o9D4tpQvojEK4bHVQr4H5EsF/e jfxg== 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=PaqB81fmWWoNYUeCgwPJCgTBGU5OV5BrD2WFQ0QQvEY=; b=tplCKrUA+CeqsCaGyROoe0MTKWN0r7MYKdCj+tHyAa6wUEEwoiTkcn1sowjw9BwwJT eYvVw2RwI55/pGCkuBMZX9brx9j/ATPcynWRQE8VNIaPDUeyf7kiKVbceJFwGJDyAZU5 z/9woZggv0G6fndpk9SBoQE+E9ACyv3ahvvsUttHMWBhRsjw7cIWK0e05p4jtRp8llQQ SBeTGi1aGKIeyIEdQiX6ydqP9M4vidgknuL9u+x0szcRNehwtvDtP/cEN1w5Jkn/xUpk 0JNqjaE02SxF110EoSqnwKFYJ9ro7PKzNUOuFgW5GfNcdCMZa0/s80jjLXH7vEGoHOr/ pGvA== 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 qh28si3611060ejb.736.2021.08.19.08.11.48; Thu, 19 Aug 2021 08:12:18 -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 S238607AbhHSPKY (ORCPT + 99 others); Thu, 19 Aug 2021 11:10:24 -0400 Received: from netrider.rowland.org ([192.131.102.5]:52969 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S232821AbhHSPKX (ORCPT ); Thu, 19 Aug 2021 11:10:23 -0400 Received: (qmail 229553 invoked by uid 1000); 19 Aug 2021 11:09:46 -0400 Date: Thu, 19 Aug 2021 11:09:46 -0400 From: Alan Stern To: Mathias Nyman Cc: Kishon Vijay Abraham I , Mathias Nyman , linux-usb@vger.kernel.org, Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Lokesh Vutla Subject: Re: [QUERY] Cold plugged USB device to Inateck PCIE USB card is not detected Message-ID: <20210819150946.GC228422@rowland.harvard.edu> References: <772e4001-178e-4918-032c-6e625bdded24@ti.com> <970f741a-54ee-0fa7-46d9-51f77764c6bb@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <970f741a-54ee-0fa7-46d9-51f77764c6bb@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 04:18:12PM +0300, Mathias Nyman wrote: > On 19.8.2021 10.54, Kishon Vijay Abraham I wrote: > > Hi All, > > > > I was trying to test PCIe USB card (Inateck) connected to AM64 EVM and > > J7200 EVM. Inateck uses Renesas uPD720201 USB3 host controller. > > > > So if I connect USB pendrive and then boot the board (cold plug), I > > don't see the pendrive getting detected. But if I remove and plug it > > again, it gets detected. > > > > For the cold plug case, I see this message > > "usb usb1-port3: couldn't allocate usb_device" > > > > It actually fails in > > xhci_alloc_dev()->xhci_queue_slot_control()->queue_command()->XHCI_STATE_HALTED > > > > I'm not familiar with xhci but it looks like port event is invoked > > before the controller is fully initialized (?). > > Maybe this controller is capable of generating interrupts before it's running? Mathias and Kishon: Note that this issue has also been reported in Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214021 Alan Stern