linux-yocto/drivers/power/reset
Alexander Shiyan d46af758f6 power: reset: at91-reset: Optimize at91_reset()
[ Upstream commit 62d48983f2 ]

This patch adds a small optimization to the low-level at91_reset()
function, which includes:
- Removes the extra branch, since the following store operations
  already have proper condition checks.
- Removes the definition of the clobber register r4, since it is
  no longer used in the code.

Fixes: fcd0532fac ("power: reset: at91-reset: make at91sam9g45_restart() generic")
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20250307053809.20245-1-eagle.alexander923@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:28:05 +02:00
..
arm-versatile-reboot.c
as3722-poweroff.c
at91-poweroff.c
at91-reset.c
at91-sama5d2_shdwc.c
atc260x-poweroff.c
axxia-reset.c
brcm-kona-reset.c
brcmstb-reboot.c
gemini-poweroff.c
gpio-poweroff.c
gpio-restart.c
hisi-reboot.c
Kconfig
keystone-reset.c
linkstation-poweroff.c
ltc2952-poweroff.c
Makefile
msm-poweroff.c
mt6323-poweroff.c
nvmem-reboot-mode.c
ocelot-reset.c
odroid-go-ultra-poweroff.c
piix4-poweroff.c
pwr-mlxbf.c
qcom-pon.c
qnap-poweroff.c
reboot-mode.c
regulator-poweroff.c
restart-poweroff.c
rmobile-reset.c
sc27xx-poweroff.c
st-poweroff.c
syscon-poweroff.c
syscon-reboot-mode.c
syscon-reboot.c
tps65086-restart.c
vexpress-poweroff.c
xgene-reboot.c