Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023748rwb; Mon, 15 Aug 2022 16:21:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Xef/PcKpwwYdbulXcUxEJ2TKqGp3ztLBvsQdDV217qoJlGPDdg5YxPZPEkXmETuSDI+SG X-Received: by 2002:a05:6402:287:b0:43c:c604:addb with SMTP id l7-20020a056402028700b0043cc604addbmr16417623edv.201.1660605680785; Mon, 15 Aug 2022 16:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605680; cv=none; d=google.com; s=arc-20160816; b=LlMDBSJh8L9YthflIpkuEvpXV4otwpzaA2HqWwX+3KigZgc+4zKfgRpylo5geO8L0e +6d8Rd5xQVYaB+4BN7HhrLeJGNDnoGJ9UdD7+nk2rbIAkEEjPniezMXpq37HrP0RyqEZ CkuBjeNIJqw06TohrDIy3fG1gYaLYahPPkSa9dKjvwrZAkVAcZRp+5zyehkHuEcTORMw XX5uf1QMdLvLEOjK2QIuHG7YKEr0sbTW+t507bzH1+Iq6sE/Q50vZswG+Ep98vtpK9AO GeTk6Wo35WlXtReXCleATaeqhr0Z2tYHzeMTQNt0gN050Znk783KMJ8cRqEc1J6wrMAR wc3A== 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=OWfwR4IM2h5xg7U/krpj/Q7qP22ETpMeZjSb9lPSTLQ=; b=FoLYI7lNxKbVdVy85r2y+w6SIzg3BJEHFXtGcxW5yPTHrj61aGJaJzy3kOJUnIrYS8 unaN9/j7F1/hfYlTomve1yO8hEVhhS8A5X4tk98cYciUWofjoPAcMnm9V2HDWAU+MjvX P2+4OzjuYOPDFiK3JnxL7I5V1nlqRJgKz20/vp5qgtWt4htPFzgn9EdEEn6Du7Ucn8MD 1tsdqQUk61qXSeBctpqXMbPxieI+l84EV1nyH33X075kADDnC+RsHnjHw4cm+xf1DzqQ JWpfaJ2iWFAldunXH0Go3AauQzAnEIbRXmIfj5BvdlaHUGrI9GU4XkV1szTAbnMdrAqm A+XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J7hp62um; 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 v8-20020a170906338800b007306d40ae27si7583217eja.553.2022.08.15.16.20.55; Mon, 15 Aug 2022 16:21:20 -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=J7hp62um; 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 S1348109AbiHOWWs (ORCPT + 99 others); Mon, 15 Aug 2022 18:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350595AbiHOWSG (ORCPT ); Mon, 15 Aug 2022 18:18:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37AD1237B3; Mon, 15 Aug 2022 12:41:11 -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 A935D610A5; Mon, 15 Aug 2022 19:41:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9648CC433C1; Mon, 15 Aug 2022 19:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592470; bh=ZtONQ8XSpOXOQxcmGuU/YXF7E00mNmKvlX58loiVN4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J7hp62um7P6NeaU6Wmh/LOs2sTInCleG4IuMHxuv1iD9AL5moUYUE9IEX8w2fHCNN 5fp+a2t1R/6s+Qmdaz0AOfIga5dNKAkucmbvWUr5Q/GuXN/OFXBvyCW6TIxNUz44vU KneytjrT/n4uvOfBCsdnar8Zt97mcZtZ+cLwUem8= 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.18 0791/1095] PCI: tegra194: Fix link up retry sequence Date: Mon, 15 Aug 2022 20:03:10 +0200 Message-Id: <20220815180501.963824498@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 85d405057ba8..a479e58cc8fb 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -978,7 +978,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