Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3033641pxk; Tue, 15 Sep 2020 08:28:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzicV4eKvTFRZxjhzJXQenWIFd+p0Xdno8/LQniWFRHnl9ldLTLLMnB5eOabuLedupV3Md9 X-Received: by 2002:aa7:c054:: with SMTP id k20mr23261635edo.224.1600183726129; Tue, 15 Sep 2020 08:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600183726; cv=none; d=google.com; s=arc-20160816; b=r1CW9jYkICoQ8iaSuD+tCLJslX1ZSAreXfDJ5KSmO24Cdy+W3KSVsA7kDaoJ2N7f1z sqq929ZWugxMm8ZiOyS1/YzLgylKIEAnoDCWBZYPkB29jAo/WwvBn1OW+dbYtnW+8zAx 0HuMrzoKkzmM3FC4JLwoknfJsZO78SMzp/xi0gTDgPsznn3cpC80x0sRvaGtsdH/4F9Z IED2N6IbeIFavd4sso76l5k2377vq3+OhkNL+4kjyPGGvNNakeEdRGh4TFpdiT71bNAE d51k3VKVXspr+tnKX8tL6B0x+tmER/CVmjuTceYxinU7/lvuJU+qz+TuTSWrxEjYSHau u9Pg== 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=YCiFJZh/9my1MSSRW8jHbUt/srHHGNTlYZh82jitd0o=; b=RauD8xriRSoyjrrB9DGvwRNSgou0xpr5S6aDfGk/qQ+Kqz7WIDSRsan3NfxCO8Nl5M KjWUtmHA2PizgyYbrFXGeGGw5l9iyYrpycYB2naK6fJGJmln9tbz28j0+QcNv3Y3HuZy hDhKopSqTY6fx9SE/xAJmGHcyU8owQ+wXCMK4tQ+66zsUfJ74RD7gBnwLj7Ck9JxmPtQ PUKL1CdWq2hpSB06z5LB1+5fXJjqW55piDIf3cG+g94qO3oLzJkUSbXy0LqSpqMKOSjK PQIYc15rOrMUGlUr6nEZVvfuW+WMUPoXJo+3ml3Mh0TAbVKhIgXyQzeaKVpxFheqBlP5 p6RQ== 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 h24si9582051edv.391.2020.09.15.08.28.23; Tue, 15 Sep 2020 08:28:46 -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 S1727044AbgIOPZl (ORCPT + 99 others); Tue, 15 Sep 2020 11:25:41 -0400 Received: from netrider.rowland.org ([192.131.102.5]:51153 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727321AbgIOOxA (ORCPT ); Tue, 15 Sep 2020 10:53:00 -0400 Received: (qmail 1004253 invoked by uid 1000); 15 Sep 2020 10:52:58 -0400 Date: Tue, 15 Sep 2020 10:52:58 -0400 From: Alan Stern To: Greg KH Cc: Eugeniu Rosca , 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: <20200915145258.GC1002979@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> <20200915110111.GA269380@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915110111.GA269380@kroah.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 01:01:11PM +0200, Greg KH wrote: > 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 [*]? > > We are saying that if you ship such a kernel, we _KNOW_ that it will > fail to work in a number of known systems. I doubt you want that to > happen if you care about shipping a device, right? > > > 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" [**]? > > Given that the USB-IF has explicitly kicked-out the Linux community from > its specification work and orginization, I personally don't really care > what they say here. If you are a member of the USB-IF, please work with > them to fix the test to reflect real-world systems and not an idealized > system. Last I heard, they wanted nothing to do with Linux systems at > all :( If the USB-IF were the final authority regarding USB devices, we wouldn't have this problem in the first place. Every device would respond properly to the very first port initialization attempt and no retries would be needed. But real hardware doesn't always follow the official spec. And then when it fails to work with Linux, _we_ are the people who get blamed. Alan Stern