linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] PCI: tegra: Fix argument order in tegra_pcie_phy_disable()
@ 2016-10-07 16:26 Bjorn Helgaas
  2016-10-07 16:26 ` [PATCH 2/5] PCI: tegra: Swap order of afi_writel() reg/val arguments Bjorn Helgaas
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Bjorn Helgaas @ 2016-10-07 16:26 UTC (permalink / raw)
  To: Alexandre Courbot, Thierry Reding, Stephen Warren; +Cc: linux-tegra, linux-pci

The tegra_pcie_phy_disable() path called pads_writel() with arguments in
the wrong order.  Swap them to be the "value, offset" order expected by
pads_writel().

Fixes: 6fe7c187e026 ("PCI: tegra: Support per-lane PHYs")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thierry Reding <treding@nvidia.com>
CC: stable@vger.kernel.org	# v4.7+
---
 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 e2a8e4c..6df5ed0 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -859,7 +859,7 @@ static int tegra_pcie_phy_disable(struct tegra_pcie *pcie)
 	/* override IDDQ */
 	value = pads_readl(pcie, PADS_CTL);
 	value |= PADS_CTL_IDDQ_1L;
-	pads_writel(pcie, PADS_CTL, value);
+	pads_writel(pcie, value, PADS_CTL);
 
 	/* reset PLL */
 	value = pads_readl(pcie, soc->pads_pll_ctl);


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-07 17:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 16:26 [PATCH 1/5] PCI: tegra: Fix argument order in tegra_pcie_phy_disable() Bjorn Helgaas
2016-10-07 16:26 ` [PATCH 2/5] PCI: tegra: Swap order of afi_writel() reg/val arguments Bjorn Helgaas
2016-10-07 17:21   ` Thierry Reding
2016-10-07 16:26 ` [PATCH 3/5] PCI: tegra: Swap order of pads_writel() " Bjorn Helgaas
2016-10-07 17:22   ` Thierry Reding
2016-10-07 16:26 ` [PATCH 4/5] PCI: tegra: Add local struct device pointers Bjorn Helgaas
2016-10-07 17:22   ` Thierry Reding
2016-10-07 16:26 ` [PATCH 5/5] PCI: tegra: Remove unused platform data Bjorn Helgaas
2016-10-07 17:24   ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).