Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp677341ybv; Thu, 13 Feb 2020 07:36:45 -0800 (PST) X-Google-Smtp-Source: APXvYqx9xl8kkEK4TjoSoppTsZ8fr0+h9olbBO3V4yGIreqFH6zDx/PDGXja+SLBYa/PAjvFpLtp X-Received: by 2002:a9d:7586:: with SMTP id s6mr13577585otk.342.1581608204999; Thu, 13 Feb 2020 07:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581608204; cv=none; d=google.com; s=arc-20160816; b=QqR2HJUhyLX++JQ1gDsTyoeil+dXmjIEiTRgSdoQyXwJvUDfF9IGWPcZgqTwUvc5wS yEBKZoxjAc9EMgoWF0WUbprkyoI1hTFZDrZB00pdgbTpRrNTpNq8VKFxsr+9VraCuN69 AAcxUwtrmOsCBhGrP+WdRfcIjimsukT7uTPptNTo3oQAcnTX4Zyy3dBlC4LJ7edphrfv E4gw7Y/YFxyhNjQkOyxzNJJY0tQsyaUHNdzaQjciCF5ANeT1N0WhwJmuBLzip8dMCVdn 8tGxZWZk+YADlyCHMrT9mRfUauLnzoaB4dwYBFjQOOLuUiMFHwgZRS8PM/tMmu/R1/9o 5SXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KA37k28OeynMrriIsfFrYYXNo7BQ6lUYfdGKNhnDafE=; b=s6XK7O70RUA0LMWEpXCN+g6A1pXclQ6IYwpFXlYTwN3CQT86qCY1y1NydPYz1XIydd P7e7NcXbB79Ih/Gqg5FfyplxbMrfxYrOx3+n2SGpRGj1UPvgZ0HK8tS280xKrPPt5Foz vvY52U4WQLZoMth+4jHjOVOSA1ahkxnmLxLrff7QF4kpXljzNhMTjdWlfcDc9pnovUb9 6TPrqIs+jvI6vnNH/5zLKoBrZQoNwtDBjLUCJrInj56/hCntelkBVW7dEXGVIiEch5IA kUI3XCXYLdbsDqPF6he7GTYrlxK4iggIAmhu+cP8umpkFUrncAvFkHcx63tGCVyyPXWu 6y5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qIuIRVq4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si1148461otl.138.2020.02.13.07.36.32; Thu, 13 Feb 2020 07:36:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qIuIRVq4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387965AbgBMPaa (ORCPT + 99 others); Thu, 13 Feb 2020 10:30:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:49912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729368AbgBMP1U (ORCPT ); Thu, 13 Feb 2020 10:27:20 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 42D3C24681; Thu, 13 Feb 2020 15:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607639; bh=bTaM9z7UZIreCdFbopgJgFvaS0Ot1vVV2fi3Qq0RXyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qIuIRVq4GN1YNsJQr54pZ0snxBd+eNrGEPQ/mNPEEPtgmiu9mEZzJoMGaLDl3O/z+ pjfVVrwUgLCsW2Y0Y7u9uleQGKGPa+zABoVwUysvInM81eOeymEbspFQrTzPcuo27N I4wDxlhFBucW7WC57Ztf6NAZVUZL5SfNSA0O0xeU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marcel Ziswiler , Lorenzo Pieralisi , Andrew Murray , Thierry Reding Subject: [PATCH 5.4 17/96] PCI: tegra: Fix afi_pex2_ctrl reg offset for Tegra30 Date: Thu, 13 Feb 2020 07:20:24 -0800 Message-Id: <20200213151846.153218983@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler commit 21a92676e1fe292acb077b13106b08c22ed36b14 upstream. Fix AFI_PEX2_CTRL reg offset for Tegra30 by moving it from the Tegra20 SoC struct where it erroneously got added. This fixes the AFI_PEX2_CTRL reg offset being uninitialised subsequently failing to bring up the third PCIe port. Fixes: adb2653b3d2e ("PCI: tegra: Add AFI_PEX2_CTRL reg offset as part of SoC struct") Signed-off-by: Marcel Ziswiler Signed-off-by: Lorenzo Pieralisi Reviewed-by: Andrew Murray Acked-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -2499,7 +2499,6 @@ static const struct tegra_pcie_soc tegra .num_ports = 2, .ports = tegra20_pcie_ports, .msi_base_shift = 0, - .afi_pex2_ctrl = 0x128, .pads_pll_ctl = PADS_PLL_CTL_TEGRA20, .tx_ref_sel = PADS_PLL_CTL_TXCLKREF_DIV10, .pads_refclk_cfg0 = 0xfa5cfa5c, @@ -2528,6 +2527,7 @@ static const struct tegra_pcie_soc tegra .num_ports = 3, .ports = tegra30_pcie_ports, .msi_base_shift = 8, + .afi_pex2_ctrl = 0x128, .pads_pll_ctl = PADS_PLL_CTL_TEGRA30, .tx_ref_sel = PADS_PLL_CTL_TXCLKREF_BUF_EN, .pads_refclk_cfg0 = 0xfa5cfa5c,