Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp992510ybn; Wed, 2 Oct 2019 09:14:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJerGKaXDTgwaCYmGUqHbCyGkdsYWR/3iR+WOB/0+xEmAPFvdMwVbO+VeUuBW5w3L62iUe X-Received: by 2002:aa7:c1d4:: with SMTP id d20mr4588440edp.223.1570032878792; Wed, 02 Oct 2019 09:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570032878; cv=none; d=google.com; s=arc-20160816; b=VyoTjOlA2VN3953SlcR/I1MVSvgp/ciXaQ/ivJ1mKpxYOB8QP7YNFLGpH87oofFowo 5m4p3IvBQo7qSY5fXKiITexCuWc9/6UVRPxyA0z1XdZv4aXlBqvqSlZs1gVZlkviKJSM NPAMwuLnBOQwzZZmRiDYD2hjVNkOy6L96HcKH2Os4wX4/TDv3vYR6lLaMLhhTpiQi8K7 W/2RLNtyYnluNYTVaolG1Pxe7Yp+2+y9uEYG2H3IetC5v5iKtvt3D4ptcxD5QNcsNa1M qJ9fq5bUxzhAFNZgMt7hDpA/FY5Cfz7iMk6FscdQrbSCQMJuGnAXum4HOV5v+BaYVOMk FZug== 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=ycZYE6oU6mmPek9ikcM4apwhTOEIoV45fQo+ChsYy5w=; b=q+PR4sRhGCKiYl7RUT1VNjoBg+rOjn+2cvZugB9H0enphwuoe3cSssExz/hCQ4H2Z6 Y9/5xIdcGPgytARqqOYjQrmWkcP93Frk24pEcixOKoUbI4tAav3GsFH17r00yqHFvM2g WJBmD1i0k2VYbeGyr1WKne0plRwnyfY+7qqA56abn9/Nq77X8SCXgcO40gJeKqIoput5 ipSkdZpdzU85oWVYqqpzoHrXrR5g2hnprsl916OUAzrHXW3ZiMKmxrkoKA3thbyLtcY2 lgYUowdsYcTiO9B6HTQyesVWp1oz7Jd0Cf3c+FPd+zomaRqBNwx9x5aKGGa1EVy1zEm8 eRRw== 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 t16si11865572edd.269.2019.10.02.09.14.13; Wed, 02 Oct 2019 09:14:38 -0700 (PDT) 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 S1728976AbfJBPrk (ORCPT + 99 others); Wed, 2 Oct 2019 11:47:40 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:38852 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726179AbfJBPrk (ORCPT ); Wed, 2 Oct 2019 11:47:40 -0400 Received: (qmail 4241 invoked by uid 2102); 2 Oct 2019 11:47:39 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Oct 2019 11:47:39 -0400 Date: Wed, 2 Oct 2019 11:47:39 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Kai-Heng Feng cc: mathias.nyman@intel.com, , , Subject: Re: [PATCH] Revert "usb: Avoid unnecessary LPM enabling and disabling during suspend and resume" In-Reply-To: <20191002151512.28517-1-kai.heng.feng@canonical.com> 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 Wed, 2 Oct 2019, Kai-Heng Feng wrote: > This reverts commit d590c23111505635e1beb01006612971e5ede8aa. > > Dell WD15 dock has a topology like this: > /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M > |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/7p, 5000M > |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M > > Their IDs: > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 004 Device 002: ID 0424:5537 Standard Microsystems Corp. > Bus 004 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. > > Ethernet cannot be detected after plugging ethernet cable to the dock, > the hub and roothub get runtime resumed and runtime suspended > immediately: > ... > After some trial and errors, the issue goes away if LPM on the SMSC hub > is disabled. Digging further, enabling and disabling LPM during runtime > resume and runtime suspend respectively can solve the issue. > > So bring back the old LPM behavior, which the SMSC hub inside Dell WD15 > depends on. > > Fixes: d590c2311150 ("usb: Avoid unnecessary LPM enabling and disabling during suspend and resume") > Signed-off-by: Kai-Heng Feng Maybe it would be better to have a VID/PID-specific quirk for this? Alan Stern