Skip to content

Commit b647d2b

Browse files
committed
Merge branch 'remotes/lorenzo/pci/tegra'
- Fix checking of pm_runtime_get_sync() return value (David Engraf) - Fix AFI_PEX2_CTRL reg offset for Tegra30 (Marcel Ziswiler) * remotes/lorenzo/pci/tegra: PCI: tegra: Fix afi_pex2_ctrl reg offset for Tegra30 PCI: tegra: Fix return value check of pm_runtime_get_sync()
2 parents c11dfed + 21a9267 commit b647d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/pci-tegra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,6 @@ static const struct tegra_pcie_soc tegra20_pcie = {
24992499
.num_ports = 2,
25002500
.ports = tegra20_pcie_ports,
25012501
.msi_base_shift = 0,
2502-
.afi_pex2_ctrl = 0x128,
25032502
.pads_pll_ctl = PADS_PLL_CTL_TEGRA20,
25042503
.tx_ref_sel = PADS_PLL_CTL_TXCLKREF_DIV10,
25052504
.pads_refclk_cfg0 = 0xfa5cfa5c,
@@ -2528,6 +2527,7 @@ static const struct tegra_pcie_soc tegra30_pcie = {
25282527
.num_ports = 3,
25292528
.ports = tegra30_pcie_ports,
25302529
.msi_base_shift = 8,
2530+
.afi_pex2_ctrl = 0x128,
25312531
.pads_pll_ctl = PADS_PLL_CTL_TEGRA30,
25322532
.tx_ref_sel = PADS_PLL_CTL_TXCLKREF_BUF_EN,
25332533
.pads_refclk_cfg0 = 0xfa5cfa5c,
@@ -2798,7 +2798,7 @@ static int tegra_pcie_probe(struct platform_device *pdev)
27982798

27992799
pm_runtime_enable(pcie->dev);
28002800
err = pm_runtime_get_sync(pcie->dev);
2801-
if (err) {
2801+
if (err < 0) {
28022802
dev_err(dev, "fail to enable pcie controller: %d\n", err);
28032803
goto teardown_msi;
28042804
}

0 commit comments

Comments
 (0)