Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1063558imm; Wed, 23 May 2018 09:40:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8fOnWEyCQMzthN3yIk+61okyEZtCbtOpM5TfuD3tIDYG+EWN3D4/gZ5zelvSS50j5WpYn X-Received: by 2002:a62:62c2:: with SMTP id w185-v6mr3619496pfb.78.1527093645082; Wed, 23 May 2018 09:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527093645; cv=none; d=google.com; s=arc-20160816; b=CrzvECU9fxKUfNJ5WeMV+2xOUcn8LpINtp/7d9OMqbQ5g12pe7nO161DVbl7PEnPiJ 5kcIChqFBPJpB871U0wTddQT9G7Ph9BFTtuCxDuD1S1zac+87DD3Mq19eErKtElIJnEZ 6LKVrqc+UUHvMEg5W87d5aEAt+pQWGVmZ2sVHJYV3kBYpSfyQd+FaZ/M5gPYTP7/Xsk1 Y3Q+x2UcUua/P8gnwloOTcRd9+trFZ0vRSoROwNHtoCuYh+KfG+pANhnK/tGP9w9K4sj 5mCKfKRFH0JNcS6GFdhWNiNSJIxRGk3H0h1114J4Yfbe7Bk+Alzvm2IeJGO0JqJUivza T9iA== 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:dkim-signature:arc-authentication-results; bh=ThvT2U6IdQtrJ8RffXD9iDRzjFOrlGTMyV69SgENkzI=; b=WQB2/Yqe5GDXTBEeI2QZs2rKJWlRok3tRHEzHaWA8wWsoAeBUsmIjcZK0lM4X6uy6T R756DArh3o1tLdHeQzCp/CiTbtTRSx+OqWGTJ/8BmhoyX7HqyvZVbtJbPAVTcGyQj5Pk QF3P2BQxKOYmugnDssqAM7A0XyvK+qbKkqbpAIsgEkXjIdelC2tz+kcZjSOIW5tX1KWV 9PAS2nIRPGZq15DiHd+w3epcv9zfth18bKCeC1CFNveFuqh5SsBlFiXjuvtX7OUC/DJA 6hauH+/WIsOCv88eR7wIY5CrK4JWswPL4aFgzA374y0R8aUy0oOiDwDBM8nxbJOKhuu5 TEzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xyZwh8Cy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24-v6si14911628pgw.101.2018.05.23.09.40.30; Wed, 23 May 2018 09:40:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xyZwh8Cy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933763AbeEWQkC (ORCPT + 99 others); Wed, 23 May 2018 12:40:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933662AbeEWQjy (ORCPT ); Wed, 23 May 2018 12:39:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C61F20660; Wed, 23 May 2018 16:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527093594; bh=EMMGWC2iIb/6ZxxKz0X1eFe8s+KdXz2mbXoF5PI6JbI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xyZwh8Cy1oq8i3Tz5qYPIo05fThJMa9kXfNKWpF9uQIq2jqJ0iUuZjJ6eYXgWCSEu aFDgb7MpapUx5uoLEVh7mP1FFbLpJy+ath+nXF0YOsmTfb0h6BdUyCKG14Z9deXRC+ 4zBNiD5Fv03mvmKIadhdQZOpZtBi6eMolP7U6d2o= Date: Wed, 23 May 2018 18:39:37 +0200 From: Greg Kroah-Hartman To: Alan Stern Cc: Nicolas Boichat , linux-usb@vger.kernel.org, Mathias Nyman , Felipe Balbi , Eugene Korenevsky , Peter Chen , Daniel Drake , Joe Perches , Johan Hovold , Richard Leitner , linux-kernel@vger.kernel.org, groeck@chromium.org Subject: Re: [PATCH] usb: hub: Per-port setting to use old enumeration scheme Message-ID: <20180523163936.GE12456@kroah.com> References: <20180523021656.122455-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 10:03:55AM -0400, Alan Stern wrote: > On Wed, 23 May 2018, Nicolas Boichat wrote: > > > The "old" enumeration scheme is considerably faster (it takes > > ~294ms instead of ~439ms to get the descriptor). > > > > It is currently only possible to use the old scheme globally > > (/sys/module/usbcore/parameters/old_scheme_first), which is not > > desirable as the new scheme was introduced to increase compatibility > > with more devices. > > > > However, in our case, we care about time-to-active for a specific > > USB device (which we make the firmware for), on a specific port > > (that is pogo-pin based: not a standard USB port). This new > > sysfs option makes it possible to use the old scheme on a single > > port only. > > > > Signed-off-by: Nicolas Boichat > > --- > > > > There are other "quirks" that we could add to reduce further > > enumeration time (e.g. reduce USB debounce time, reduce TRSTRCY > > to 10ms instead of 50ms as used currently), but the logic is quite > > similar, so it'd be good to have this reviewed first. > > I'm not opposed to the idea in principle, although I don't like your > implementation because it breaks the original old_scheme_first > parameter. > > Let's see what some other people think. > > Yours is a rather special case, because you know exactly what device > will be attached to a specific port. Still, I can see that sort of > thing happening in constrained and special-purpose settings. > > How do you arrange to set the new quirk before the device is > discovered? Yeah, this last question is what I had when looking at this. Or does it not matter at first boot and only matters for wake-up? thanks, greg k-h