Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13294822ybl; Sun, 29 Dec 2019 08:41:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxZb1UIcMql0mOlVAcGeOmdRjD7iPnhd7GapSzQemNiK6JC4S04/Sy5xyn+45fUeo/P8SID X-Received: by 2002:a9d:3cf:: with SMTP id f73mr69757964otf.11.1577637705258; Sun, 29 Dec 2019 08:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577637705; cv=none; d=google.com; s=arc-20160816; b=OydEHBSc2efq6AEhHaTugRvV4AKabL+2gSz0xlq11tf7j+anAw5P3ud0bO1jUOhjhM 7whGqHAsbU4B4Cfeq8FTYRVjA/BW3zCtzbwjGpfD6JvtF2hpuFHQ+SkdJGL5AKUF/C6w +M+8NYFFFs0vR0SfFU+BIB7Ygz4yFfJxMW1ErayRPgoJMLlckBHG7QjoJsoMpYvctI5k PAAbr1cZhbYYBED6J2sOi750zffSE5N9KSd10WwYBGnbZMooU3KxxDsbOxUNEcVnMCqy UOb15qyt4rSwx7DNpqbvu3Jz5B0K2mKHhMbgGEo/OuEdKQt0d7mYVidEmy3jYqe/9Cmk 3D8g== 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=hMjGm6OKJERObWgTeUFbU/5zK/Cq/LKv6F0Wdh6VgqU=; b=pw2Genbeh9ZGPHjsP2eS4oQ796yQYLH+u0YLMiTL1mFkqgMqp7KV6pt1h1eTlx0Gre kDZMuH8B6w6wod3vV/C1u4UYEdtwNvugtGzHhzvh3GQZH8NHmfdMvYFkGHWgUR4C/cTt QLl7uVgFPyviTXo/2ukGS/js9ERW/eQrKpL/Ry08BOgIegTREHPpcoNtagAA1p5ALBW/ dxIUoZUf3ttRI8T/wiJSatP/AMdTuA0SkYV2vFB39DKApMqdZ6RYgVm28SWF6k5EcqDK zSK2uw3ymMt8ejkTa8fum1b3GWM55r0z45rTqE9EDYDwVWjgqObSPIFsingXqg7De5Hb kgdg== 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 p184si19140854oib.144.2019.12.29.08.41.33; Sun, 29 Dec 2019 08:41:45 -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 S1726677AbfL2Qkx (ORCPT + 99 others); Sun, 29 Dec 2019 11:40:53 -0500 Received: from netrider.rowland.org ([192.131.102.5]:34063 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726597AbfL2Qkx (ORCPT ); Sun, 29 Dec 2019 11:40:53 -0500 Received: (qmail 20510 invoked by uid 500); 29 Dec 2019 11:40:52 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 29 Dec 2019 11:40:52 -0500 Date: Sun, 29 Dec 2019 11:40:52 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Guenter Roeck cc: Greg Kroah-Hartman , USB list , Kernel development list , Michael Grzeschik , Subject: Re: [PATCH] usb: chipidea: host: Disable port power only if previously enabled In-Reply-To: <20191229162811.GA21566@roeck-us.net> 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 Sun, 29 Dec 2019, Guenter Roeck wrote: > On Sat, Dec 28, 2019 at 02:33:01PM -0500, Alan Stern wrote: > > > > Let's try a slightly different approach. What happens with this patch? > > > > Alan Stern > > > > > > Index: usb-devel/drivers/usb/core/hub.c > > =================================================================== > > --- usb-devel.orig/drivers/usb/core/hub.c > > +++ usb-devel/drivers/usb/core/hub.c > > @@ -1065,6 +1065,7 @@ static void hub_activate(struct usb_hub > > if (type == HUB_INIT) { > > delay = hub_power_on_good_delay(hub); > > > > + hub->power_bits[0] = ~0UL; /* All ports on */ > > hub_power_on(hub, false); > > INIT_DELAYED_WORK(&hub->init_work, hub_init_func2); > > queue_delayed_work(system_power_efficient_wq, > > > > That doesn't make a difference - the traceback is still seen with this patch > applied. Can you trace what's going on? Does this code pathway now end up calling ehci_port_power() for each root-hub port, and from there down into the chipidea driver? If not, can you find where it gets sidetracked? Alan Stern