Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp589740iog; Mon, 13 Jun 2022 08:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUUKSPNQw6mfhE2XXPDdBYdbLD/pVzGkK9JexhSzGV05bCg1V9ArwAiz0IY/3mTsm7SSq9 X-Received: by 2002:a62:7cca:0:b0:4fd:e594:fac0 with SMTP id x193-20020a627cca000000b004fde594fac0mr147746pfc.79.1655134945985; Mon, 13 Jun 2022 08:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655134945; cv=none; d=google.com; s=arc-20160816; b=JrDGVqBUKtquEtaDMrZCPiU7Y1WRvPMZ2gZBZkhNZBDz9U65i6xu93OOcENTAvFABX pPyahpiyHQqN795F+XOF3TP0LVKSJIYdD2+uCYE6y5dOFOSz2lTq8pjfHRLH6t7g3aGs RgUuxjLpB7IsFnDFzu4XloslxPYd2SG603ft/htOpsDQMJfbmr3sxJt/3sMZU9t9gYwb llwoLUFEPDR9vnc2wsx7OZTu94GI0JRaur4mc0FcJ6n6YGeqfnOocvYayJP+AaXl44rO toPEnhiI97kUMxid5IMJo5T+ZrU+gjEUYJWTs78pL7Ynx+raDiHNXht20Tdzp8DlgyzE YaDA== 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=ZgD5JuPNpGYTFfewwFIV7eSnxX2dWKp+9ndgqgxu3kg=; b=wUyX5WBpzG33THZL6/vudB6UYJWQlhfkFzCqh1wSQpUDxY59dYY8lfofkALrDutYSU xKIuG3ySuw3uxvwnJAAfIDD+y7CJ6mcAEaxGq5r1cY/mH7cqsIIvSJyXWp114L1btwBC kcvbC0buKOq5UjuJSLs08Q3qlFF2wtwUwwoM51L7rSDj6DhKc6d9oB/eY2bGhU63+1g6 V6lykcyapNRibV/5n0NqkfgF8KHRzpSlytxkc9qDs2S7NNMUyflvbC4Mc5ubQwRWneTw OPeXY3Ld1RuVZ57IVrWf/thwZraCNyKms+3FuFVuY6ag9gUcHgMYy4v6bd8wD9lcKB5i VqEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kq7p4xPH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g67-20020a636b46000000b004051d974ce4si9296547pgc.458.2022.06.13.08.42.13; Mon, 13 Jun 2022 08:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kq7p4xPH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346782AbiFMML1 (ORCPT + 99 others); Mon, 13 Jun 2022 08:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358852AbiFMMEw (ORCPT ); Mon, 13 Jun 2022 08:04:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808D950462; Mon, 13 Jun 2022 03:58:05 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 32C2361372; Mon, 13 Jun 2022 10:58:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4332AC34114; Mon, 13 Jun 2022 10:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117884; bh=dt8xZhMxuuCWYJ5EOaNtQVPRqm0fP9U0QnW2yVBRQiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kq7p4xPH3jFdsEVsv9QXSjQkZlsNbj/JWFijX4h+2OtRpmFPRUE+vRtfcJNya4PH1 kAqx5wyZ9H3bIuwJZ7UYgtYUNWi2MycP+iRIDgdFTxmIo9jDPeJi86WyDklVDZXmt6 HUPUTXCdcJKmv/lscLb5yQXaFESmKhVakOyqXzZc= 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 4.19 153/287] PCI: qcom: Fix runtime PM imbalance on probe errors Date: Mon, 13 Jun 2022 12:09:37 +0200 Message-Id: <20220613094928.517197940@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094923.832156175@linuxfoundation.org> References: <20220613094923.832156175@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=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 @@ -1331,17 +1331,14 @@ static int qcom_pcie_probe(struct platfo } 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; }