Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2971221imu; Sun, 9 Dec 2018 13:59:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRRmhycwsF4vrjLABkd1AcJSk81HPC8ze/3MSNs2P39ERXQRqEUOTUOG1Ac1nUmjU3a8tp X-Received: by 2002:a62:cf02:: with SMTP id b2mr10414064pfg.183.1544392799922; Sun, 09 Dec 2018 13:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544392799; cv=none; d=google.com; s=arc-20160816; b=m4I7Y27hSNO6NWXhAYkjHZZZp0d0KJVg29aWaxZnaFO0Bt5pkdSBrt4oRFvNP1djCQ sDUNQJ8GPrDiuQWrUY7ZUyR47XcFD9bBLVVAmC6CUaLHmbaDTJQ6uY9uWcCb/sVMIpW1 i+GoQvxSJdt0+3z7XcEMnekEJ8AhcITSPLRmnQWAZpWP6Q2GZrKgNIErNCXYel5kYn4H 3UXSKhlGmMvef4gBInLvTXLuZujtdVLjImCxNN92zC4uXE4F5Ssa/KqdIjOdHNyH3RTc tCKzIpChFzY32czfbkB5Wfra/ytNvTq0pHzkGDwfymP/UqEm0QDNaIQsFvdXJKZD7cFg VKNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=/dByJi3Sj8oDzWaEAN0jBRkNrLz870FmpiWH+IZqETA=; b=AdEsRL4Rt9v1WFV7jvokbeUdbqVRenIcJYPmZprjESKUcip3NN+FNkYu2j73q66TIb s6clGXuZm0c03xLjDiL6pdO4bveftdMgdzpCiIOGJhuf2tkAUxidg6b99nVqIXKuN+hg yx7dyWi2CwteZ0rv87BkJrUvdhqmcMVZGDA5z2445nlXB0dNrhvhnc/JxTQIRTWeXKeF s3/+/HJ7khSeyMsCL3DoPfrteHv+tx0699Mbd7bUvgOoCwm5KpOjws4qlKCoT9v/+XBB cJYL+Yx1CrZ8JQkQp4IcD8BEjKGYz2GpMt4v/qfzPUUWVxpPoE1P7T/J9ncGxHt8b+aq xFSQ== 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 f81si9370144pfh.33.2018.12.09.13.59.45; Sun, 09 Dec 2018 13:59:59 -0800 (PST) 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 S1727033AbeLIV52 (ORCPT + 99 others); Sun, 9 Dec 2018 16:57:28 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:36366 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbeLIVzl (ORCPT ); Sun, 9 Dec 2018 16:55:41 -0500 Received: from pub.yeoldevic.com ([81.174.156.145] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gW735-0002ii-1a; Sun, 09 Dec 2018 21:55:39 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gW72g-0003Va-E7; Sun, 09 Dec 2018 21:55:14 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mathias Nyman" , "Alan Stern" , "Greg Kroah-Hartman" Date: Sun, 09 Dec 2018 21:50:33 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 206/328] usb: Don't die twice if PCI xhci host is not responding in resume In-Reply-To: X-SA-Exim-Connect-IP: 81.174.156.145 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.62-rc1 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 Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- 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 @@ -528,8 +528,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); } }