Skip to content

Commit aceda40

Browse files
jonhunterbroonie
authored andcommitted
spi: tegra20-slink: Ensure SPI controller reset is deasserted
Commit 4782c0a ("clk: tegra: Don't deassert reset on enabling clocks") removed some legacy code for handling resets on Tegra from within the Tegra clock code. This exposed an issue in the Tegra20 slink driver where the SPI controller reset was not being deasserted as needed during probe. This is causing the Tegra30 Cardhu platform to hang on boot. Fix this by ensuring the SPI controller reset is deasserted during probe. Fixes: 4782c0a ("clk: tegra: Don't deassert reset on enabling clocks") Signed-off-by: Jon Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d38fa9a commit aceda40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)