Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:45473 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbcDFVFm (ORCPT ); Wed, 6 Apr 2016 17:05:42 -0400 Date: Wed, 6 Apr 2016 14:05:40 -0700 From: Greg KH To: Mathias Nyman Cc: linux-usb@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 3/7] xhci: Don't suspend a xhci usb bus if there is a pending event. Message-ID: <20160406210540.GB14228@kroah.com> References: <1459948088-27118-1-git-send-email-mathias.nyman@linux.intel.com> <1459948088-27118-4-git-send-email-mathias.nyman@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459948088-27118-4-git-send-email-mathias.nyman@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Apr 06, 2016 at 04:08:04PM +0300, Mathias Nyman wrote: > We don't want to runtime suspend a bus if there is an event pending. > The roothub on a NEC uPD720200 host with a single USB3 device connected > might go back to runtime suspend immediately after runtime resume as > hub might not yet see any port changes in resume. > > Prevent this by checking if there is a unhandled event pending when > calling runtime suspend. As Alan points out, you didn't actually test this :(