From patchwork Tue Feb 9 14:52:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 580879 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2D068140B9A for ; Wed, 10 Feb 2016 01:52:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HJUttMQG; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755422AbcBIOwj (ORCPT ); Tue, 9 Feb 2016 09:52:39 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37551 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754143AbcBIOwi (ORCPT ); Tue, 9 Feb 2016 09:52:38 -0500 Received: by mail-wm0-f50.google.com with SMTP id g62so26764327wme.0; Tue, 09 Feb 2016 06:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=parDBM9NsZAg702KeRURFr7fnT+N6ifX8Tb9qrh6iEw=; b=HJUttMQG4x4gk2FxBJcznM4LGjSs8xDxVAmcOoMUlhp5lv9d8o1GWQrWwxfmNDWEym spx+meET2GT2nMpdI5jgbqJ0BzsxmozUm9c9OJr8hn/9b+VkkNyBnsAupRYNidRZL/Fk u6nsaSgEDdovly7CNE2MCfaBQynXP+Czbk522Wqy981Nh6NAwC1KbIbcZ71O2xxVtlh8 Do+Dk1sl92fQNPazdiK4lESOmDhWLwYjfHtHfgt1Igi1SbPfABq3lycwOSEirHv1SHIZ pI2DELFmDnJqxKa87shjgScPxUAcG0RWAEj+nL3B1AQY4VPjExwbbSNdQWlm+sTUXCYQ Mr2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=parDBM9NsZAg702KeRURFr7fnT+N6ifX8Tb9qrh6iEw=; b=LX4Mt5448vJc8RFl1+8qRTHAjAUm6SxH0EiW4eQ6QZzX6E4REUA9HYkJM1ozhFuO6p 7Enw4ZPSVAl4jWvK4nT+HC+QlFvpu1WB8H2ty/NSO9uZbxAqHrgGhbcQaGjm8YZ7QkNd i8BKnEYnTbSjpEZJ/HCO5xuP8S/laDZxv8Pjbn1nuhYdP12Ylaibhyn9NG6FzbnZpktu MOVsRiVZeZPtiraxjb0QAtOP0Or4O6/rmG8HanSHwnEUGo9GUCSWqTAg4iQro/b62mCg kVIZND5AUNBMu1qUo3TCSWYvX+UMw1kf8kFCTitlLvpqUWvZ64hawhfvVh40zQUf8Edi gzjA== X-Gm-Message-State: AG10YOS9J2wwtgQ/nn9LOYP14mbeL29hkdDRGpOSqzomj5N+GHviS7E+puOn476VsvwfnA== X-Received: by 10.194.249.69 with SMTP id ys5mr32648899wjc.97.1455029557472; Tue, 09 Feb 2016 06:52:37 -0800 (PST) Received: from localhost (port-17172.pppoe.wtnet.de. [46.59.128.173]) by smtp.gmail.com with ESMTPSA id w62sm17900646wmg.21.2016.02.09.06.52.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 06:52:36 -0800 (PST) From: Thierry Reding To: Bjorn Helgaas Cc: Stephen Warren , Alexandre Courbot , linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 3/3] PCI: tegra: Remove misleading PHYS_OFFSET Date: Tue, 9 Feb 2016 15:52:33 +0100 Message-Id: <1455029553-9460-3-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455029553-9460-1-git-send-email-thierry.reding@gmail.com> References: <1455029553-9460-1-git-send-email-thierry.reding@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Thierry Reding BARs are disabled when the size register is 0, so it's misleading to write a base address into the start register. Signed-off-by: Thierry Reding --- drivers/pci/host/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index f6fc54b48606..9d5817546425 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -774,7 +774,7 @@ static void tegra_pcie_setup_translations(struct tegra_pcie *pcie) afi_writel(pcie, 0, AFI_FPCI_BAR5); /* map all upstream transactions as uncached */ - afi_writel(pcie, PHYS_OFFSET, AFI_CACHE_BAR0_ST); + afi_writel(pcie, 0, AFI_CACHE_BAR0_ST); afi_writel(pcie, 0, AFI_CACHE_BAR0_SZ); afi_writel(pcie, 0, AFI_CACHE_BAR1_ST); afi_writel(pcie, 0, AFI_CACHE_BAR1_SZ);