Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory: tegra124-emc: Fix dll_change check

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: 73a7f0a90641 ("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>

authored by

Mikko Perttunen and committed by
Krzysztof Kozlowski
9597ab9a ef4d7b99

+1 -1
+1 -1
drivers/memory/tegra/tegra124-emc.c
··· 608 608 609 609 if ((last->emc_mode_1 & 0x1) == (timing->emc_mode_1 & 0x1)) 610 610 dll_change = DLL_CHANGE_NONE; 611 - else if (timing->emc_mode_1 & 0x1) 611 + else if (!(timing->emc_mode_1 & 0x1)) 612 612 dll_change = DLL_CHANGE_ON; 613 613 else 614 614 dll_change = DLL_CHANGE_OFF;