Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp706534pxj; Tue, 18 May 2021 12:16:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH7Vci0b9Q2Wnf0YarlXdTWV5TfFijdnrsYh88L8UrTbZBpTokKkYrKsA3/nf0sbQMXfNB X-Received: by 2002:a05:6602:2596:: with SMTP id p22mr5590910ioo.184.1621365418359; Tue, 18 May 2021 12:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621365418; cv=none; d=google.com; s=arc-20160816; b=Pyi/oh/eWogsl0VgJ05vGMjz8+WVpPbWcpjE0PUaxGWGgw+Gy/aZwvld9t/T8dW5e5 8nyZYO2UFpU4HIsTLGlVKgPDhM7rrPawzOYWF6gRY5XBjdooZzIl6nUtc0Cy6wWfNbXu n1PXRwXABs70w54RmsJNVkaETtmiwpl7HQDkMthJewyamMPtXn8hgZr0HwSX8L0pfNVs rJisX/jHocIKLMbJeecvK/DYwnM4jx/Q04dW1r1usrQ+GbZ9IznnavrFeEdegiW0NuH6 EpIYLvoeoRt0vKOPSsbqFfVsH9/fTbTFSigyitP3KloCpY/43afU1/NaZbLDWJdBMdK+ JGEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5CGkzShse2B3VLbJVWGWK2HyscNHjAA77XfGxj/el4c=; b=mySRBTrp6UtHVBJMLxKXAnfNAbebPFTE9jhPAz3cVYu1GCr5cVXMF9qY9xWiG9GkW8 LmeConCzFuigDyOt3lXk/YXD/aM5DBEIbKkefwCiy8cKXto4B3UB0xvNv73eCWuEkD7B P2P9qWk1bttAhuaJ8vqnNKfzakMa+TZ8Zjm0lbHy4A85DZd43jlQAfbk2d7Y9Prym/6a RYSCEUy2lycTiDVvhn7coxr0guh3vn6wT1B2GFE3ADcYhQ4GUqLxpS3JFZXGUj+eE0gg sYnsxcXXmoefZUOn2LCiCFAz2FNl8jX91iXShpyfxnIokIwTzqZ647vJEkGLhAqtQc4I H/Fw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si2670952iln.71.2021.05.18.12.16.23; Tue, 18 May 2021 12:16:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344813AbhEQQVd (ORCPT + 99 others); Mon, 17 May 2021 12:21:33 -0400 Received: from foss.arm.com ([217.140.110.172]:57448 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344264AbhEQQT7 (ORCPT ); Mon, 17 May 2021 12:19:59 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DA309106F; Mon, 17 May 2021 09:18:42 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3923F3F73D; Mon, 17 May 2021 09:18:41 -0700 (PDT) Date: Mon, 17 May 2021 17:18:36 +0100 From: Lorenzo Pieralisi To: Jon Hunter Cc: Vidya Sagar , robh@kernel.org, bhelgaas@google.com, thierry.reding@gmail.com, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com Subject: Re: [PATCH] PCI: tegra: Fix host initialization during resume Message-ID: <20210517161835.GA9796@lpieralisi> References: <20210504172157.29712-1-vidyas@nvidia.com> <7dbc7daf-5512-c938-3aee-3c1994b50d07@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7dbc7daf-5512-c938-3aee-3c1994b50d07@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 03:11:00PM +0100, Jon Hunter wrote: > Hi Lorenzo, Bjorn, > > On 06/05/2021 09:49, Jon Hunter wrote: > > > > On 04/05/2021 18:21, Vidya Sagar wrote: > >> 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. > >> > >> Fixes: 275e88b06a27 ("PCI: tegra: Fix host link initialization") > >> Signed-off-by: Vidya Sagar > >> --- > >> drivers/pci/controller/dwc/pcie-tegra194.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c > >> index 6fa216e52d14..4c3c0738f2e6 100644 > >> --- 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(struct device *dev) > >> 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; > >> > > > > > > Thanks for fixing! > > > > Tested-by: Jon Hunter > > > > We should also mark this for stable so that this gets back-ported. > > > Can we queue this as a fix for v5.13 and tag for stable? We usually send fixes for -rc* when the patches they are fixing were merged in the current cycle (ie merged for v5.13). This is not the case so I shall send it for v5.14. Lorenzo