Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4273152rwe; Tue, 30 Aug 2022 07:27:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6MOu5S4gRwB8NA5eMOYVEy0wWEkvB7o5BdnKT37xTWiXQOFoQIQ/OL+prbqgg7KB21AcVd X-Received: by 2002:a17:903:188:b0:172:eb35:df37 with SMTP id z8-20020a170903018800b00172eb35df37mr21059339plg.159.1661869653400; Tue, 30 Aug 2022 07:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661869653; cv=none; d=google.com; s=arc-20160816; b=kKOabSdComm2QE6OzqNYyuSlSmIu8XyASod2xHQ+gafkbVxcEkQJ3QCscwpIk+SqQe e8CjY/OZ0seTN1rMstrWD6jTnvuM84HcFBAaSUkytCT0+V+OaFYSmR8bF0FQn2CyIJlh OJorN5V20fm7qTA9BcI3LEPmbmGM6vP/kUNbqCmOo1kPYFduDf5C/C+mTOWjLFT2328k 7KSeGzuRYZAPdMlvq2FurEuUpw6Y9/wohCSmV8WyNBHcTcvflyA05i6B5qHSfNnFjIce 2/ANm7P9ouYgDL422MHHRvCQuu15tbxYOhIhCEtxHtNQKkBjot/XPGzEdG4nUuKTESc+ b9ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=rXdcE2grdrFimatGQgIxAO59MRAPEfi7Wa5p1HUde5Q=; b=vHtDDUGI5Lyk9nEnupAD92ZOq9KgCp4Q3PoHmb5Za77Ami2JzMvNuH+H7/fgG3NfP6 1AJzzZ8QR/7j2TYaOMUkfdXPtw1e9g3nrOd/klJo6cn5Do8tp+3o7gs1mFRj1WTMOxin xxMYk4M/CWRywxA3JzG3BMdx3PMB7VI12stupWmiFhUmohUm0AWoYuP1Yu7SJ0BCC9TU gxtRlrfNWlRZRH6B54TBWnhEdAhbQAyqsiYSsQqCY3jDDl+pN5c7JOgONoeqVeEoBLwa 1xtzh37/OYT4k7JZqjpv92wbgNea8FoxVxVnUkR1bvXbaVqatxZNC1dEy21VvZw8R5lM NvNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=R1TpPcg+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z64-20020a636543000000b00429e6ef0e86si1945369pgb.603.2022.08.30.07.27.21; Tue, 30 Aug 2022 07:27:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=R1TpPcg+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbiH3N7L (ORCPT + 99 others); Tue, 30 Aug 2022 09:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiH3N5w (ORCPT ); Tue, 30 Aug 2022 09:57:52 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F506352; Tue, 30 Aug 2022 06:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661867821; bh=EHevt7zWC6JO3ARZtbty/8S8Npfn4RsL6Nlqm8Ymweg=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=R1TpPcg+5VGxpHJd5sf8stLZKnPWbLZnE8RoHvIn08qHbkWxh8O9zzwsQK2MIrgTf Dw/t/0jq+dK1OLgnsO1PkTopv66xtWQO40YFqCKBHmaI9RvkQ07y3+4sodQNeCKwML RqIPr3cc/f4vVpCY5tzwAMsCv9aJC3Z9ssjifzJc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.168] ([5.147.48.133]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N7i8Y-1pWh8p0bDu-014jJ1; Tue, 30 Aug 2022 15:57:01 +0200 Message-ID: Date: Tue, 30 Aug 2022 15:56:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] usb: add quirks for Lenovo OneLink+ Dock Content-Language: en-US To: Oliver Neukum , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220824160946.10128-1-jflf_kernel@gmx.com> <31aeee3c-f4f1-16a8-272b-96da5d4a565e@suse.com> From: jflf_kernel@gmx.com In-Reply-To: <31aeee3c-f4f1-16a8-272b-96da5d4a565e@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FLyu7aM0okQ6rwOx9wRriOCGW6Xkv2orBrUuA6s2SZcZYLhEzJJ Y5xYn1nf0RuT15g/J+mcrbVw8NV+Y4Y+CH4FGkYpbf/X+y+29M6Z8AB9QtQNSAFPd40un9p DLm57PkFd6VQdu8WhshtM/6/6jwtBCWXtppNfCjfpA4PdvqH43xN/S0w2XyaBETlD53XZD/ yB7Zp6egBTN/456B6Tf4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:adp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LltjTE2d15KtWjM1U0nKq9yINL9mbmo/nTksHkwNJeamOU+yUWCs lzMRwd/CVKs+TAJkjcwDJfijsyuBHuRDFGMn4+lYxE6Ev0Ln9JCF1FNcg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/08/2022 13.54, Oliver Neukum wrote: > On 24.08.22 18:09, JFLF wrote: > >> By process of elimination the controllers themselves were identified as >> the cause of the problem. Through trial and error the issue was solved >> by using USB_QUIRK_RESET_RESUME for both chips. > > Hi, > > > aside from the aspects of getting this properly signed off and merged, > this opens up a question. What does resetting a hub do to its children? > That is if the request to wake up comes from a child, do we > > a) lose state in the child? > b) retain the knowledge which port requested the wakeup? > > How far has this patch been tested? > > Regards > Oliver Hi Oliver, Partial answer for now: I have been using those quirks via the kernel comm= and line for about a year now. I have been meaning to send in the patch lo= ng ago, but kept forgetting about it. I agree that USB_QUIRK_RESET_RESUME seems fishy with a hub. It's pretty mu= ch the last quirk I tried, and the only one that worked. I can't say I und= erstand what it does exactly. The hubs themselves don't seem to reset (or = at least not fully), as there is no re-enumeration of existing children. I have not experienced a single problem or side effect since using those q= uirks. I use a mix of USB 2.0 and 3.0 devices, some bus- and some self-pow= ered, some permanently connected (including ethernet and audio in the hub = itself) and some not. Thanks! JF