Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp913340ybl; Fri, 10 Jan 2020 08:48:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzTfXSqsaP4bjtdO7tO4yOD9rP/oJEIab9qY0w1M+dPn5TMd6h60iXwg0Tz/AvPCECZB6yi X-Received: by 2002:a9d:69ce:: with SMTP id v14mr3477911oto.248.1578674933430; Fri, 10 Jan 2020 08:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578674933; cv=none; d=google.com; s=arc-20160816; b=TD1BhZn9AgJJJH1xnxt06xz5TopRGIh8G9j2y8gVurGB56CHZTrCntimMEMu0Al6zN d6rngt7DAYu41KM7V4/T2Px2TOCVnDoJtaj5Embe1TgowNOxAhIqmDDTx7j0FdcNTz2B B9d4qPERFrHCDGRfV/Ngj6/ociW1OATGABDNO0k1SH8QIhNT1nhlfGvjDx+LAyEhKasZ wKB25BEBZFMHQ7yyL7C8L+0/F65nzjtO1oLQ8Yj0FwE5zsaVQB/aNdy5XoML0SU2TQCS vlkqHO8By3zDppUyqgynGn3/baC3xOTLsoLNdJnBjoNrJiPT7et9AR6Sdl5z6NlFdXa4 UZmg== 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=LQVWx4QNhRD4TIH8ouCI9fTYbhvOJqvf6CUY9/jji4k=; b=1F+cS3mK1JSo+ZxMgrNuhY6hZ7CC1tM6pGjQ9Yd7KfOAdgErraW6czFml5zKrDlvdO JKsR0Y4URFmL9mRh1BpWI8fy4jHD1AiGds3QNoXmQHs6GVVEs6ojWBjhiFgnYh5eAomu XaxsFYc5DOum6kCI6upfHTF1yyr46I7h9YiQA7Y7XRxuAeCnoVhsRGHjkM56RIBmDeha aSGDzxkIB+MhN7Nn4Q10QWJjXn30cDPNJKqQ6+jOuIQo9DeZFTpLnPrbbWT/X7HXA9YX F4VMFLcDgWExxD5hOSPdFlK1xR5bWJjBDXpChDLn7j0JKDaV9aLSP3KCBo0+TvZcwEG0 ppeA== 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 w19si1618197otj.209.2020.01.10.08.48.42; Fri, 10 Jan 2020 08:48:53 -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 S1728918AbgAJQq2 (ORCPT + 99 others); Fri, 10 Jan 2020 11:46:28 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:54813 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728660AbgAJQq2 (ORCPT ); Fri, 10 Jan 2020 11:46:28 -0500 Received: from mail-ot1-f72.google.com ([209.85.210.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ipxQX-0001id-Vu for linux-kernel@vger.kernel.org; Fri, 10 Jan 2020 16:46:26 +0000 Received: by mail-ot1-f72.google.com with SMTP id 21so1312954otk.21 for ; Fri, 10 Jan 2020 08:46:25 -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=LQVWx4QNhRD4TIH8ouCI9fTYbhvOJqvf6CUY9/jji4k=; b=johWZZ8+h3NpLkkJVhesoi4wrlqUnZ2gyx4WP/joCsIV4Hkl88VN0Czc7tZqYr0S0m Kjn6F8IbR/5DJHLtmQE8BNhvnqRciRuK8FnP4KvclhZHJiR4wCMClvLQzg5+ZOGrPQ6c QbeLb9b/tHF7QMfYfkcIsNKMm1bG6Ob7+weSMEkz5CvYe7MVyMLGshQAchGVqEig7saW 2WCTgVGZe0YvYAHQxmh+VnGBXNICsmWoFgHm8ZRPsPuFBR10DYZcu0WJ86ht+FUnc8NC 0ppsDEVCSe4Fjbpsn7FqnE9r//MaPMzNhugY6X7P/4x/54UZYk76F8le318k9LjQoGmu vIGw== X-Gm-Message-State: APjAAAXDGD68pR99fpyWlBR1H9VsoZJGZ2NTNCIlP2Hz7ga+dhB9CDQP vDcUT9IFJsVlyUzXeBcP87MOMc2dpXoPrWGelzM0OCQR4OkgiaiOPdUy/fduqBtIsKUWeJQzJoM 4RczG7rmrQO4+oc8T/iNJ+ae7reZiYKfLVuehzEKIgifAE8R/Gi2bRD4wrw== X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr2799671oij.4.1578674784193; Fri, 10 Jan 2020 08:46:24 -0800 (PST) X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr2799650oij.4.1578674783906; Fri, 10 Jan 2020 08:46:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kai-Heng Feng Date: Sat, 11 Jan 2020 00:46:13 +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 Sat, Jan 11, 2020 at 12:36 AM Alan Stern wrote: > > On Fri, 10 Jan 2020, Kai-Heng Feng wrote: > > > 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. > > Oh, all right. This change looks okay to me. Has AceLan Kao tested > it? He didn't test it. I have physical access to the hardware and I've thoroughly tested it. Kai-Heng > > Alan Stern >