Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2505015imm; Mon, 24 Sep 2018 05:36:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yBF+hz4gxZ1LNTqs9du6wp5tz1C7Ta94X75MHXkhI7RX/YWxT/IcLfKbfL07bOyVLP1R9 X-Received: by 2002:a65:6109:: with SMTP id z9-v6mr9491077pgu.243.1537792564215; Mon, 24 Sep 2018 05:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792564; cv=none; d=google.com; s=arc-20160816; b=ifpwTd2qVHDb9g7TOKJDdnIlAbNHDPsPTz7d/bFxHEJyRnfzV+qGnV+cbNUiIGZWyN X+/A+QzhjUeujSejR2p+Hy4Cx5ki6UR73oGw18QvCSkHUw8nl/J6Yl2csb7ejA7F8764 rT7AXuBBr+ZiIHNs+DOp5aE2PsUDpiV5Y2pfdC7czQ9Wq0b7IWautNLsM+cn2G/0DaeN yV5HRUKVRNVf70mlNrWPLYhovpoFcrdbmB77SE3mD3WsWKeGab9N3jWWf0Oi1OXsEp06 v2C0Yo+cBmntrhrFyN8a0Bb+O+tqHx6PQvvmlNw3vpa/85KRBDHVrIGSq3LSicIdOUUE tTew== 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=BDc3t8p42L/xzpoVjMEmNV6Q+RHnZKC8DDSIQ+KMVcw=; b=DH/trPSqhomyAeUxBYlLNVXJPf/9VjKR/agQZExsEsR2Mkt7p0Q2y7ZHWLeF9v3j5b tksRhVGj2eO3hDg8zUYgynrWRL228uzAmFSjdySbbFGFQCW5Yk6h377Pf9mcE00YgEsX /n7b1t0WbHsXnLj8PY7/X95XFtIrjeFY9XqxjTOAWNVa+EzMAYcmKV3TbzOfWyKxEJfy UF+uku4vp/E1z9MTh7vLil0DJd6gjM3O4/gfKc5DmBfuoLGfLlS2+Fy3Y/nz8NjMkzKl /191mxgt6N48N6ZCSKIJoHL0brD5u7YmdnzL8G9LYWHQ3OwZrWkhQBMfQP61vk07NBJw bxpQ== 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 f9-v6si31521pgk.594.2018.09.24.05.35.48; Mon, 24 Sep 2018 05:36:04 -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 S2388365AbeIXSgp (ORCPT + 99 others); Mon, 24 Sep 2018 14:36:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58466 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729816AbeIXSgo (ORCPT ); Mon, 24 Sep 2018 14:36:44 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A28D91092; Mon, 24 Sep 2018 12:34:47 +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.18 114/235] usb: Dont die twice if PCI xhci host is not responding in resume Date: Mon, 24 Sep 2018 13:51:40 +0200 Message-Id: <20180924113117.326436173@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@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.18-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 @@ -515,8 +515,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); } }