]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: exynos-acpm: allow use during system shutdown
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 25 Mar 2025 09:46:08 +0000 (09:46 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 7 Apr 2025 06:21:57 +0000 (08:21 +0200)
commit2d14c680e92f09d18b984cd1a8fae437f9ebc2ab
treeb22fdeb82fd87a7dd08c0dc9a98fd6723047260e
parentd2098981eb7b7d20edd294a8431908f8a0d2f9c0
firmware: exynos-acpm: allow use during system shutdown

We need to access the PMIC during late system shutdown and at that time
we are not allowed to sleep anymore.

To make this case work, and since we can't detect this case in a
non-racy way, switch to using udelay() unconditionally, instead of
usleep_range().

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250325-acpm-atomic-v3-2-c66aae7df925@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/firmware/samsung/exynos-acpm.c