]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: fel: drop redundant "control register" save/restore
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Jul 2022 15:27:58 +0000 (16:27 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 21 Jan 2023 01:32:23 +0000 (01:32 +0000)
commit7f0938eac5d867b202d74b2a734ac3f924411bc9
treee521a0f8a7fc38890863b802476f600cf3942f34
parenteb53e7743c8fde2ff6b47b54075086154b0126c1
sunxi: fel: drop redundant "control register" save/restore

For some reasons shrouded in mystery, the code saving the FEL state was
saving the SCTLR register twice, with the second copy trying to justify
itself by using its ancient "control register" alias name.

Drop the redundant second copy, both from the fel_stash data structure,
and also the code saving and restoring it.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
arch/arm/cpu/armv7/sunxi/fel_utils.S
arch/arm/mach-sunxi/board.c