]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: reset: at91-reset: Optimize at91_reset()
authorAlexander Shiyan <eagle.alexander923@gmail.com>
Fri, 7 Mar 2025 05:38:09 +0000 (08:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:07 +0000 (11:07 +0100)
commit6f14ce3d209f6ae1bbdc787f23af21b43423085d
treeba16569dafa583536072199ef9ad25a17987a829
parentac009b40ace4c6ec00d50cf2be65cda257ffb06e
power: reset: at91-reset: Optimize at91_reset()

[ Upstream commit 62d48983f215bf1dd48665913318101fa3414dcf ]

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: fcd0532fac2a ("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>
drivers/power/reset/at91-reset.c