summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorVishwaroop A <va@nvidia.com>2026-02-04 14:12:12 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-11 13:40:29 +0100
commit6d6b23aada49c4cd44d61d83c073e507c2acb8fc (patch)
treef04fbf7d64e41832badbedb3f892c77d75302804 /include/net/aligned_data.h
parent075415ae18b5b3e4d0187962d538653154216fe7 (diff)
spi: tegra114: Preserve SPI mode bits in def_command1_reg
[ Upstream commit a0a75b40c919b9f6d3a0b6c978e6ccf344c1be5a ] The COMMAND1 register bits [29:28] set the SPI mode, which controls the clock idle level. When a transfer ends, tegra_spi_transfer_end() writes def_command1_reg back to restore the default state, but this register value currently lacks the mode bits. This results in the clock always being configured as idle low, breaking devices that need it high. Fix this by storing the mode bits in def_command1_reg during setup, to prevent this field from always being cleared. Fixes: f333a331adfa ("spi/tegra114: add spi driver") Signed-off-by: Vishwaroop A <va@nvidia.com> Link: https://patch.msgid.link/20260204141212.1540382-1-va@nvidia.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions