Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp903461ybl; Fri, 10 Jan 2020 08:38:04 -0800 (PST) X-Google-Smtp-Source: APXvYqydEAn1w4dWFA8B3hIpIPaP/zAzafZ83uNzuYnz8pEyTvvW7IiMgQdGzpaFVwPpgH8lyG55 X-Received: by 2002:a9d:51ca:: with SMTP id d10mr3217726oth.76.1578674284585; Fri, 10 Jan 2020 08:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578674284; cv=none; d=google.com; s=arc-20160816; b=j1AKVX1Z1iZi6zQ/HgbdxcjfUHVRWaMZe3LJXDESygZI670MM+CA2Iq9c2Vn412Zt6 /vW5EdgCWHkW6GLKDNCjbA9C/EBxaCkdnICNcH8XjoT+ptxrLkza3fwQsJdMhDpv27zZ dHdKfjZAnvwkKzTYBK/1VDuIjlNt2k7lAz6e1ce6N1iHBbttIrZTG0nUjXXsPPQdHOBU fw93tfFG2LgQ7BL6odoQadSaBPibhlv3Kri7we1fOaZpkeyDy9jwWtBlGdoWy2nszWL1 cEgTWSlx138PI6NfUqJoS5uVnT7S7Ron+FKvxfh4qmhtOU1rd4q6vjQwp8d1idI0mowW lGfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=N1EzHxQqGIV/vLXuzM71ZKsc9rbUbY1+mJrZqzln+Jk=; b=KPyBg5hl92aci66/51zWxgWclgM92WikoW/pYU3vyuGvf7Vo54iU+4g/QLe7og7VtM w3rN4P60S4eT3vMbPqhHCGdIJr3fCPMIS00lbizi+gmI7MyyTdIJiX6R7heXfz4TJTQb wr86OiC55qD2EMk7ktCIxFYQddPySYSz8WodupLuRuzuSeLuMunExrI1HPmIRG3W6qLw wR1aRJJGNjz5tIHxt6YxViajiOE2saWHaAcbE0WmVcLc/bmU0KQ3d3tPQe1lD3awlF73 0kQ6hmROYKjk+TAnujwrxplektUWn2kWosEdQ9IGPYreZhzOFzWn1hhnfCZxaaQw/ha/ w6nQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16si1585377otp.257.2020.01.10.08.37.53; Fri, 10 Jan 2020 08:38:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728598AbgAJQgo (ORCPT + 99 others); Fri, 10 Jan 2020 11:36:44 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:42860 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728209AbgAJQgo (ORCPT ); Fri, 10 Jan 2020 11:36:44 -0500 Received: (qmail 4548 invoked by uid 2102); 10 Jan 2020 11:36:43 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Jan 2020 11:36:43 -0500 Date: Fri, 10 Jan 2020 11:36:43 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Kai-Heng Feng cc: Mathias Nyman , Greg Kroah-Hartman , AceLan Kao , USB list , LKML Subject: Re: [PATCH v2 3/3] USB: Disable LPM on WD19's Realtek Hub In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Alan Stern