Skip to content

Commit b56563d

Browse files
digetxthierryreding
authored andcommitted
memory: tegra: Increase handshake timeout on Tegra20
Turned out that it could take over a millisecond under some circumstances, like running on a very low CPU/memory frequency. TRM says that handshake happens when there is a "safe" moment, but not explains exactly what that moment is. Apparently at least memory should be idling and thus the low frequency should be a reasonable cause for a longer handshake delay. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent f541efa commit b56563d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/tegra/tegra20-emc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int emc_complete_timing_change(struct tegra_emc *emc, bool flush)
236236
}
237237

238238
timeout = wait_for_completion_timeout(&emc->clk_handshake_complete,
239-
usecs_to_jiffies(100));
239+
msecs_to_jiffies(100));
240240
if (timeout == 0) {
241241
dev_err(emc->dev, "EMC-CAR handshake failed\n");
242242
return -EIO;

0 commit comments

Comments
 (0)