Skip to content

Commit 2d14c68

Browse files
andredkrzk
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent d209898 commit 2d14c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/samsung/exynos-acpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static int acpm_dequeue_by_polling(struct acpm_chan *achan,
300300
return 0;
301301

302302
/* Determined experimentally. */
303-
usleep_range(20, 30);
303+
udelay(20);
304304
} while (ktime_before(ktime_get(), timeout));
305305

306306
dev_err(dev, "Timeout! ch:%u s:%u bitmap:%lx.\n",

0 commit comments

Comments
 (0)