Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3028232pxk; Tue, 15 Sep 2020 08:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi4uUk+k0mZpgxcKJRaIj/4BH6lfGjlHFVGbhISV5zF/K4Hh6iodw4cIUxlWXQP/XraGW4 X-Received: by 2002:a17:906:68d2:: with SMTP id y18mr21042871ejr.197.1600183278689; Tue, 15 Sep 2020 08:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600183278; cv=none; d=google.com; s=arc-20160816; b=hu8qQNyatSThqDvM5FCSMmjwbzqYVw+GYnKymADGSQ2heM6LrEsHGyjZrmdkoTzwDA 2hrpYE16gy67l4Xfsqomzqu6xVIlx9SlcqRMEovQZDBH7cipicet4rafeWpQ/emth/qS G5ie95tZ07srHRyHX1Ogscje5Q+sfrZkVXNw+sJdFdhVrNOT3tyStw2/rnP9G6tUUdpQ rHet2M030iGMNK78N/3DLlexdvn0xJxodjnJpH3c9f2GWZCD1ZaavbY05MDM3fwh+0Ei A25B5yhE7tujxLiEhf8y8CciUR1Er6BsQuO91BTPlYFpYw3+OqPWkN33v90e/FLuPXhQ dISg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5tGXUdEHpIjphrncvaPOo6LnBACvygcaxJsHA1MXgPE=; b=teyTMQ/5w78rOoXT8o5Sje1ROEiCUw9EDOL3IWu+5HbAqiSn36zp+Bde3aF3xmLp0V CN1u8Ye1X7HJi0LfXIVgjEwgZAcaWAN64afYnkRoOtVzVxbSP5RUIIQQ4BVhvvZ9ib3I rNaEdgD48aSvuiOZVGtSPoUZYIywzWuQ3kMN3FtBt3csVoQv/dH5rn2XrUaVEgZCwazO BXA79+POw/N+z4wBTNurQaReQ0LUfFa2TskP7eZcei/ueh3TLHWWCner8CHbUazfxLWn h/1+HGQ54sZ2YGFAa5Xm8v1JLocKudi991yFejSVQJYSR/xqPt1K6ysWYFrSnDc8rC0P TtgA== 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 12si4276489ejn.498.2020.09.15.08.20.55; Tue, 15 Sep 2020 08:21: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 S1727407AbgIOPTp (ORCPT + 99 others); Tue, 15 Sep 2020 11:19:45 -0400 Received: from netrider.rowland.org ([192.131.102.5]:56709 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727180AbgIOOso (ORCPT ); Tue, 15 Sep 2020 10:48:44 -0400 Received: (qmail 1003957 invoked by uid 1000); 15 Sep 2020 10:48:43 -0400 Date: Tue, 15 Sep 2020 10:48:43 -0400 From: Alan Stern To: Eugeniu Rosca Cc: Greg KH , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, andrew_gabbasov@mentor.com, Baxter Jim , "Natsume, Wataru \(ADITJ/SWG\)" , "Nishiguchi, Naohiro \(ADITJ/SWG\)" , =?utf-8?B?5rWF6YeO5oGt5Y+y?= , kernel test robot , yasushi asano , Martin Mueller , Eugeniu Rosca Subject: Re: [PATCH v3] USB: hub.c: decrease the number of attempts of enumeration scheme Message-ID: <20200915144843.GB1002979@rowland.harvard.edu> References: <20200907155052.2450-1-yazzep@gmail.com> <20200907155052.2450-2-yazzep@gmail.com> <20200908190402.GA797206@rowland.harvard.edu> <20200911151228.GA883311@rowland.harvard.edu> <20200915094531.GA8046@lxhi-065.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915094531.GA8046@lxhi-065.adit-jv.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 11:45:31AM +0200, Eugeniu Rosca wrote: > Dear Alan, > Dear Greg, > > On Fri, Sep 11, 2020 at 11:12:28AM -0400, Alan Stern wrote: > > > The thing is, I'm afraid that without these retry loops, some devices > > will stop working. If that happens, we will not be able to keep this > > patch in place; we will just have to accept that we fail the PET test. > > > > Alan Stern > > Does this mean that Linux community leaves no choice but to ship a > forked kernel (with no chance of alignment to upstream) for > organizations which design embedded devices where USB plays a key > role, hence requires passing the USB-IF Compliance Program [*]? > > Is there hope to give users a knob (build-time or run-time) which would > enable the behavior expected and thoroughly described in compliance > docs, particularly chapter "6.7.22 A-UUT Device No Response for > connection timeout" of "USB On-The-Go and Embedded Host Automated > Compliance Plan" [**]? It is possible to add a build-time Kconfig option that would control the maximum number of port initialization attempts. But let's start with testing the patch I sent you. After all, the first step is to get something that does what you want correctly. Alan Stern