memory: tegra20-emc: Correct memory device mask
authorDmitry Osipenko <digetx@gmail.com>
Wed, 22 Dec 2021 04:32:15 +0000 (07:32 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 22 Dec 2021 11:56:41 +0000 (12:56 +0100)
commite2f01d07fad2c3fd3875a2d7dd62e1903fdf874c
tree0d8f916e3671abdbad62ca28b1f98626102cef88
parent23a0ea001466a9d063f65254110ac7f07f5c3937
memory: tegra20-emc: Correct memory device mask

Memory chip select is swapped when we read mode register, correct it.
We didn't have devices that use a single LPDDR chip and both chips are
always identical, hence this change is just a minor improvement.

Fixes: 131dd9a436d8 ("memory: tegra20-emc: Support matching timings by LPDDR2 configuration")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20211222043215.28237-2-digetx@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra20-emc.c