Message ID | 20210726153826.319253071@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C26F3C4320E for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:44:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AC49E60F38 for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:44:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235243AbhGZPEK (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 26 Jul 2021 11:04:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:43972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235887AbhGZPEF (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 26 Jul 2021 11:04:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12F1C60F22; Mon, 26 Jul 2021 15:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314273; bh=sxirVD39f+yJa6iZpc/b5gmz//oECnr8est8nIyquKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KAqXsCPz8uyb+CNsje9TeFGAxvPlaR0rrXwA/HMrTnrFZDrQioFTqNtHQtsP6e7vy VxTUZ8zY5eRWfzN9GeeLruKxy1IsHjzsU3MRSvOg+w9eexN7nlL5XtABhIjlT4ag4S pYxseEemkwtD9zStnzbVOMkmNshN+jUM0NvTKWMc= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Mathias Nyman <mathias.nyman@linux.intel.com> Subject: [PATCH 4.9 46/60] xhci: Fix lost USB 2 remote wake Date: Mon, 26 Jul 2021 17:39:00 +0200 Message-Id: <20210726153826.319253071@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153824.868160836@linuxfoundation.org> References: <20210726153824.868160836@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -1292,11 +1292,12 @@ int xhci_hub_status_data(struct usb_hcd * Inform the usbcore about resume-in-progress by returning * a non-zero value even if there are no status changes. */ + spin_lock_irqsave(&xhci->lock, flags); + status = bus_state->resuming_ports; mask = PORT_CSC | PORT_PEC | PORT_OCC | PORT_PLC | PORT_WRC | PORT_CEC; - spin_lock_irqsave(&xhci->lock, flags); /* For each port, did anything change? If so, set that bit in buf. */ for (i = 0; i < max_ports; i++) { temp = readl(port_array[i]);