Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7705268ybl; Tue, 24 Dec 2019 07:24:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzwe0E+cxRBNPqFE4U6TAxS7kdkPqGeGBWx2Q+Gu07g6909Su8K5bQjxwr59iolfVFiwfYq X-Received: by 2002:a9d:600e:: with SMTP id h14mr37830178otj.113.1577201054802; Tue, 24 Dec 2019 07:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577201054; cv=none; d=google.com; s=arc-20160816; b=D2z7pNfNlzPAjX07Q7sMeMLdUrcVj3VAsZV1TTJEJqoRITyHh/MHgVekLEUx0BT2+N 0Bmn0RL/VJXm+dOPj+itj4nSOEHkpC9ysH6fLIZqgi+pY1+5t+y11vVH9VYCRdIDRcmm FSXQMkC7eHky2K/Sg1uw3bDn1hgJ35xpS331RDTrTpfJQkpkFOTSC0rux8h6fYh0npiG wAoTUyEoyo1gI7oJnaaOn3M12a7MRaJcbizQ1FFhFvle5hZwQW3eN5N5Y+2KWGZq+nE0 eFBRH+/fiJJn3jHWWDFf4ZPSTB1Wd3lJ1fQpj+K1fxkKg8+voUF1BEk+s5mz4SAVXi+l KfPw== 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=ZTwEzLke4+Y2b6e5NCPajLO0ch7aXqw+BtITAA5ikYI=; b=SUJrmpCSadKAIaHR1fqzoZVCzE1ucmL30J1VPwErvQuwBWwTT3mnLsKys8HMJsqV7Q 3AyZu+0yevAa/2NUFYYXnENt+4hrrwGXcWwB9tI8FtJviB3dQ/T0k9FfJ7k6UVnAXYFw 9EdeAF4ln4v9HqO8je11RqALE+gJiHFkHSuJr/QVPy01ZrUJNQ0Tofc2mPlKd2GP5CKA 6gp7uSty6de9Rg9N/+d6zw01hWZjThrQI+Plnr2rQmaXNbuACW4a4TwE4lEqLI+gI82I MyLeZPGXvlWzKApNtu5Zx2Mc6Qi1kCJSffi2VOP3BM8C5xarOF5P5LJl7h65IAimy0Zt ZhHw== 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 z18si8649769otk.206.2019.12.24.07.24.03; Tue, 24 Dec 2019 07:24:14 -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 S1726317AbfLXPXN (ORCPT + 99 others); Tue, 24 Dec 2019 10:23:13 -0500 Received: from netrider.rowland.org ([192.131.102.5]:53657 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726246AbfLXPXN (ORCPT ); Tue, 24 Dec 2019 10:23:13 -0500 Received: (qmail 29034 invoked by uid 500); 24 Dec 2019 10:23:12 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Dec 2019 10:23:12 -0500 Date: Tue, 24 Dec 2019 10:23:12 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: AceLan Kao cc: Greg Kroah-Hartman , Kai-Heng Feng , Thinh Nguyen , Harry Pan , David Heinzelmann , Andrey Konovalov , Nicolas Saenz Julienne , Mathieu Malaterre , , "Linux-Kernel@Vger. Kernel. Org" Subject: Re: [PATCH] usb: hub: move resume delay at the head of all USB access functions 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 Mon, 23 Dec 2019, AceLan Kao wrote: > > > you'll encounter the below errors sometime. > > > After the issue happens, have to re-plug the USB cable to recover. > > > > > > [ 837.483573] hub 2-3:1.0: hub_ext_port_status failed (err = -71) > > > [ 837.490889] hub 2-3:1.0: hub_ext_port_status failed (err = -71) > > > [ 837.506780] usb 2-3-port4: cannot disable (err = -71) > > > > You need to do a better job of figuring out why these errors occur. It > > is not connected to the resume delay; there must be a different reason. > > Hint: This is the sort of error you would expect to see if the kernel > > tried to resume a device while its parent hub was still suspended. > Once this error shows, the USB port doesn't work until re-plug the cable. > I have no idea what else I can do to this, do you have any idea that I > could try? > Thanks. Maybe you can collect a usbmon trace showing what happens when the error occurs. There's probably something going on that you aren't aware of. Alan Stern