Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1856687rwb; Fri, 19 Aug 2022 10:31:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR5X00imMLBnMNnNXl4hhYJOtyxJAyUu0oTutfJrbFCdETX7vehs3lcdcj43etmDSe9wk1qZ X-Received: by 2002:a17:90b:4a87:b0:1f7:8c7b:931a with SMTP id lp7-20020a17090b4a8700b001f78c7b931amr9414372pjb.241.1660930283856; Fri, 19 Aug 2022 10:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930283; cv=none; d=google.com; s=arc-20160816; b=G7zck45m5sQvKx+YARooU2NgKjepu58vxH22TUeBhIrxIx+2pm4SiuQ7L82q+ZzMnI 2nmt+Tqz8IXm3TaFbuWbNVFRm/uqZTc8+8+rF41BHBRaICwVcSR2MLXUvZScdJQVTsAe N4NZ+mvqZ5d9rJqHCVj+cKkp658de2DHXHGBmM4Agf2wNq4TIFHhJNRjOE/zARKeMwSF ACGzyHJaYF+l7oejYlyW19KyetYHKpcG7mrMD8Ux0W8ZPi3BPpxnLLD0cDVnss2pz/GG IbPSo++qLPgUWWOniwvqsqkUL/iJUtl9Lhm+wPON0Qk8fZY81hQPuWGb/iuIFZOuD0Ci M1KA== 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=dePXfdyiynT55fluK+DGyXH3/G9uSjMsV8ftii+FfX8=; b=KsLNqC4MCzKsF9zNdDxMNz3D0JcV4rfue+KOXtiBgdKW5rnkpjrEh93sN5cRtaB2Cx 83KOUBrJOij/+ARsBL+UaitR+snj/BTCDgXVCoYYOSyum8E06wUCKYizhWuZmMm7QEdI slnkf9a/0aKgWblcFa/Ez3P5mrIAuTLaKvLAvMbsGa0tZgi6tmOWO+QoKLZmhVZ7ahcQ vInivCVrzHEV8YKmql36t/VrsvSOusysZepawFLunc/Wb7hD9Xw3ubFpsLrK3UoBu59M V/kUDs9dJxaixo5XeBtAsiKrts/S1FvcPnYr8OM2QuALtN3xlt3/lfgcOaDSWFGHKaoG YDiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lfRHQFAQ; 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 om9-20020a17090b3a8900b001f28dc085bfsi875934pjb.115.2022.08.19.10.31.12; Fri, 19 Aug 2022 10:31:23 -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=lfRHQFAQ; 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 S1352434AbiHSQct (ORCPT + 99 others); Fri, 19 Aug 2022 12:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352374AbiHSQaK (ORCPT ); Fri, 19 Aug 2022 12:30:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432F611A2FD; Fri, 19 Aug 2022 09:04:36 -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 F1CB5612DF; Fri, 19 Aug 2022 16:04:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C86ADC433C1; Fri, 19 Aug 2022 16:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925075; bh=Hsgd4LUboaYBv4o2E/qbjSGnSs0uy6pgG0Udt+MQ+so=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfRHQFAQtplP92z2OnkeABwtCGCdDGuphBFBMSQDY6ipESn3cOd/0tRHcv2FGQhKx gVykwqe8PcG38vgKS5ZwoQJzXU0weFdfVMEDbKZy3qhKr98ox9XmdjuYeNksILazqo BjTac/kSOCbziETqJxlSsWh5KD3fTRbNUsB0UgRE= 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.10 346/545] PCI: tegra194: Fix link up retry sequence Date: Fri, 19 Aug 2022 17:41:56 +0200 Message-Id: <20220819153844.867224680@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 bcbd600116d7..1222f5749bc6 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -963,7 +963,7 @@ static int tegra_pcie_dw_host_init(struct pcie_port *pp) 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_prepare_host(pp); -- 2.35.1