Skip to content

Commit 7426ced

Browse files
committed
Merge tag 'spi-fix-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "A couple of small, driver specific fixes that arrived in the past few weeks" * tag 'spi-fix-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: spi-nxp-fspi: move the register operation after the clock enable spi: tegra20-slink: Ensure SPI controller reset is deasserted
2 parents 7266f20 + f422316 commit 7426ced

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

drivers/spi/spi-nxp-fspi.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,12 +1124,6 @@ static int nxp_fspi_probe(struct platform_device *pdev)
11241124
goto err_put_ctrl;
11251125
}
11261126

1127-
/* Clear potential interrupts */
1128-
reg = fspi_readl(f, f->iobase + FSPI_INTR);
1129-
if (reg)
1130-
fspi_writel(f, reg, f->iobase + FSPI_INTR);
1131-
1132-
11331127
/* find the resources - controller memory mapped space */
11341128
if (is_acpi_node(f->dev->fwnode))
11351129
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
@@ -1167,6 +1161,11 @@ static int nxp_fspi_probe(struct platform_device *pdev)
11671161
}
11681162
}
11691163

1164+
/* Clear potential interrupts */
1165+
reg = fspi_readl(f, f->iobase + FSPI_INTR);
1166+
if (reg)
1167+
fspi_writel(f, reg, f->iobase + FSPI_INTR);
1168+
11701169
/* find the irq */
11711170
ret = platform_get_irq(pdev, 0);
11721171
if (ret < 0)

drivers/spi/spi-tegra20-slink.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,11 @@ static int tegra_slink_probe(struct platform_device *pdev)
11181118
pm_runtime_put_noidle(&pdev->dev);
11191119
goto exit_pm_disable;
11201120
}
1121+
1122+
reset_control_assert(tspi->rst);
1123+
udelay(2);
1124+
reset_control_deassert(tspi->rst);
1125+
11211126
tspi->def_command_reg = SLINK_M_S;
11221127
tspi->def_command2_reg = SLINK_CS_ACTIVE_BETWEEN;
11231128
tegra_slink_writel(tspi, tspi->def_command_reg, SLINK_COMMAND);

0 commit comments

Comments
 (0)