Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp659943ybc; Tue, 19 Nov 2019 07:16:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwFV16QV0uWGp4LcFKE4rm/nNVaLponVKXp5GfQgb7FHV9i4EPW12SRPLKGVCiDw/BVax6X X-Received: by 2002:adf:db4e:: with SMTP id f14mr35893690wrj.257.1574176580307; Tue, 19 Nov 2019 07:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574176580; cv=none; d=google.com; s=arc-20160816; b=jcchr6S4z4fikPYOfTncjgcWPWQZatJeRDLbxy3MaZ+ktSH0oG2P+lJXLKk0++loAz 1pi0W6aJz7aBRY6qDeWJ0HOQYeLs3tn3pmT/ed+RxXBfh4ffRRz6XjIiZuAyH24LOdNZ FH4TZbCdhak+NR9qXySv2OXMpYUSY+Dqi66b+UEDaUPPfOXuQywEnhJaiA7mk1ViXFS6 nR61Ac713w7B45MqXlo/LkjDDkvE58rApWKevNPSLMdTBLbkPcF4Bti4HO15I4/LFqSl YsGTvv3TyuM4uwhYfHp3/5y8i9dg6QsKNPQ1yHXXLmAKZ/heW8yAWj/a49udV+XSIlPy Q/kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=hv5ADapsuVh+mBL1edIxMJ3XpVaBlnehoHkov+dNoVU=; b=F88HVYLTNEkuaC8WSRRTpzvMbbnDXwRXmRHJo9rXNasXrDiEoLeTV8r+8uKO2+B004 ceNzr1dzwP9nC7OOlFc4h/kP+FFEUULqYM4hNJ+42JvDC3pRQAuMO3QKsQz/P5Q5ODHH PGLaf6V/er0XU2fIzWAbVN+YKpRAqb9SSKevmzJsAIvRxDAliNPCHe/loG89v2APj0xw xaLuwVH50HUf53vX5/B5UCPn3uPahSKZoFw0NQldWYZUV4vWv/QqeS2Txkn2p//nJs1u A8iNVgEqikls/SkOKbmd3WzM/8HbUQ15PIuorqlAUpP1ILz5qFxh8kU6ehqGEDoCGAXr 0Nyg== ARC-Authentication-Results: i=1; mx.google.com; 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 c24si14775234edb.328.2019.11.19.07.15.54; Tue, 19 Nov 2019 07:16:20 -0800 (PST) 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; 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 S1728215AbfKSPO2 (ORCPT + 99 others); Tue, 19 Nov 2019 10:14:28 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:46566 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727505AbfKSPO2 (ORCPT ); Tue, 19 Nov 2019 10:14:28 -0500 Received: (qmail 1559 invoked by uid 2102); 19 Nov 2019 10:14:27 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Nov 2019 10:14:27 -0500 Date: Tue, 19 Nov 2019 10:14:27 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Ikjoon Jang cc: linux-usb@vger.kernel.org, , , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Suwan Kim , "Gustavo A . R . Silva" , Johan Hovold , Nicolas Boitchat Subject: Re: [PATCH 0/2] usb: override hub device bInterval with device node In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Nov 2019, Ikjoon Jang wrote: > On Sun, Nov 17, 2019 at 11:46 PM Alan Stern wrote: > > > > On Sun, 17 Nov 2019, Ikjoon Jang wrote: > > > > > This patchset enables hard wired hub device to use different bInterval > > > from its descriptor when the hub has a combined device node. > > > > > > When we know the specific hard wired hub supports changing its polling > > > interval, we can adjust hub's interval to reduce the time of waking up > > > from autosuspend or connect detection of HIDs. > > > > In fact, _all_ hubs support changing the polling interval. The value > > given in the USB spec is just an upper limit; any smaller value is > > equally acceptable. > > > > So why are you doing this only for hard-wired hubs? Why not for all > > hubs? > > Because we only want to apply it to a specific device instance under > our control. Why? What's so special about that device instance? For example, why not instead have a poll_interval sysfs attribute for all hubs that can be written from userspace? Then people could reduce the autoresume latency for any device they want. > We apply autosuspend to built-in touchpad device for power savings, > > Users can attach external hub devices with same VID:PID that we don't want to > change the behavior. Why don't you want to change the behavior? Or allow the user to change the behavior? > Maybe disabling autosuspend for external HIDs > can be more reasonable for that case? If it makes sense to to save power for your built-in touchpad device, why doesn't it also make sense to save power for other external HIDs? > > And is 250 ms really too long to wait for remote wakeup or connect > > detection? What's the real motivation behind this change? > > When a user starts to move the cursor while touchpad is in autosuspend state, > It takes more than >250ms (worst case can be >500ms) to wake up and response. > That makes the cursor stuck for a while and warp to another location suddenly. All right, that's a good reason. But doesn't it apply just as well to other devices, not only your built-in touchpad? Alan Stern