Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2925707rwb; Mon, 15 Aug 2022 14:10:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4S/lXxKmEab4eeQu1Vm/2JSJefX4Wp3+VYWl+8VvkMcbK/jU2hlGFobuhY4gc9zx2Ll4En X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr11151785ejc.355.1660597844445; Mon, 15 Aug 2022 14:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597844; cv=none; d=google.com; s=arc-20160816; b=lre4WXVFE4BLzFFt9dggGLvuJxOM+sGso3aSr31qZIE4k5kFBa8JB9iHItDnypQmjl 0je//+/W7fdVwFoqc9ec2v8EuUSgtBVbV1buRDir/rJPjSJNssmM/W+MgruWhnY0MNWd DyPSlohiJW6AEBarP9hFciO0voqNW1O5gNZ9jQahuLBSQY3ammNfqYwPJwxjmh+ihBYZ acre+cIdmz9OQp30ZDV2HhuOldRvENOzU2UPjvk0ap7RiUg2ptDRhZC/1DwZ1262CvNr WGiqSMBfVGHtnWlrwLhxF9psP7zTZaObjBemuy+Xuj2w2CrguDXi9GbGLNMVMWmB4SED /GIw== 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=GuX1IfHLHTFyVb18BB/qH2kAXoOiYBy3D2/LHx3SYBs=; b=stYKDuMR6JIo507K0XG+9e5MFSOTcJeBZ3Icsif5VKTTqk8A6Z4MKTFlTV01sCaG2l /njy6k9f/cLAA4fCUUF2lzr4lIjogSN0HEKzuSmgxvUTY2xF9LWLEK1pdzxoGFP7dlTG PRUG7LesP4DCjDRkRb89laz0iejU0czYQYviesjdOHNj6xlYEx5WfuM0E8Ta2gm4OaTh eIL9cAyD8qm4vc+51EYWfpectY/mXpFrJHO+djmcxPLXBAr5iWzCKVAFtAMF4B9CsNr7 XLDBza2pcCwfPAeenCIwXRgXQpZ1t9zakt5b8mtWXTwhT1qu3vjN24gTUSMX0irWdoAi 6kRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x4SPMM5v; 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 qk33-20020a1709077fa100b007121b9fc6fbsi8588059ejc.956.2022.08.15.14.10.19; Mon, 15 Aug 2022 14:10:44 -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=x4SPMM5v; 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 S1344246AbiHOTbS (ORCPT + 99 others); Mon, 15 Aug 2022 15:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344118AbiHOT0X (ORCPT ); Mon, 15 Aug 2022 15:26:23 -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 245D42BC0; Mon, 15 Aug 2022 11:42:17 -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 B55A361052; Mon, 15 Aug 2022 18:42:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A18CFC433C1; Mon, 15 Aug 2022 18:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588936; bh=kz99HwGTJI+6tm6sIsL+QeIuEmX7pI2rcDo8gyOHOpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x4SPMM5vPhr4u/FtKwtBle++l1TB/rKN4Yi2on7wgFZLyEScayeXsZhsFesMSNZuv vBdtgdCRpZlPb/hTlBd3AmWbtOODYDZIZ/WVZDLyutZrBdDaCIDh+rxdUcvghSicRV KqmsWLAVRx3PiIbM5nec40xPeTqm38hWXluRbBjg= 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.15 529/779] PCI: tegra194: Fix link up retry sequence Date: Mon, 15 Aug 2022 20:02:53 +0200 Message-Id: <20220815180359.888134590@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 ba9f29d6bca1..bdd84765e646 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -978,7 +978,7 @@ static int tegra_pcie_dw_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); tegra_pcie_dw_host_init(pp); dw_pcie_setup_rc(pp); -- 2.35.1