Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp107083ybc; Mon, 18 Nov 2019 21:20:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyAiE+uQDs3TG/Dt7UrRHqcjYrLO3crMgFQOHRhwxR8E/dZ9oxYi6YxOY2xQ6z+ltGh2/ab X-Received: by 2002:a17:907:206d:: with SMTP id qp13mr31151247ejb.92.1574140825034; Mon, 18 Nov 2019 21:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574140825; cv=none; d=google.com; s=arc-20160816; b=NScNQkT2T3Ukg+bzXun1qfLBEAyARWvS6ADWVIGY6duiCtS9qVVkZA4LXEAGuCoAMg PcRy6YXtGRGDzeCqWaloBdvYlo1xaL8d4hDzV8h/hqKVxE9sS8ydp13DOjvFyymbaeun nRLxSNGMn138eZY54eieYmTEOpnjNtaP08tDxiQzYZdJuChJs7+m85qkqYL4EMTl4twh Gheb34gRTbj86jw54OiuWUAg3TrUl7/ZidUd+AieyMrYkXZ9BI+NdbHM52KbjUCI33/I 4Bv9GayTiG3ON2pR6TE+qUfZQt677ABejMX/dWBLmNs++zZnfk9SgDVAXnT26mNdWpxC qCgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jDmWyWEB6X6hwrCpbp9uiQYwQF5jG8Fol62ACoWdqew=; b=P3qHfzzm+2kaLB7YEfU9m6eGVqvVCuIFiece9qLw+GagqVgeaG7MDJCaYViU3fVAIl CAo2CVvVgR9iPA5DmbD/pIuIvpJ1IX61A0QmbTe4gQJupOEKqa94pQUuy/WHUfmCxFcC pekWZ1N9f91Pswk+omdrNnQe3RUn5mmHGRKdBDMu8Tr1n8wC70bVTuZjbbrrj8uOK0aB RqpZ0S6QkhzfXIzwdPrXGYAKTYaXq9vNepyV7oAgzQF8JLw1is43OtQ+yrFaOvmCbgSq MdnrdxtFick3f/hFI1VOqu9yzdI6oSg3A+riR4XUR/UUOHM//0+bz17woNacY4U3AWjs jNvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c7Kdgz48; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv22si13138579ejb.337.2019.11.18.21.20.00; Mon, 18 Nov 2019 21:20:25 -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; dkim=pass header.i=@chromium.org header.s=google header.b=c7Kdgz48; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbfKSFSv (ORCPT + 99 others); Tue, 19 Nov 2019 00:18:51 -0500 Received: from mail-vk1-f195.google.com ([209.85.221.195]:33095 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfKSFSv (ORCPT ); Tue, 19 Nov 2019 00:18:51 -0500 Received: by mail-vk1-f195.google.com with SMTP id b64so4275884vkg.0 for ; Mon, 18 Nov 2019 21:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jDmWyWEB6X6hwrCpbp9uiQYwQF5jG8Fol62ACoWdqew=; b=c7Kdgz48g3DqmoLb5/0VghHmU09mTfosgKrO2YFfZPUvxt/RdRNli50PhjfWMgc4ne uonk3fenlMZy18GUcL68KuWUqJPsoMMCbzpudzypbhBT6G7/5MjrqMYVVh3gDukcvMoZ LbeoSYrtDWSK0Y9udIKVMAzyn/shXDgGetomc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jDmWyWEB6X6hwrCpbp9uiQYwQF5jG8Fol62ACoWdqew=; b=UR3Wn7qOtUITo0OdVyzUqOAnfeaoFlMGGBYA6y1IuvBPIqTCRNjDPL9ujG9bX04O53 37pFOUgdxk8yrpfuChwV1uYp1WQR65eWc0HzM8UpCm/fGNEwvQORQqmHCA/ZhUCzRtad Za6jGqQXRIZthW8mkfDs6JydwIQrnkfqLt8OcNiQ03VeW7VxnHLg/9bKG1x14SHotir/ RbA87fHE7sypBwDS8miSp+jscUcth/6kV3ZQnE65sPm2JUfsox2Mes1Cbu03BXgCIQho Ie8Lnj0kxBHYOX6kikXI9ifzvleGEyeHxHJgYmfIZmRjqF4TpLCQ6/s6EZpfio6hBVYQ zMuw== X-Gm-Message-State: APjAAAXvDavO2ZgWIQgbRGqY7A+vKk0uBrY9DAAL85OnWnTRuljyAOlr bYK+r7yFHhQXLYfOFr8TpVBWJtsookfFfjs0kCmr3A== X-Received: by 2002:a1f:2556:: with SMTP id l83mr18367851vkl.77.1574140729713; Mon, 18 Nov 2019 21:18:49 -0800 (PST) MIME-Version: 1.0 References: <20191117033149.259303-1-ikjn@chromium.org> In-Reply-To: From: Ikjoon Jang Date: Tue, 19 Nov 2019 13:18:38 +0800 Message-ID: Subject: Re: [PATCH 0/2] usb: override hub device bInterval with device node To: Alan Stern Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Mark Rutland , Suwan Kim , "Gustavo A . R . Silva" , Johan Hovold , Nicolas Boitchat Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Maybe disabling autosuspend for external HIDs can be more reasonable for that case? > > 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. Thanks. > > Alan Stern >