Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2252313iof; Wed, 8 Jun 2022 00:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNFSbwgzi2qyoQIHFNMuKnFj5J5jOIsds1Re+awrQMA4qvBeQ9b9C/jleWIaOeBTrqizJw X-Received: by 2002:a17:90b:4a8e:b0:1e4:e2bd:7ff1 with SMTP id lp14-20020a17090b4a8e00b001e4e2bd7ff1mr39834169pjb.58.1654673557230; Wed, 08 Jun 2022 00:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654673557; cv=none; d=google.com; s=arc-20160816; b=y62ZMVTq0p9xVEpatkm6Wi/zfTyOQFXfnsnpNXR7qzd2Y6PbpNA3qW9zTlKXkrxLdr Qvy4zL2q5AjSug5M5pcJGaTf8FVluC2P6bLrFc0mCEKaYGopNOpzwAen6TueqYXCn6l9 FFeB9ivtJCR6GtVZgV85WGVUWrbUuOQhG75Bpdre4rVk7qzquJLmYHq1ejh0IhpvisTD qSAfbABCiNP1IX2ZxKvPfT1hEfewBaOX8cDWLJEBnbyejYbdg6W9VQ6J0Gt2Qvn6pSd0 +gTziY56ykXgPi2ed4/tHAOpGq8lP5tcqYuRl/g7LgYjC7JOv3010qIwjU3fVFutzUOl AzZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VZ0dk3D3JOijSMAvbWOcha0PipQ2RCGQhvJxWvW6xPs=; b=JDO30ZChcbv5vAKlBMywRyr+U71Oo+IJwZn99/dkXpD3Gw16aehPKB3BD0o+cs9Rm3 h7jHUwtD6lo3B1C6xasMCbq1bi11BDsVesBmPg8tpVmfAWzv4ns/mE6qfNsnNyfuwZTm 4Wfynxa3UL+8RhRziurwNidRBKjn0GceeSqgn67toE/Lc77lnlaeKE0HvIe5A6FwGUBs 9asjZ7GHIq/fFXQmQIRf/4VZvXxSNgN1pdlY+uAK0wUcsuifCwjUoEV2JnsWWjFKz0Cs 3wTUQpuAgvfUjBqn/5jtKRpY4VPsnz08yIWZDGO+/p6P6P6mE6nXkiEKVkENdz9+HMw7 OXiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WVTdz6GN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l4-20020a170902ec0400b0016179fd2770si23685550pld.392.2022.06.08.00.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:32:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WVTdz6GN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F41E8202D21; Wed, 8 Jun 2022 00:05:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245760AbiFHAQn (ORCPT + 99 others); Tue, 7 Jun 2022 20:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381770AbiFGWSk (ORCPT ); Tue, 7 Jun 2022 18:18:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE35C2629C6; Tue, 7 Jun 2022 12:20:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D0834B82182; Tue, 7 Jun 2022 19:20:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C4CBC385A2; Tue, 7 Jun 2022 19:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629621; bh=qbauNjF61MCv+D9NJt4OXenPxXHOClS2n7guB7XxnK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WVTdz6GNZDwismMNVSVJCMwenkQF4auIMjFA7gotlSZZD/RvnSBWTaj0g+chnUHP1 mSjRCos7ufp133/QVksJvC5mTtJ69K5DbwT/FZRkJEHtK1aT9KkNaxaozKKwqHPqlb v4tOYoLAyxDUm+7mGSs9iY50bjPl55XQELo3vOn8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Lorenzo Pieralisi , Bjorn Helgaas , Manivannan Sadhasivam , Stanimir Varbanov , Bjorn Andersson Subject: [PATCH 5.18 756/879] PCI: qcom: Fix runtime PM imbalance on probe errors Date: Tue, 7 Jun 2022 19:04:34 +0200 Message-Id: <20220607165024.806157230@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johan Hovold commit 87d83b96c8d6c6c2d2096bd0bdba73bcf42b8ef0 upstream. Drop the leftover pm_runtime_disable() calls from the late probe error paths that would, for example, prevent runtime PM from being reenabled after a probe deferral. Link: https://lore.kernel.org/r/20220401133854.10421-2-johan+linaro@kernel.org Fixes: 6e5da6f7d824 ("PCI: qcom: Fix error handling in runtime PM support") Signed-off-by: Johan Hovold Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Reviewed-by: Manivannan Sadhasivam Acked-by: Stanimir Varbanov Cc: stable@vger.kernel.org # 4.20 Cc: Bjorn Andersson Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pcie-qcom.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1621,17 +1621,14 @@ static int qcom_pcie_probe(struct platfo pp->ops = &qcom_pcie_dw_ops; ret = phy_init(pcie->phy); - if (ret) { - pm_runtime_disable(&pdev->dev); + if (ret) goto err_pm_runtime_put; - } platform_set_drvdata(pdev, pcie); ret = dw_pcie_host_init(pp); if (ret) { dev_err(dev, "cannot initialize host\n"); - pm_runtime_disable(&pdev->dev); goto err_pm_runtime_put; }