Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2539519rdb; Sun, 3 Dec 2023 23:26:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBHkozCe0evymZJ5I4nV55g1t9+im5cw/VgNn1Eg5Qh8jvm2rposM5znBcm7OuA9r4GoGu X-Received: by 2002:a17:90b:893:b0:286:6cc0:b8fd with SMTP id bj19-20020a17090b089300b002866cc0b8fdmr809272pjb.52.1701674785835; Sun, 03 Dec 2023 23:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701674785; cv=none; d=google.com; s=arc-20160816; b=Yq+t4Qd883tw+8li90lKwVqZ4AaIa1P5nfwDNcOYZpq6eaRvzYtcZP+8LCpUEr21rx LtyCZzajjdIK+7pZ1k4zHlW+ZWc17cFnBQ2f3l714BgVRWKbLwZ+eNOyfAid4SeN9oXk I6PBd5jCsDPHKQygLGHhWYMfp6y6ulZZHs/7jqhUzS8PN6En4UakSKOyRKXSP0Citpj8 pN8CkbYDcYa1fxrjWv+vmuCs0Uw0DkCDb4tHdV9n3nd/rGxrH9Fk7/78clppxB6Df4da 4mwHbZLubGCVJxLHZ9+d8F3zQ95TjoEgsSaMTOK17/jgXdQH7GH56MPgal3i1Sm847vf 3I0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q/cxXPfnOEibJHfSMHjTIyOgHDV8G1wIbT6J4+6vyzc=; fh=4eV3OVObtrbgOHdOhh/bLymbvn74w5QTM8p082qtJHg=; b=d/6hog7iWh0sGkVCcIOBAamIJi8/EWXANAWFGCy5IG5NiviOVxYdapoNUwYqugS4rS X98pkTg4umo8xHCiTmMiCeJfnspYD5eZWzAh0ffRxXGUGDdyyCXljKgH7H6h+3VCqbya e/GAjA10mMuzVY/yiyNZT2OUP9jRXmlpbb9YQx8n/sIU5h2cFycMigJJrj0JgGxwWgwI MLGb0GcLELlH1BnEksZRZHHw3W691wy65rUCXe4Sf3JIgXG9rEMGpkLJ2Jxgcoe5jbIK XwXq0t3byr7uvrtjuCuEMPMFmDfzXGNjg6BVn4yTwRPQBRQjVnQXWbpd0ZoqQplqTvh9 d8SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h23-20020a17090ac39700b002847b85bbeasi3123324pjt.150.2023.12.03.23.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 23:26:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 67450807C5CA; Sun, 3 Dec 2023 23:26:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232474AbjLDHZl (ORCPT + 99 others); Mon, 4 Dec 2023 02:25:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjLDHZk (ORCPT ); Mon, 4 Dec 2023 02:25:40 -0500 Received: from hi1smtp01.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 381ECD7; Sun, 3 Dec 2023 23:25:46 -0800 (PST) Received: from hi2exch02.adit-jv.com (hi2exch02.adit-jv.com [10.72.92.28]) by hi1smtp01.de.adit-jv.com (Postfix) with ESMTP id 1DB1B520362; Mon, 4 Dec 2023 08:25:44 +0100 (CET) Received: from vmlxhi-118.adit-jv.com (10.72.93.77) by hi2exch02.adit-jv.com (10.72.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 4 Dec 2023 08:25:43 +0100 Date: Mon, 4 Dec 2023 08:25:39 +0100 From: Hardik Gajjar To: Alan Stern CC: Hardik Gajjar , , , , , , , , Subject: Re: [PATCH v3] usb: hub: Add quirk to decrease IN-ep poll interval for Microchip USB491x hub Message-ID: <20231204072539.GA108982@vmlxhi-118.adit-jv.com> References: <20231201144705.97385-1-hgajjar@de.adit-jv.com> <39f334d2-abe6-4b4d-a48c-b22a907c6ea6@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <39f334d2-abe6-4b4d-a48c-b22a907c6ea6@rowland.harvard.edu> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.72.93.77] X-ClientProxiedBy: hi2exch02.adit-jv.com (10.72.92.28) To hi2exch02.adit-jv.com (10.72.92.28) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 03 Dec 2023 23:26:21 -0800 (PST) On Fri, Dec 01, 2023 at 11:13:53AM -0500, Alan Stern wrote: > On Fri, Dec 01, 2023 at 03:47:05PM +0100, Hardik Gajjar wrote: > > There is a potential delay in notifying Linux USB drivers of downstream > > USB bus activity when connecting a high-speed or superSpeed device via the > > Microchip USB491x hub. This delay is due to the fixed bInterval value of > > 12 in the silicon of the Microchip USB491x hub. > > > > Microchip requested to ignore the device descriptor and decrease that > > value to 9 as it was too late to modify that in silicon. > > > > This patch speeds up the USB enummeration process that helps to pass > > Apple Carplay certifications and improve the User experience when utilizing > > the USB device via Microchip Multihost USB491x Hub. > > > > A new hub quirk HUB_QUIRK_REDUCE_FRAME_INTR_BINTERVAL speeds up > > the notification process for Microchip USB491x hub by limiting > > the maximum bInterval value to 9. > > > > Signed-off-by: Hardik Gajjar > > --- > > changes since version 1: > > - Move implementation from config.c and quirk.c to hub.c as this is hub > > specific changes. > > - Improve commit message. > > - Link to v1 - https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_all_20231123081948.58776-2D1-2Dhgajjar-40de.adit-2Djv.com_&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=QQ3QedNypxcZh4lyJ03w82T23GGGhDS9PuCb678l0L0&m=JINv_OISTxW8v8yb9tolCAxLxPiVc7UqJhl5BjTAuILGMvqrKEwJhrwzz8yj7Uqi&s=_UbxbqWhpCXaOnmryralngzR1cMrf3bKTJQKyEX1AGw&e= > > > > changes since version 2: > > - Call usb_set_interface after updating the bInterval to Tell the HCD about modification > > - Link to v2 - https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_all_20231130084855.119937-2D1-2Dhgajjar-40de.adit-2Djv.com_&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=QQ3QedNypxcZh4lyJ03w82T23GGGhDS9PuCb678l0L0&m=JINv_OISTxW8v8yb9tolCAxLxPiVc7UqJhl5BjTAuILGMvqrKEwJhrwzz8yj7Uqi&s=Fy-O0g4cYUiedPpzRIJU7rX8zvrhvjFfjZ7xo-K19yg&e= > > --- > > drivers/usb/core/hub.c | 27 +++++++++++++++++++++++++++ > > 1 file changed, 27 insertions(+) > > > > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c > > index b4584a0cd484..b5ac29c5f016 100644 > > --- a/drivers/usb/core/hub.c > > +++ b/drivers/usb/core/hub.c > > @@ -47,12 +47,18 @@ > > #define USB_VENDOR_TEXAS_INSTRUMENTS 0x0451 > > #define USB_PRODUCT_TUSB8041_USB3 0x8140 > > #define USB_PRODUCT_TUSB8041_USB2 0x8142 > > +#define USB_VENDOR_MICROCHIP 0x0424 > > +#define USB_PRODUCT_USB4913 0x4913 > > +#define USB_PRODUCT_USB4914 0x4914 > > +#define USB_PRODUCT_USB4915 0x4915 > > #define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01 > > #define HUB_QUIRK_DISABLE_AUTOSUSPEND 0x02 > > +#define HUB_QUIRK_REDUCE_FRAME_INTR_BINTERVAL 0x08 > > Why use 0x08 instead of 0x04? > > Alan Stern Ahh, This is a mistake. Thanks for pointing out. In my vendor kernel there is already a quirk with 0x04 so started the development and testing with 0x08, but forgot to change to 0x04 when cherry-picked to mainline. Thanks, Hardik