Skip to content

Commit 1793249

Browse files
cyndisgregkh
authored andcommitted
memory: tegra124-emc: Fix dll_change check
[ Upstream commit 9597ab9 ] The code checking whether the specified memory timing enables DLL in the EMRS register was reversed. DLL is enabled if bit A0 is low. Fix the check. Fixes: 73a7f0a ("memory: tegra: Add EMC (external memory controller) driver") Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Link: https://patch.msgid.link/20260126-fix-emc-dllchange-v1-1-47ad3bb63262@nvidia.com Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6dd527e commit 1793249

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/memory/tegra/tegra124-emc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static int tegra_emc_prepare_timing_change(struct tegra_emc *emc,
608608

609609
if ((last->emc_mode_1 & 0x1) == (timing->emc_mode_1 & 0x1))
610610
dll_change = DLL_CHANGE_NONE;
611-
else if (timing->emc_mode_1 & 0x1)
611+
else if (!(timing->emc_mode_1 & 0x1))
612612
dll_change = DLL_CHANGE_ON;
613613
else
614614
dll_change = DLL_CHANGE_OFF;

0 commit comments

Comments
 (0)