linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: tegra: Fix argument order in tegra_pcie_phy_disable()
@ 2016-10-06 13:43 Bjorn Helgaas
  2016-10-06 14:49 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2016-10-06 13:43 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, Alexandre Courbot, Stephen Warren, 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>
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] 2+ messages in thread

* Re: [PATCH] PCI: tegra: Fix argument order in tegra_pcie_phy_disable()
  2016-10-06 13:43 [PATCH] PCI: tegra: Fix argument order in tegra_pcie_phy_disable() Bjorn Helgaas
@ 2016-10-06 14:49 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2016-10-06 14:49 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-tegra, Alexandre Courbot, Stephen Warren, linux-pci

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

On Thu, Oct 06, 2016 at 08:43:03AM -0500, Bjorn Helgaas wrote:
> 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>
> CC: stable@vger.kernel.org	# v4.7+
> ---
>  drivers/pci/host/pci-tegra.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Good catch!

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

end of thread, other threads:[~2016-10-06 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-06 13:43 [PATCH] PCI: tegra: Fix argument order in tegra_pcie_phy_disable() Bjorn Helgaas
2016-10-06 14:49 ` 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).