Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp857358ybl; Fri, 10 Jan 2020 07:53:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzt7uwaOJqWB5Oj6t606CsPugh7OCZR8ZmC0KUWHUymC7risrpNei4GstA7St/AY22TbDhE X-Received: by 2002:aca:ac0c:: with SMTP id v12mr2516969oie.123.1578671609258; Fri, 10 Jan 2020 07:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578671609; cv=none; d=google.com; s=arc-20160816; b=TBcFvIb7OVEQl3Be4zgrNNy26UlwJnWeWUHiS84TJnZuBcaKLcWHeldph7NRlFSFKA /NsQI5MsRp71vlzhPj0kH+u00M1n/B70lI7COoxAg09Ci7HCalDfhyDqzpypk9IgFVn5 bFRuze1bl2nIOISSOBa19kIf5r5ZImVeWrR7FS70oNNFe7ht7Oj0XGyduE1C1Yq3Dd6M c7jkKqG1jnP3cxB/guPvEcXsbzBbFKQQQESFd3ql4Xp7CbnTstG1Jdg0zIE4P3EtXARL U9+IHTGdx0VkZqpk9mUc5twLobWH1ykgTR7Pjf+T3/JlwPzYkVONu1kl59JgoPRSADQm bzPg== 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; bh=h8/Y2cObCbtCE26judrO9UsDxGUStHvjaWi0HH63cZM=; b=QNeek32wUX2fusfLStrrkx9XDOj6h3+4WXc2vjC4/jLp/3Ir13T1dIDAQr4WI6PCju AbqKh/TVH2cSPBeGGFoBZ9S/PoCgL/TVncZGvX3f3dfkdAiNrWyCMa5D66PRQZhpERdF SczulSDGKXzTGt61VA/aGCrJJKmjU5hAJ9EsLtfs4NM7giLx2JYXcnJcC82XRjCMXiGs oVKl84I4XnTlT2pqTtaritZrzwbT//4YfAOzv+ZfuBkK63F+5dAXTFuQwJg2oFZbhMzF Lt+wejLnnzBDQrf3u3zyfEsn40Q2uz7PwEO8sxFgkZWbcZZoTZCdivzfEbK+PrrZqE3w jfYQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si1636213otf.246.2020.01.10.07.53.18; Fri, 10 Jan 2020 07:53:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbgAJPwO (ORCPT + 99 others); Fri, 10 Jan 2020 10:52:14 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:52914 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728151AbgAJPwO (ORCPT ); Fri, 10 Jan 2020 10:52:14 -0500 Received: from mail-ot1-f69.google.com ([209.85.210.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ipwa3-0005uL-EB for linux-kernel@vger.kernel.org; Fri, 10 Jan 2020 15:52:11 +0000 Received: by mail-ot1-f69.google.com with SMTP id e22so1237765ote.5 for ; Fri, 10 Jan 2020 07:52:11 -0800 (PST) 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=h8/Y2cObCbtCE26judrO9UsDxGUStHvjaWi0HH63cZM=; b=PCdGkb01BXJHTjcW9EGy+iWhBf/3cC7W1iXQlht31V1I1+eRY9b+M1fOgSwVa3C7qs CwtwJZRNftTavOIfIl5tzpL2LKRLmMXbJ8JG63eSGaxYGcKagUlLF3PGCl+GzbWLSR1D FQFAGiD367mM6kw0yf1cGh6xLW7v7cGuqasUMog0pztoBw6+SLXMZdSdBQdxIcPXsm3Q Kl2el2tYb+AnYO8gNss0ZkNGVQiAeIyTxn/Oc3uAv3hlRueiHwROJq/Qfbyv/LdvKYUI 0a0P1ReCKK8kjI6cIjpqnuJS15JMWisgCnIHtEjTXmoO+ycABLRxRpICg9W7EPozcvpf h1+Q== X-Gm-Message-State: APjAAAUqHx1+dlKqoUdmAhlc636uaGm2P7iQp8KaSscPNx2IpG+AibZn QwLGUGMy+j2YcEXHqSiS5rtHkmYRmGudRXkFbIr3tRy7Zz35INoZ4D3z5bX0Sna64trXycZm1sU Uyr0UA4thoLSwp/wmb54rbKdgUwX3wnT81EUSMS54tC7s2VBTb9Xojuhcjg== X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr2610247oij.4.1578671529981; Fri, 10 Jan 2020 07:52:09 -0800 (PST) X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr2610231oij.4.1578671529690; Fri, 10 Jan 2020 07:52:09 -0800 (PST) MIME-Version: 1.0 References: <20200110080211.22626-1-kai.heng.feng@canonical.com> In-Reply-To: From: Kai-Heng Feng Date: Fri, 10 Jan 2020 23:51:58 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] USB: Disable LPM on WD19's Realtek Hub To: Alan Stern Cc: Mathias Nyman , Greg Kroah-Hartman , AceLan Kao , USB list , LKML 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 Fri, Jan 10, 2020 at 11:40 PM Alan Stern wrote: > > On Fri, 10 Jan 2020, Kai-Heng Feng wrote: > > > Realtek Hub (0bda:0x0487) used in Dell Dock WD19 sometimes drops off the > > bus when bringing underlying ports from U3 to U0. > > > > Disabling LPM on the hub during setting link state is not enough, so > > let's disable LPM completely for this hub. > > > > Signed-off-by: Kai-Heng Feng > > --- > > drivers/usb/core/quirks.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c > > index 6b6413073584..2fb7c1602280 100644 > > --- a/drivers/usb/core/quirks.c > > +++ b/drivers/usb/core/quirks.c > > @@ -371,6 +371,9 @@ static const struct usb_device_id usb_quirk_list[] = { > > { USB_DEVICE(0x0b05, 0x17e0), .driver_info = > > USB_QUIRK_IGNORE_REMOTE_WAKEUP }, > > > > + /* Realtek hub in Dell WD19 (Type-C) */ > > + { USB_DEVICE(0x0bda, 0x0487), .driver_info = USB_QUIRK_NO_LPM }, > > + > > /* Action Semiconductor flash disk */ > > { USB_DEVICE(0x10d6, 0x2200), .driver_info = > > USB_QUIRK_STRING_FETCH_255 }, > > > > This is a very partial patch. There were four hunks in the original > version but there's only one hunk in V2. Because the original approach is insufficient, it significantly reduced the fail rate but the issue is still there. USB_QUIRK_NO_LPM is used instead so no other parts are needed. Kai-Heng > > Alan Stern >