Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3125484rwb; Mon, 15 Aug 2022 18:45:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR6a2Ss1LtXbQVO2+Y+11Gdwdrlfl5JTwsEk38zLB7I0JEkJjNlFft8mttT2FE/k+LvkYrcn X-Received: by 2002:a17:906:8a70:b0:730:9c9e:edb2 with SMTP id hy16-20020a1709068a7000b007309c9eedb2mr11878164ejc.41.1660614349791; Mon, 15 Aug 2022 18:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614349; cv=none; d=google.com; s=arc-20160816; b=B1b8bNtBpbImEb1Gnuep+lwZVBqmNkJdPazu4canlc8mhWnTzcNqG83Xv7SfaxzeTt NTXNW3pzVFsaiD0+W1gQ8mQM1jBuBytTbwywQa4ecevMxu7jVz8nBz7E+2l4hNKpKxvj hpEmS6fRoshUV09waEvJuV77Y3pkRLNUGePl3+UlvI9ozLOZyejF3jbBJgFAu6GTxLsC Snv8wnu/Fp0foXDdi1GzCYYE83J29YA9Gon+LdUj20J9YPwH5LGiqdKGosik7NAQbcQZ cqq6cU3fmOWzGqiTQGSf4X1LC9aB0RIN+XiLOwaU0dErKhJEOJMv6d1OOYZnPWOZMzaz 6Xeg== 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=7J7v2G5jA2M8XOXoQM4/JjCNQjK5wfYLMSKSFqMhny4=; b=nXsV/BrXWu3geI4UTiO7SPMwaBlE0spv+hdprliJmMKlKzgCIgDL24GhKlFs2HaqCv /9QrcmHcJhmB/vAzEYNUSTa5VzNPewO/yHgw0BgRXtJrOK6oGzjg6itws3CeKAzAIybx in2qSGt5veh950KVM39Qil/1McKZ0CWZLRNFXoGjp9R6kFKhmzS3Hgp4NyfrHoP0o/PF ft4t4UOY1JScdRMIhVGNqIKtP/KqZa8glD0c0E8UB8/UYn9sb73/gnbYbRiW+cbW7Rln xARtcGX4A7fakDYQIuE2QOXSW7N5pUOLUgZyzkZkXP732Anal3KbdUkv72CISbF0eKak Uu9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q+jbOwO5; 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 cr10-20020a056402222a00b0043cc4d599f8si7486979edb.161.2022.08.15.18.45.24; Mon, 15 Aug 2022 18:45:49 -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=Q+jbOwO5; 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 S1351150AbiHPA3j (ORCPT + 99 others); Mon, 15 Aug 2022 20:29:39 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: 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/controller/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 = dw_pcie_find_ext_capability(pci, PCI_EXT_CAP_ID_DLF); val = dw_pcie_readl_dbi(pci, offset + PCI_DLF_CAP); val &= ~PCI_DLF_EXCHANGE_ENABLE; - dw_pcie_writel_dbi(pci, offset, val); + dw_pcie_writel_dbi(pci, offset + PCI_DLF_CAP, val); tegra194_pcie_host_init(pp); dw_pcie_setup_rc(pp); -- 2.35.1