From nobody Mon Sep 29 21:14:55 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F31CDC00140 for ; Tue, 16 Aug 2022 00:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347810AbiHPA3n (ORCPT ); Mon, 15 Aug 2022 20:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351734AbiHPA2f (ORCPT ); Mon, 15 Aug 2022 20:28:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23D91815F2; Mon, 15 Aug 2022 13:35: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 E0CC2611FC; Mon, 15 Aug 2022 20:35:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F01C433C1; Mon, 15 Aug 2022 20:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595704; bh=fOdGFFtHb2u3F0BRb8234h0PP4eJ3kgUdjnmltyekLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q+jbOwO52KBCJx2stPuMg+QznI0RCqu9GTfwMXdO+RDjvr+ulQ3HY1oicZRpftFB6 QR5aswPpV8uNa9yl1D8932Csu7AdIP7jrSUf9RdP3+gryMLgMFC5RTL48SfSoBrMgW INi7bDBuYMWOAJPCiH3uz5bLHKAmhqRX8OmKVMJE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vidya Sagar , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.19 0848/1157] PCI: tegra194: Fix link up retry sequence Date: Mon, 15 Aug 2022 20:03:24 +0200 Message-Id: <20220815180513.419158047@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Vidya Sagar [ Upstream commit e05fd6ae77c3e2cc0dba283005d24b6d56d2b1fa ] Add the missing DLF capability offset while clearing DL_FEATURE_EXCHANGE_EN bit during link up retry. Link: https://lore.kernel.org/r/20220721142052.25971-15-vidyas@nvidia.com Fixes: 56e15a238d92 ("PCI: tegra: Add Tegra194 PCIe support") Signed-off-by: Vidya Sagar Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-tegra194.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/contr= oller/dwc/pcie-tegra194.c index 0bab700086f9..67e8372a3243 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -976,7 +976,7 @@ static int tegra194_pcie_start_link(struct dw_pcie *pci) offset =3D dw_pcie_find_ext_capability(pci, PCI_EXT_CAP_ID_DLF); val =3D dw_pcie_readl_dbi(pci, offset + PCI_DLF_CAP); val &=3D ~PCI_DLF_EXCHANGE_ENABLE; - dw_pcie_writel_dbi(pci, offset, val); + dw_pcie_writel_dbi(pci, offset + PCI_DLF_CAP, val); =20 tegra194_pcie_host_init(pp); dw_pcie_setup_rc(pp); --=20 2.35.1