Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2464458imm; Mon, 24 Sep 2018 04:59:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV60IsyIN1gMzF779ZZWJa+0SNrWwtX1phGj8aSAl6OvRPMzvAT7fCoY5KZ5nCkprfEl5paeg X-Received: by 2002:a63:c20:: with SMTP id b32-v6mr9257111pgl.400.1537790361789; Mon, 24 Sep 2018 04:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537790361; cv=none; d=google.com; s=arc-20160816; b=GiEmn7TGCypqMehjs5szbEZ0t3EzGXqO4Z1OH9z2NUVVa79JL2popl8hNjyqtg8+/j PMOPgUyfI4oUuQWPyLybAa21MWq2IY/jblnPjCfswMiwOYXYkvw7W31+n+WRxvqsFc+I +ZnLwmEyjMo3kMrlvpKHyzaUGCrL5h1JzFFqvRnKzcAOczsFYjDZGGFXiEvryC9YSu8G OpVIkbZFYk87p5sC1cUXJx3RTcQk6QvDgcLvHDYdeB5JZ8+xbTduK3VgNSX1hFDuPYDJ 57vwx3WdZfC0Bl8E9iPhzse913VQ42emIxz3TOLmyzKRpKJkW6cdWKKTk+9gZjC8tnXy XtMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=W9eopaFK/fT2LexeJmfhpL47Uu02SI+OwPncAO5Odhs=; b=jAxoAFKa3mGDWwIlJcaG3iL4w1UUx0wsDgTH9B0ApRW/oROB6OIHIPryQBhm6eOdS5 3jiHo/7V1yE488s88R8ZLRaAGrI3NN0NvQP66nOOoYqqS04cHYNvvrlO8EE9jNXw1Lc4 C0IUJpC89Wzg0KXIRWO2d8Ldk/1yuo4zNF55T2a7DgDtBGPWkOhNF9LUlPTCTYh7DFwb ABzzq8ZL4V0U5jDdjB2BmX04oulLD6POvgrTBwiZHEEO481gc9/NI8utFk8snrzfCeTR 47NAlxb3TGBox63Hx+tDXOM7EYdhLKhL+KPrIJZEiCntTrKS+bYbDQXzLzOSZ0AYyicD zvzg== 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 ay10-v6si35404600plb.293.2018.09.24.04.59.06; Mon, 24 Sep 2018 04:59:21 -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; 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 S1730131AbeIXR6r (ORCPT + 99 others); Mon, 24 Sep 2018 13:58:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52110 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbeIXR6q (ORCPT ); Mon, 24 Sep 2018 13:58:46 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7D73B1072; Mon, 24 Sep 2018 11:57:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Nyman , Alan Stern Subject: [PATCH 4.4 35/70] usb: Dont die twice if PCI xhci host is not responding in resume Date: Mon, 24 Sep 2018 13:52:34 +0200 Message-Id: <20180924113102.993373564@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113058.420454070@linuxfoundation.org> References: <20180924113058.420454070@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mathias Nyman commit f3dc41c5d22b2ca14a0802a65d8cdc33a3882d4e upstream. usb_hc_died() should only be called once, and with the primary HCD as parameter. It will mark both primary and secondary hcd's dead. Remove the extra call to usb_cd_died with the shared hcd as parameter. Fixes: ff9d78b36f76 ("USB: Set usb_hcd->state and flags for shared roothubs") Signed-off-by: Mathias Nyman Cc: stable Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/hcd-pci.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c @@ -529,8 +529,6 @@ static int resume_common(struct device * event == PM_EVENT_RESTORE); if (retval) { dev_err(dev, "PCI post-resume error %d!\n", retval); - if (hcd->shared_hcd) - usb_hc_died(hcd->shared_hcd); usb_hc_died(hcd); } }