Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2764094ybh; Mon, 5 Aug 2019 06:29:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwub3vhfKjrkbH+wl8xcVfii3O5zvCG5DrXIyhSJp1Oc5FfA9Yq8pTIX9bDgaGksbjXTafB X-Received: by 2002:aa7:9f1c:: with SMTP id g28mr72162277pfr.81.1565011747079; Mon, 05 Aug 2019 06:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011747; cv=none; d=google.com; s=arc-20160816; b=gY3bTllRoeFmeP6WcWRz3/bAof4W0PnlAIqbCtG4AZIF98kispa8ox3Ej/MvohAt7c knZi6btjvYYf9zbyGIsgt+y4ZJVWc+lWRP1O4ZGWCYFTQbzCxHYrQyawS1qmdUqKewRP wG/7DUFaiuINqAIvPSgTXfI+uqrQK89TsxFatc2wxhxMZIBBWUS2aucUW/fo2ZO49ei1 Am/arOI6axSkCDFBhIDzwMQG0tJ6n8DthkXnuEsZTW4idfAfe+ak9k0lsyT2/ohWua/2 flimHJvqhOtHD++GtdoZ1IW7wiQxEk9VOALuMKgSsSkwwUyUPMRDkm4qmDJq+FdPcNBi fp8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3kc7FlUM1191xAma82v/nDTiS/pdDfb2gm6+c9UfwKo=; b=XDJKmcAuSSlFlVBr7bcSPFAh6HrUWqNLTlRkiZDg2k3pPUGubnJo4fCpa3gUPhC6ln zc4ukLqfd30R/AF+Q/37b0RB1c2TG3ptgT3JSmd6E5lfDz3P1VcJSFjEtlgiNz4tj3v0 z4IOHKF+U7nWatJ+frhpEzXJadVwKWnS8EwuevzOZ9TlSwhSSped/Cg+6sWqNKYkbW0G a2N5H5QYrg/Wx0tyZoujNic5FJmuJhGssZR2iczWd+ryfZiNUyTr0RqrabkGTkDFq74a Yo8zhF8SVe0FD+7sX1qzSHyAANtQEgKW+9qpLgqmOacx3dFfvOU8fWd4NyGgU59NE5E+ lfEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jZFBe8/A"; 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 g21si2783505pgk.293.2019.08.05.06.28.51; Mon, 05 Aug 2019 06:29:07 -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; dkim=pass header.i=@kernel.org header.s=default header.b="jZFBe8/A"; 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 S1730364AbfHEN0W (ORCPT + 99 others); Mon, 5 Aug 2019 09:26:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731395AbfHEN0Q (ORCPT ); Mon, 5 Aug 2019 09:26:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9E8220651; Mon, 5 Aug 2019 13:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011575; bh=kz4IhatFXf46gUFuUUXsCZznBc6ohCoNL4N8twIq4lI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jZFBe8/AkcnYLk4tfbGogE+A4zQ0BR0UMJUVmfqchUwAsDiE6efqFyuP3Ir8Qg1ig gmJQojfPE/+PfpNaalnSGUO40Eb6vNrXCRcf6Av4J8cybgTrLUDoEmp+dimzgnfdis DZc2AIoV0oFKPdKPMxAGGwdcthYKIp+dUcpU0jG4= Date: Mon, 5 Aug 2019 15:06:21 +0200 From: Greg KH To: Kai-Heng Feng Cc: Alan Stern , Mathias Nyman , Linux USB List , lkml Subject: Re: [PATCH v2] USB: Disable USB2 LPM at shutdown Message-ID: <20190805130621.GA25026@kroah.com> References: <46147522-7BC2-4C30-B3E5-6568E9642982@canonical.com> <27A5C1CC-E0A4-4CAF-B81E-90EE76C8A887@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <27A5C1CC-E0A4-4CAF-B81E-90EE76C8A887@canonical.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 08:58:33PM +0800, Kai-Heng Feng wrote: > Hi Greg, > > at 17:22, Kai-Heng Feng wrote: > > > at 22:17, Alan Stern wrote: > > > > > > I agree with Kai-Heng, this seems like a fairly light-weight solution > > > to a reasonable problem. > > > > Thanks for your review. > > > > > As to the issue of how much it will slow down system shutdowns, I have > > > no idea. Probably not very much, unless somebody has an unusually > > > large number of USB devices plugged in, but only testing can give a > > > real answer. > > > > In addition to that, only USB2 devices that enable LPM will slow down > > shutdown process. > > Right now only internally connected USB2 devices enable LPM, so the > > numbers are even lower. > > > > > I suppose we could add an HCD flag for host controllers which require > > > this workaround. Either way, it's probably not a very big deal. > > > > IMO this is not necessary. Only xHCI that reports hw_lpm_support will be > > affected. At least for PC, this only became true after Whiskey Lake. > > > > Kai-Heng > > > > > Alan Stern > > This patch is included in Ubuntu’s kernel for a while now, and there’s no > regression report so far. > Please consider merge this patch. I do not see a patch here at all, sorry. Please resend it. greg k-h