Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657673pxv; Thu, 15 Jul 2021 12:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWTVgHSxtiVNXnEpzXRaTmxZul1Ja/yCDl/AcuQIwwAtvnRPY9iy3kQhQTs2bkil1YsJeM X-Received: by 2002:a6b:6205:: with SMTP id f5mr4341363iog.60.1626378047907; Thu, 15 Jul 2021 12:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378047; cv=none; d=google.com; s=arc-20160816; b=BtFGQYhrzTeJBg1vWGSp+3MPvQAJh3dpi72fM3xdRSNs0xIFKImWKjMmLG01qgBjsU TH7EjMmwMIqaOpZlL4Ky9CwISwl7ZKcQaIihgI+n+9No+lqxVPZTZ2CqIU1BGlNonrKB 9b4R0H+z7RKPbi3obBXLm0M3JoafFqwl11KKnQZqe4E/3+JZ5QGZv2nE9rKf0tn+IYti zK79F7r/7O/2PV1c2wSSAR4KAtiwsYtyFFY9B1C9RKDTqvOkDuAngvoGSWZzJ6bXrhBc UzE8bsYHE2/dS+8dC9FB3GuBVlVpsRbvPhtcyCJKcpm2eIlWZ3G+1wwrRCVgsiI1cuiI kVAw== 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=f/aGO2chWsuGZyWyDeJVQ62TuZqfiSd0MfbIqVIuc2A=; b=veY4qTMFJYkwVMhlEWyn4W6J16tjzCxzmd4OwOBJz8MNr5nmOQovxdkWsrhPdIKscq 7goCIa7p9Otjl6xOrh3FBUkE8YQPQXULkcEBAvwoZj5smtY4xm+GqH+4ASgKK13iJ+/R 6hpWScwy4dZvhMfsI2T+g7zGMLSDjlU/nMHhl9EqhDtwl4GtbGUKtaMKEZnZiv25QRuW Lua9HEtp05uhbq0CZZ5jbREBfasFjEVcFREX+UizbaCmz1iCcVewuKPLGwpKBaIpP72P igl6jKjKU1/LwjX9IAjGMc/u6QCYTEb4NyJgJ4yu3kHjEQz33Qrh3LmXzv9ciHId/b+f mQKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nq+W9AGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si7454121ilo.41.2021.07.15.12.40.35; Thu, 15 Jul 2021 12:40:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nq+W9AGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1344812AbhGOTkd (ORCPT + 99 others); Thu, 15 Jul 2021 15:40:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:51362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244306AbhGOTOm (ORCPT ); Thu, 15 Jul 2021 15:14:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D4BC60FF4; Thu, 15 Jul 2021 19:10:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376215; bh=p4UoKnK//5jgto48d8wuORtdCGB0SzO6Zsdb0CdF16A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nq+W9AGEwOuqr06ZYM+aiDgpOniEWPdCf9Gp3SHefzGdxadPVzwhULaK+GtYDz6Py 9U3lFxFqB8wXUjatKu2OyzAuVqCb0kHYHWZgc2AXgnAuKbdP1INYKuTvxIMuYdfB4i 7oN19lf2NWM8IuNV7oQDG8cUVML5vm1EJsCSblag= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Hunter , Vidya Sagar , Lorenzo Pieralisi , Bjorn Helgaas Subject: [PATCH 5.13 177/266] PCI: tegra194: Fix host initialization during resume Date: Thu, 15 Jul 2021 20:38:52 +0200 Message-Id: <20210715182643.127074828@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vidya Sagar commit c4bf1f25c6c187864681d5ad4dd1fa92f62d5d32 upstream. Commit 275e88b06a27 ("PCI: tegra: Fix host link initialization") broke host initialization during resume as it misses out calling the API dw_pcie_setup_rc() which is required for host and MSI initialization. Link: https://lore.kernel.org/r/20210504172157.29712-1-vidyas@nvidia.com Fixes: 275e88b06a27 ("PCI: tegra: Fix host link initialization") Tested-by: Jon Hunter Signed-off-by: Vidya Sagar Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pcie-tegra194.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -2214,6 +2214,8 @@ static int tegra_pcie_dw_resume_noirq(st goto fail_host_init; } + dw_pcie_setup_rc(&pcie->pci.pp); + ret = tegra_pcie_dw_start_link(&pcie->pci); if (ret < 0) goto fail_host_init;