Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp443740iog; Mon, 13 Jun 2022 06:06:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8wL5xQeMus944cCwzhk1lCDl+oZcJIpmLNiiAQo16zz8LHfkJzmnGOH9/BHp1FJSsZ/P3 X-Received: by 2002:a17:907:7256:b0:711:dd35:61eb with SMTP id ds22-20020a170907725600b00711dd3561ebmr30220355ejc.445.1655125619634; Mon, 13 Jun 2022 06:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125619; cv=none; d=google.com; s=arc-20160816; b=H6zRy+uKwlJF9ApNw0kE/iAxmLonO6YCI/xjQxw5UntOBQmJ8nK//XquDsxOumpAoI BkY+dHt20To6ukjXIS64laq6na9W11rDVCHm6Bd5HphQM1W+QlFWNBSgd4pge7v7tiod +ljjompTd6Z8EXmUfb+WpA0x+XEFf8x80QLVvWiRXjQWXCfL2w7Pq6akpB/r5Q/UDJxF bx/uhG1TaKCo3K63gZX64GpCG4RbnqVSyjxE65LwOtHIH5JdYM/Ll7WHY+hWC9A6phru gfH71RzR1XH6ZjbZ/yJ3Yr7LBnD5rI+mSvFaFlffUgpZV/tUHpgyobF4nyODpVjGKDMG ek1w== 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=oJaJNiyGAJjl17M/xitIAXAylP+P8Ec6txkt1ZEl70I=; b=K9Jz4DW8adlKbpFf3t27pAo9imh09wu/97Jc4AbuFAfvWBpPOzF7983kR2LbH8gfvq xduoo+OxKPU9TR3DsSPFyqZ7Mtik7hpgwPPhUkX9h03qtWk0eJ7SZSyZSkQ12fbJ6GSb S1KqR4blkZwf0CkAQD/5bSVz1sBKNo9bve7fmW6cqKzr09ZXnBnnmkzep6BguYU5PW+3 tUXaZutcfBi3VPP0vbjtb4jTlSYZohAcF3wZm/caXwLB7ni0dJwPHF8k5NOGSxlZlncB uqYCAVl+8S6DCYcLqm3gK1zsblIMnOv7D9rKr3NWzhDP5lDuDI+kVz5qKcFYBWXvnNaV 3Plw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=foRZ669M; 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 t13-20020a056402524d00b0042dd10d4e9dsi10015717edd.508.2022.06.13.06.06.33; Mon, 13 Jun 2022 06:06:59 -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=foRZ669M; 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 S1354099AbiFMLbo (ORCPT + 99 others); Mon, 13 Jun 2022 07:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353694AbiFMLYg (ORCPT ); Mon, 13 Jun 2022 07:24:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB9621E00; Mon, 13 Jun 2022 03:42:25 -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 D8A3EB80E59; Mon, 13 Jun 2022 10:42:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBB98C34114; Mon, 13 Jun 2022 10:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116942; bh=Iy2zCxexbia+3jnrwRqT+rxLhxPsx0s31m2dZe2YRmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=foRZ669MI5ohSmi6QN2aaI1znddQ+zgfkAdfTNJDViozqkHYWj0cCgcE1AsJ6rALD 8MezGbHl8xiKugUgPP1FSr44ESNokT+e15UyCNeLj84KldDvSA0pieG07n9WboDFS3 tUxDZ+DPDAEiFPHiBYZUBcXQVr6jD1FwEx/G/Zjk= 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.4 231/411] PCI: qcom: Fix runtime PM imbalance on probe errors Date: Mon, 13 Jun 2022 12:08:24 +0200 Message-Id: <20220613094935.568051451@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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 @@ -1343,17 +1343,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; }